/* FarmEasy - Custom CSS */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #38761d;
    --primary-light: #5da544;
    --primary-dark: #264d13;
    --secondary-color: #f9a825;
    --secondary-light: #ffd95a;
    --secondary-dark: #c67900;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: #f5f5f5;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Layout Structure */
.main-content {
    margin-left: var(--sidebar-width);
    transition: all 0.3s;
    padding: 20px;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    overflow: visible;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: var(--sidebar-collapsed-width);
    }
    
    .sidebar-expanded .main-content {
        margin-left: var(--sidebar-width);
    }
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    height: 100vh;
}

.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

.sidebar .logo {
    padding: 1rem;
    color: white;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.sidebar .logo-text {
    margin-left: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: var(--secondary-dark) !important;
    border-color: var(--secondary-dark) !important;
    color: var(--dark-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* Card Styles */
.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    background-color: white;
    font-weight: 500;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0 !important;
}

.card-body {
    padding: 20px;
}

.card-footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 10px 10px !important;
}

/* Table Styles */
.table thead th {
    background-color: var(--light-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 500;
    color: var(--primary-dark);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(56, 118, 29, 0.05);
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(56, 118, 29, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Badge Styles */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-secondary {
    background-color: var(--secondary-color) !important;
    color: var(--dark-color) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-info {
    background-color: var(--info-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: var(--dark-color) !important;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
}

/* Stat Card Styles */
.stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stat-card .stat-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 48px;
    opacity: 0.15;
    color: var(--primary-color);
}

.stat-card .stat-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-card .stat-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: auto;
}

/* Dashboard Widgets */
.dashboard-widget {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 100%;
}

.dashboard-widget-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--primary-dark);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* Weather Widget */
.weather-widget {
    background-color: #e6f7ff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.weather-widget .temp {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 0;
}

.weather-widget .conditions {
    font-size: 20px;
    margin-bottom: 20px;
}

.weather-widget .weather-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Task List */
.task-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-list-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.task-list-item:last-child {
    border-bottom: none;
}

.task-list-item-title {
    flex-grow: 1;
    font-weight: 500;
}

.task-list-item-date {
    color: var(--text-muted);
    font-size: 14px;
    margin-right: 10px;
}

/* Chart Containers */
.chart-container {
    position: relative;
    width: 100%;
    height: 300px;
}

canvas {
    max-width: 100%;
}

/* Login/Register Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--light-color);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo h1 {
    color: var(--primary-color);
    font-weight: 700;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .stat-card .stat-value {
        font-size: 24px;
    }
    
    .stat-card .stat-icon {
        font-size: 36px;
    }
    
    .dashboard-widget {
        margin-bottom: 20px;
    }
} 