/* Farmer Style overrides */
:root {
    --farmer-bg: #F8FAFC;
    --farmer-primary: #064E3B; /* Deep Forest */
    --farmer-secondary: #10B981; /* Emerald */
    --farmer-accent: #BEF264; /* Lime */
    --farmer-border: #E5E7EB;
    --lab-shadow: 0 10px 25px -5px rgba(6, 78, 59, 0.05);
}

body {
    background-color: var(--farmer-bg);
    color: #1F2937;
}

.sidebar {
    background: var(--farmer-primary) !important;
    border-radius: 0 32px 32px 0;
    box-shadow: 10px 0 30px rgba(6, 78, 59, 0.1);
    color: white !important;
    padding-top: 30px;
    min-height: 100vh;
    z-index: 1000;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.6) !important;
    border-radius: 12px;
    margin: 5px 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.sidebar .nav-link i {
    width: 25px;
}

.sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(190, 242, 100, 0.15) 0%, rgba(190, 242, 100, 0) 100%) !important;
    color: var(--farmer-accent) !important;
    border-left: 4px solid var(--farmer-accent);
    font-weight: 600;
}

.sidebar .nav-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    transform: translateX(5px);
}

.topbar .navbar-brand, .topbar .nav-link {
    color: var(--farmer-primary) !important;
    font-weight: 600;
}

.farmer-dashboard-bg {
    background-image: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), url('/static/frontend assets/images/farm-bg.jpg');
    background-size: cover;
}

.farmer-card {
    background: white;
    border: 1px solid var(--farmer-border);
    border-radius: 20px;
    box-shadow: var(--lab-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid var(--farmer-accent);
}

.farmer-card:hover {
    transform: translateY(-5px);
    border-color: var(--farmer-secondary);
}

.badge-order-new { background-color: #f39c12; }
.badge-order-complete { background-color: #27ae60; }

.btn-farmer {
    background-color: var(--farmer-primary);
    color: white;
    border-radius: 10px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-farmer:hover {
    background-color: var(--farmer-secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

/* Responsive Sidebar Styles */
@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        left: -100%;
        width: 100%;
        height: 100%;
        max-width: 280px;
    }
    
    .sidebar.show {
        left: 0;
    }

    main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .navbar.sticky-top {
        z-index: 1050 !important;
    }

    #sidebarToggle {
        cursor: pointer;
        z-index: 1060 !important;
    }
}
