/* =============================================
   Kisan Dawai Bank - Main Stylesheet
   ============================================= */

/* CSS Variables */
:root {
    --green-primary: #1a7431;
    --green-dark: #145a26;
    --green-light: #d4edda;
    --green-mid: #28a745;
    --warning: #ffc107;
    --warning-dark: #e0a800;
    --blue: #0d6efd;
    --red: #dc3545;
    --info: #0dcaf0;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-sm: 0 1px 6px rgba(0,0,0,0.06);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; font-size: 14px; color: #333; background: #f0f4f1; }

/* ===== ADMIN BODY & LAYOUT ===== */
.admin-body { background: #f0f4f1; min-height: 100vh; }
.wrapper { min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: linear-gradient(180deg, #0f3d1a 0%, #1a7431 60%, #0f3d1a 100%);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: var(--transition);
    z-index: 1000;
    flex-shrink: 0;
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.brand-logo { width: 42px; height: 42px; background: var(--warning); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #1a7431; font-size: 18px; flex-shrink: 0; }
.brand-text .brand-name { display: block; color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand-text .brand-sub { display: block; color: rgba(255,255,255,0.6); font-size: 11px; }

.sidebar-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 8px 16px; }

.sidebar-nav { list-style: none; padding: 8px 0; flex-grow: 1; }
.sidebar-nav .nav-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); padding: 12px 20px 4px; }
.sidebar-nav .nav-item a { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: rgba(255,255,255,0.8); text-decoration: none; border-radius: 0; transition: var(--transition); font-size: 13.5px; border-left: 3px solid transparent; }
.sidebar-nav .nav-item a i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.sidebar-nav .nav-item a:hover { color: #fff; background: rgba(255,255,255,0.1); border-left-color: var(--warning); }
.sidebar-nav .nav-item.active a { color: #fff; background: rgba(255,255,255,0.15); border-left-color: var(--warning); font-weight: 600; }

.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.logout-btn { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.7); text-decoration: none; padding: 10px 12px; border-radius: var(--radius-sm); transition: var(--transition); font-size: 13px; }
.logout-btn:hover { color: #fff; background: rgba(220,53,69,0.3); }

.manager-sidebar { background: linear-gradient(180deg, #3d2a0f 0%, #7a5c1a 50%, #3d2a0f 100%); }

/* Main Content */
.main-content { overflow-x: hidden; }

/* Topbar */
.admin-topbar { height: var(--topbar-height); background: #fff; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; }
.sidebar-toggle-btn { border: 1px solid var(--gray-200); background: var(--gray-100); color: var(--gray-600); padding: 6px 10px; }
.topbar-btn { border: 1px solid var(--gray-200); background: none; color: var(--gray-600); padding: 6px 10px; border-radius: var(--radius-sm); position: relative; }
.topbar-btn:hover { background: var(--gray-100); }
.topbar-user-btn { border: 1px solid var(--gray-200); background: var(--gray-100); border-radius: 30px; padding: 5px 12px; color: #333; }
.topbar-user-btn:hover { background: var(--gray-200); }
.user-avatar-sm { width: 32px; height: 32px; background: var(--green-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; flex-shrink: 0; }
.notif-dropdown { min-width: 280px; }

/* Page Content */
.page-content { min-height: calc(100vh - var(--topbar-height)); }
.page-header { border-bottom: 1px solid var(--gray-200); padding-bottom: 16px; margin-bottom: 0; }
.page-title { font-size: 22px; font-weight: 700; color: #1a1a1a; margin: 0; }
.breadcrumb { font-size: 12px; }
.breadcrumb-item a { color: var(--green-primary); text-decoration: none; }

/* ===== STAT CARDS ===== */
.stat-card { background: #fff; border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); border-left: 4px solid transparent; transition: var(--transition); }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.stat-card.stat-green { border-left-color: var(--green-primary); }
.stat-card.stat-blue { border-left-color: #0d6efd; }
.stat-card.stat-yellow { border-left-color: var(--warning); }
.stat-card.stat-red { border-left-color: var(--red); }
.stat-card-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-green .stat-card-icon { background: rgba(26,116,49,0.1); color: var(--green-primary); }
.stat-blue .stat-card-icon { background: rgba(13,110,253,0.1); color: #0d6efd; }
.stat-yellow .stat-card-icon { background: rgba(255,193,7,0.15); color: #997700; }
.stat-red .stat-card-icon { background: rgba(220,53,69,0.1); color: var(--red); }
.stat-card-num { font-size: 24px; font-weight: 800; line-height: 1.2; color: #1a1a1a; }
.stat-card-label { font-size: 12px; color: var(--gray-600); font-weight: 500; margin-top: 2px; }
.stat-card-sub { font-size: 11px; margin-top: 4px; }

/* Finance Cards */
.finance-card { background: #fff; border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); }
.finance-received { border-left: 4px solid var(--green-primary); }
.finance-pending { border-left: 4px solid var(--warning); }
.finance-balance { border-left: 4px solid var(--blue); }
.finance-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; flex-shrink: 0; }
.finance-received .finance-icon { background: var(--green-primary); }
.finance-pending .finance-icon { background: var(--warning); color: #333; }
.finance-balance .finance-icon { background: var(--blue); }
.finance-amount { font-size: 20px; font-weight: 800; }
.finance-label { font-size: 12px; color: var(--gray-600); margin-top: 2px; }

/* ===== CARDS ===== */
.card { border: 1px solid var(--gray-200); border-radius: var(--radius); }
.card-header { background: #fff; border-bottom: 1px solid var(--gray-200); padding: 16px 20px; font-weight: 600; }

/* ===== TABLES ===== */
.table thead th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-600); border-bottom: 2px solid var(--gray-200); white-space: nowrap; padding: 12px 16px; }
.table td { padding: 12px 16px; vertical-align: middle; }
.table-hover tbody tr:hover { background: rgba(26,116,49,0.03); }

/* Badges */
.badge { font-weight: 600; font-size: 11px; padding: 4px 8px; border-radius: 4px; }

/* ===== BRANCH CARDS ===== */
.branch-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); border: 1px solid var(--gray-200); }
.branch-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.branch-card-header { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-bottom: 1px solid var(--gray-200); background: var(--gray-100); }
.branch-icon { width: 40px; height: 40px; background: var(--green-primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; flex-shrink: 0; }
.branch-card-body { padding: 16px; }
.branch-card-footer { padding: 12px 16px; border-top: 1px solid var(--gray-200); background: var(--gray-100); display: flex; gap: 8px; }

.branch-card-mini { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 16px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--gray-200); }
.branch-icon-mini { width: 44px; height: 44px; background: var(--green-primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; flex-shrink: 0; }

/* Category Cards */
.category-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; text-align: center; transition: var(--transition); border: 1px solid var(--gray-200); }
.category-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.category-card.featured { border-top: 4px solid var(--green-primary); }
.category-card-link { text-decoration: none; color: inherit; }
.category-card-link:hover .category-card { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.15); }
.cat-icon { width: 60px; height: 60px; background: linear-gradient(135deg, var(--green-primary), var(--green-mid)); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; margin-bottom: 12px; }

/* Product Cards */
.product-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); border: 1px solid var(--gray-200); }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.product-card-img { height: 160px; overflow: hidden; position: relative; background: var(--gray-100); display: flex; align-items: center; justify-content: center; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); }
.product-thumb-placeholder, .product-img-placeholder { width: 50px; height: 50px; background: var(--gray-100); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--gray-600); }
.product-img-placeholder { width: 100%; height: 100%; font-size: 24px; }
.product-badge { position: absolute; top: 8px; right: 8px; }

/* Machine Cards */
.machine-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--gray-200); transition: var(--transition); }
.machine-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.machine-img { height: 180px; overflow: hidden; position: relative; background: var(--gray-100); display: flex; align-items: center; justify-content: center; }
.machine-img img { width: 100%; height: 100%; object-fit: cover; }
.machine-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.machine-status-badge { position: absolute; top: 8px; left: 8px; }
.machine-body { padding: 16px; }
.machine-meta { font-size: 13px; }
.machine-footer { padding: 12px 16px; border-top: 1px solid var(--gray-200); background: var(--gray-100); display: flex; gap: 8px; }

/* Finance Summary Box */
.finance-summary-box { background: var(--gray-100); border-radius: var(--radius-sm); padding: 16px; border: 1px solid var(--gray-200); }
.fs-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.fs-item:last-child { border-bottom: none; }

/* Passbook */
.passbook-container { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.farmer-info-box { background: var(--gray-100); border-radius: var(--radius-sm); padding: 16px; border: 1px solid var(--gray-200); height: 100%; }

/* Payment dot */
.payment-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: var(--green-mid); }
.dot-blue { background: var(--blue); }

/* Buttons */
.btn-xs { padding: 3px 8px; font-size: 11px; border-radius: 4px; }
.btn-login { padding: 12px; font-size: 15px; font-weight: 600; border-radius: var(--radius-sm); }

/* ===== LOGIN PAGES ===== */
.login-body { background: linear-gradient(135deg, #0f3d1a 0%, #1a7431 50%, #0f3d1a 100%); min-height: 100vh; }
.login-wrapper { display: flex; min-height: 100vh; }
.login-left { width: 42%; background: rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-left-content { max-width: 320px; }
.login-brand-icon { width: 70px; height: 70px; background: rgba(255,255,255,0.2); border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; }
.login-features { display: flex; flex-direction: column; gap: 12px; }
.feature-item { color: rgba(255,255,255,0.85); font-size: 14px; }
.text-white-75 { color: rgba(255,255,255,0.75); }
.text-white-50 { color: rgba(255,255,255,0.5); }

.login-right { flex: 1; background: #fff; padding: 40px; }
.login-form-wrap { width: 100%; max-width: 420px; }
.login-form-icon { width: 64px; height: 64px; background: #1a1a1a; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; }
.login-hint { font-size: 12px; }
.toggle-pass { background: var(--gray-100); border: 1px solid var(--gray-200); cursor: pointer; color: var(--gray-600); }
.toggle-pass:hover { background: var(--gray-200); }

.register-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.register-header { background: linear-gradient(135deg, #0f3d1a, #1a7431); padding: 30px 24px; }

/* Manager login left */
.manager-login-left { background: linear-gradient(135deg, #3d2a0f 0%, #7a5c1a 100%); }
.farmer-login-left { background: linear-gradient(135deg, #0f3d1a, #145a26 100%); }

/* ===== HOME PAGE ===== */
.home-body { background: #f8f9fa; }
.home-navbar { background: linear-gradient(135deg, #0f3d1a 0%, #1a7431); padding: 12px 0; }
.home-navbar .nav-link { color: rgba(255,255,255,0.85) !important; font-weight: 500; }
.home-navbar .nav-link:hover, .home-navbar .nav-link.active { color: #fff !important; background: rgba(255,255,255,0.1); border-radius: 6px; }
.home-brand-icon { width: 40px; height: 40px; background: var(--warning); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--green-dark); font-size: 18px; }

.hero-section { background: linear-gradient(135deg, #0f3d1a 0%, #1a7431 50%, #145a26 100%); padding: 60px 0; position: relative; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-badge { display: inline-flex; align-items: center; background: rgba(255,255,255,0.15); color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.hero-title { font-size: 2.8rem; font-weight: 800; color: #fff; line-height: 1.2; }
.hero-desc { color: rgba(255,255,255,0.85); font-size: 16px; margin-top: 12px; max-width: 500px; }
.hero-stats { gap: 32px !important; }
.stat-item { color: #fff; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--warning); }
.stat-lbl { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.min-vh-80 { min-height: 80vh; }

.hero-illustration { position: relative; width: 100%; max-width: 450px; height: 380px; display: flex; align-items: center; justify-content: center; }
.hero-img-wrap { opacity: 0.15; }
.float-card { position: absolute; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-radius: 30px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: #333; box-shadow: 0 8px 25px rgba(0,0,0,0.15); animation: floatCard 3s ease-in-out infinite; }
.float-card-1 { top: 15%; left: 5%; animation-delay: 0s; }
.float-card-2 { top: 5%; right: 10%; animation-delay: 0.8s; }
.float-card-3 { bottom: 30%; left: 0%; animation-delay: 1.5s; }
.float-card-4 { bottom: 15%; right: 5%; animation-delay: 2.2s; }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Feature Cards */
.feature-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; text-align: center; transition: var(--transition); border: 1px solid var(--gray-200); border-bottom: 3px solid transparent; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.feature-icon { width: 60px; height: 60px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; margin-bottom: 16px; }

/* Step Cards */
.step-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; text-align: center; transition: var(--transition); border: 1px solid var(--gray-200); position: relative; }
.step-card:hover { transform: translateY(-3px); }
.step-number { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; background: var(--green-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.step-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; margin-top: 8px; }

/* Portal Cards */
.portal-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 24px; text-align: center; transition: var(--transition); border-top: 4px solid transparent; }
.portal-card:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(0,0,0,0.12); }
.farmer-portal { border-top-color: var(--green-mid); }
.manager-portal { border-top-color: var(--warning); }
.admin-portal { border-top-color: #333; }
.portal-icon { font-size: 40px; margin-bottom: 16px; display: block; }
.farmer-portal .portal-icon { color: var(--green-mid); }
.manager-portal .portal-icon { color: var(--warning-dark); }
.admin-portal .portal-icon { color: #333; }

.home-footer { background: var(--green-dark); }

/* Page Header Section */
.page-header-section { background: linear-gradient(135deg, #0f3d1a 0%, #1a7431 100%); }

/* About Page */
.about-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; }
.about-image-card { position: relative; background: var(--green-light); border-radius: var(--radius); padding: 40px; }
.about-image-placeholder { display: flex; align-items: center; justify-content: center; min-height: 300px; }
.about-floating-card { position: absolute; right: 20px; bottom: 20px; background: #fff; border-radius: var(--radius-sm); padding: 16px 24px; box-shadow: var(--shadow); }

.mission-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border-left: 4px solid var(--green-primary); }
.mission-icon { width: 50px; height: 50px; background: var(--green-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; margin-bottom: 16px; }

.value-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; text-align: center; border: 1px solid var(--gray-200); transition: var(--transition); }
.value-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

/* Services Page */
.service-image-card { border-radius: var(--radius); padding: 60px 40px; text-align: center; }

/* How It Works Page */
.step-detail-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; border: 1px solid var(--gray-200); }
.step-number-large { font-size: 64px; font-weight: 800; color: rgba(0,0,0,0.05); line-height: 1; margin-bottom: -20px; }
.step-visual-card { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--gray-200); }
.calculation-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; border: 1px solid var(--gray-200); }

/* Contact Page */
.contact-info-card { display: flex; align-items: flex-start; gap: 16px; background: #fff; border-radius: var(--radius-sm); padding: 16px; border: 1px solid var(--gray-200); }
.contact-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; flex-shrink: 0; }
.contact-form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; border: 1px solid var(--gray-200); }
.branch-location-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--gray-200); }
.branch-loc-header { background: var(--green-primary); color: #fff; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.branch-loc-header.bg-warning { background: var(--warning); color: #333; }
.branch-loc-header.bg-info { background: var(--info); color: #333; }
.branch-loc-body { padding: 16px 20px; }

/* Credit Box */
.credit-box { background: rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: 24px; }
.credit-percent { font-size: 36px; font-weight: 800; }
.credit-label { font-size: 14px; opacity: 0.75; }

/* Machine Service Card */
.machine-service-card { background: #fff; border-radius: var(--radius-sm); padding: 16px; text-align: center; border: 1px solid var(--gray-200); }

/* ===== FARMER PANEL ===== */
.farmer-body { background: #f0f4f1; }
.farmer-navbar { background: linear-gradient(135deg, #0f3d1a, #1a7431); padding: 10px 0; }
.farmer-brand-icon { width: 38px; height: 38px; background: var(--warning); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--green-dark); font-size: 16px; }
.navbar .nav-link { color: rgba(255,255,255,0.85); font-size: 13.5px; padding: 6px 10px; border-radius: 6px; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: #fff; background: rgba(255,255,255,0.15); }

.farmer-content { }
.farmer-footer { background: var(--green-dark); color: rgba(255,255,255,0.8); padding: 20px 0; font-size: 13px; }

.farmer-welcome-banner { background: linear-gradient(135deg, #0f3d1a, #1a7431); border-radius: var(--radius); padding: 20px 24px; color: #fff; }
.farmer-welcome-banner small, .farmer-welcome-banner span { opacity: 0.85; font-size: 13px; }

.farmer-stat-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border-left: 4px solid var(--green-primary); transition: var(--transition); }
.farmer-stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

.farmer-product-card { position: relative; }
.out-of-stock { opacity: 0.7; }
.out-of-stock-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; border-radius: var(--radius-sm); }

.farmer-credit-preview { background: rgba(26,116,49,0.06); border: 1px solid rgba(26,116,49,0.15); }
.credit-preview-box { background: rgba(255,255,255,0.9); border: 1px solid rgba(26,116,49,0.2); }

.credit-summary-farmer { }
.farmer-fin-card { background: #fff; border-radius: var(--radius-sm); border: 2px solid var(--gray-200); padding: 12px; text-align: center; transition: var(--transition); }
.farmer-fin-val { font-size: 18px; font-weight: 800; }
.farmer-fin-lbl { font-size: 11px; color: var(--gray-600); margin-top: 2px; }

/* ===== EMPTY STATE ===== */
.empty-state { padding: 40px; text-align: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .admin-sidebar { position: fixed; left: -100%; top: 0; z-index: 2000; box-shadow: 5px 0 20px rgba(0,0,0,0.3); }
    .admin-sidebar.open { left: 0; }
    .main-content { width: 100%; }
    .hero-title { font-size: 2rem; }
    .login-left { display: none !important; }
}
@media (max-width: 768px) {
    .login-right { padding: 24px; }
    .page-content { padding: 16px !important; }
    .hero-title { font-size: 1.6rem; }
    .hero-stats { gap: 16px !important; }
    .stat-num { font-size: 22px; }
    .float-card { display: none; }
}
@media (max-width: 576px) {
    .hero-section { padding: 40px 0; }
    .admin-topbar { padding: 0 12px !important; }
}

/* Print styles */
@media print {
    .admin-sidebar, .admin-topbar, .farmer-navbar, .farmer-footer, .btn, .modal, .no-print { display: none !important; }
    .card { box-shadow: none; border: 1px solid #dee2e6; }
    body { background: #fff; font-size: 11px; }
}
