/* ═══════════════════════════════════════════════════════════════
   MICROFINANCE PORTAL
   Premium Enterprise Dashboard Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
    /* Brand Palette - Green Theme */
    --primary:        #0E6F45;
    --primary-light:  #149B60;
    --primary-dark:   #09492D;
    --primary-50:     #E8F4EE;
    --primary-100:    #C2E3D2;

    --accent:         #D4AF37; /* Gold accent */
    --accent-light:   #E2C76A;
    --accent-dark:    #997A00;
    --accent-50:      #FBF7E9;

    --green:          #1E8E3E;
    --green-light:    #27AE60;
    --green-50:       #E6F4EA;
    --green-glow:     rgba(39, 174, 96, 0.25);

    --danger:         #D93025;
    --danger-light:   #E24C4B;
    --danger-50:      #FCE8E6;

    --warning:        #E8A317;
    --warning-light:  #F1C40F;
    --warning-50:     #FEF7E0;

    --info:           #1A73E8;
    --info-50:        #E8F0FE;

    /* Neutrals */
    --white:          #FFFFFF;
    --gray-25:        #FCFCFD;
    --gray-50:        #F8F9FC;
    --gray-100:       #F3F5F9;
    --gray-200:       #E5E8F0;
    --gray-300:       #D0D5E1;
    --gray-400:       #A0A8BC;
    --gray-500:       #6B7280;
    --gray-600:       #4B5563;
    --gray-700:       #374151;
    --gray-800:       #1F2937;
    --gray-900:       #111827;

    /* Semantic */
    --text-primary:   var(--gray-800);
    --text-secondary: var(--gray-600);
    --text-muted:     var(--gray-400);
    --border-color:   var(--gray-200);
    --bg-body:        var(--gray-100);
    --bg-card:        var(--white);
    --bg-surface:     var(--gray-50);

    /* Layout */
    --sidebar-width:  260px;
    --header-height:  64px;
    --border-radius:  12px;
    --radius-sm:      8px;
    --radius-xs:      6px;
    --radius-full:    9999px;

    /* Elevation */
    --shadow-xs:      0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm:      0 2px 6px rgba(0,0,0,0.05);
    --shadow-md:      0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg:      0 8px 24px rgba(0,0,0,0.08);
    --shadow-xl:      0 16px 48px rgba(0,0,0,0.10);

    /* Motion */
    --ease:           cubic-bezier(0.4, 0, 0.2, 1);
    --duration:       0.2s;
    --transition:     all var(--duration) var(--ease);
}

/* ── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-body); color: var(--text-primary); line-height: 1.6; min-height: 100vh; overflow-x: hidden; }
a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* ── TYPOGRAPHY UTILITIES ──────────────────────────────────── */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-muted) !important; }
.text-danger  { color: var(--danger) !important; }
.text-success { color: var(--green) !important; }
.text-primary { color: var(--primary) !important; }
.fs-sm        { font-size: 0.85rem !important; }
.fs-xs        { font-size: 0.75rem !important; }
.font-bold    { font-weight: 700 !important; }
.font-medium  { font-weight: 500 !important; }
.required     { color: var(--danger); font-weight: 700; }

/* ── LAYOUT: APP WRAPPER ──────────────────────────────────── */
.app-wrapper { display: flex; min-height: 100vh; }

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════ */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s var(--ease);
    overflow: hidden;
}

.sidebar-brand {
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    flex-shrink: 0;
}
.brand-text { font-family: 'Roboto Slab', serif; font-size: 24px; font-weight: 800; color: var(--primary); }

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.nav-section { margin-bottom: 4px; }
.nav-section-title {
    padding: 14px 22px 8px;
    font-size: 0.68rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 22px;
    color: rgba(255, 255, 255, 0.8);
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    border-left: 3px solid transparent;
    margin: 1px 0;
}
.nav-item svg, .nav-item i { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.75; transition: var(--transition); }
.nav-item:hover { background: rgba(255,255,255,0.06); color: var(--white); border-left-color: rgba(255,255,255,0.2); }
.nav-item:hover svg, .nav-item:hover i { opacity: 1; }
.nav-item.active { background: rgba(255,255,255,0.08); color: var(--white); border-left-color: var(--accent); font-weight: 600; }
.nav-item.active svg, .nav-item.active i { opacity: 1; color: var(--accent); }

.nav-badge {
    margin-left: auto; background: var(--danger); color: var(--white); font-size: 0.65rem; font-weight: 800;
    padding: 2px 7px; border-radius: var(--radius-full); line-height: 1.4; min-width: 18px; text-align: center;
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.sidebar-footer { border-top: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.sidebar-user { padding: 16px 22px; display: flex; align-items: center; gap: 12px; }
.user-avatar {
    width: 40px; height: 40px; background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--white); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}
.user-info { overflow: hidden; }
.user-info .user-name { color: var(--white); font-weight: 600; font-size: 0.85rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info .user-role { color: rgba(255, 255, 255, 0.6); font-size: 0.68rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(2px); z-index: 999; opacity: 0; transition: opacity 0.3s var(--ease); }
.sidebar-overlay.show { display: block; opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════════════════════════════════════ */
.main-content { flex: 1; margin-left: var(--sidebar-width); min-height: 100vh; min-width: 0; display: flex; flex-direction: column; background: var(--bg-body); transition: margin var(--duration) var(--ease); }

.top-header {
    height: var(--header-height); background: var(--white); border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 900; box-shadow: var(--shadow-xs); flex-shrink: 0;
}
.header-left { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; }
.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--text-secondary); padding: 6px; border-radius: var(--radius-sm); transition: var(--transition); flex-shrink: 0; }
.hamburger:hover { background: var(--gray-100); color: var(--primary); }
.hamburger svg { width: 22px; height: 22px; }

.page-title-header { min-width: 0; flex: 1; overflow: hidden; }
.page-title-header h1 { font-size: 1.25rem; color: var(--primary); font-family: 'Roboto Slab', serif; font-weight: 800; letter-spacing: -0.3px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-title-header p { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-btn {
    width: 38px; height: 38px; background: var(--gray-50); border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; color: var(--text-secondary); cursor: pointer; position: relative; transition: var(--transition);
}
.header-btn svg { width: 18px; height: 18px; }
.header-btn:hover { background: var(--primary-50); border-color: var(--primary-100); color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.notification-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; border: 2px solid var(--white); animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 48, 37, 0.4); } 50% { box-shadow: 0 0 0 4px rgba(217, 48, 37, 0); } }

.dropdown { position: relative; }
.header-user-btn { display: flex; align-items: center; gap: 10px; background: none; border: 1px solid transparent; cursor: pointer; padding: 5px 10px 5px 5px; border-radius: var(--radius-full); transition: var(--transition); }
.header-user-btn:hover { background: var(--gray-50); border-color: var(--border-color); }
.avatar-sm { width: 34px; height: 34px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 50%; color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.78rem; box-shadow: 0 2px 6px rgba(14, 111, 69, 0.2); flex-shrink: 0; }
.user-meta { text-align: left; line-height: 1; }
.user-meta .name { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.user-meta .role { font-size: 0.68rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; display: block; }

.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--white); border: 1px solid var(--border-color); border-radius: var(--border-radius); min-width: 200px; box-shadow: var(--shadow-lg); display: none; padding: 6px; z-index: 1100; animation: dropdownIn 0.15s var(--ease); }
.dropdown-menu.show { display: block; }
@keyframes dropdownIn { from { opacity: 0; transform: translateY(-6px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 0.9rem; color: var(--text-primary); border-radius: var(--radius-sm); transition: var(--transition); font-weight: 500; }
.dropdown-item svg { width: 16px; height: 16px; color: var(--text-muted); }
.dropdown-item:hover { background: var(--gray-50); color: var(--primary); }
.dropdown-item:hover svg { color: var(--primary); }
.dropdown-item.text-danger { color: var(--danger); }
.dropdown-item.text-danger svg { color: var(--danger); }
.dropdown-item.text-danger:hover { background: var(--danger-50); color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 4px 8px; }

.content-area { padding: 24px 28px 40px; flex: 1; min-width: 0; max-width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   CARDS, BUTTONS, FORMS
   ═══════════════════════════════════════════════════════════════ */
.card { background: var(--white); border-radius: var(--border-radius); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); margin-bottom: 24px; overflow: hidden; transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease); }
.card:hover { box-shadow: var(--shadow-md); }
.card-header { padding: 16px 24px; border-bottom: 1px solid var(--border-color); background: var(--gray-25); display: flex; justify-content: space-between; align-items: center; }
.card-header h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin: 0; display: flex; align-items: center; gap: 6px; }
.card-body { padding: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: var(--transition); border: 1px solid transparent; gap: 8px; white-space: nowrap; font-family: inherit; line-height: 1.4; }
.btn-primary { background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%); color: var(--white); box-shadow: 0 2px 6px rgba(14, 111, 69, 0.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(14, 111, 69, 0.3); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--text-secondary); border-color: var(--border-color); }
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-300); color: var(--text-primary); transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.btn-danger { background: linear-gradient(135deg, var(--danger-light), var(--danger)); color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: var(--radius-xs); }
.btn svg { width: 16px; height: 16px; }

.form-group { margin-bottom: 20px; flex: 1; min-width: 0; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; }
.form-control { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.9rem; color: var(--text-primary); background: var(--gray-25); transition: var(--transition); line-height: 1.5; }
.form-control:focus { border-color: var(--primary); outline: none; background: var(--white); box-shadow: 0 0 0 3px var(--primary-50); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }

/* ═══════════════════════════════════════════════════════════════
   DATA TABLES & BADGES
   ═══════════════════════════════════════════════════════════════ */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--gray-50); padding: 11px 20px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); text-align: left; border-bottom: 1.5px solid var(--border-color); white-space: nowrap; position: sticky; top: 0; }
.data-table td { padding: 13px 20px; font-size: 0.9rem; color: var(--text-primary); border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.data-table tbody tr:hover { background: var(--gray-50); }

.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; line-height: 1.6; }
.badge-danger    { background: var(--danger-50); color: var(--danger); }
.badge-success   { background: var(--green-50); color: var(--green); }
.badge-warning   { background: var(--warning-50); color: var(--warning); }
.badge-info      { background: var(--info-50); color: var(--info); }
.badge-secondary { background: var(--gray-100); color: var(--gray-500); }
.badge-primary   { background: var(--primary-50); color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════
   ALERTS & STATS
   ═══════════════════════════════════════════════════════════════ */
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; margin-bottom: 20px; border: 1px solid transparent; animation: alertSlide 0.3s var(--ease); }
@keyframes alertSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.alert-success { background: var(--green-50); border-color: rgba(30, 142, 62, 0.15); color: var(--green); }
.alert-danger { background: var(--danger-50); border-color: rgba(217, 48, 37, 0.15); color: var(--danger); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--border-radius); padding: 22px 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; transition: var(--transition); position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, transparent, transparent); transition: var(--transition); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card:nth-child(1)::before { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, var(--warning), var(--warning-light)); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, var(--danger), var(--danger-light)); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.stat-info h3 { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 4px; }
.stat-value { font-size: 2rem; font-weight: 900; color: var(--primary); font-family: 'Roboto Slab', serif; line-height: 1.1; }
.stat-icon { width: 52px; height: 52px; border-radius: var(--border-radius); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-icon svg { width: 24px; height: 24px; }
.stat-icon.primary { background: var(--primary-50); color: var(--primary); }
.stat-icon.success { background: var(--green-50); color: var(--green); }
.stat-icon.warning { background: var(--warning-50); color: var(--warning); }
.stat-icon.danger  { background: var(--danger-50); color: var(--danger); }
.stat-icon.info    { background: var(--info-50); color: var(--info); }

/* ═══════════════════════════════════════════════════════════════
   PORTAL / LOGIN SYSTEM (index.php)
   ═══════════════════════════════════════════════════════════════ */
.portal { position: relative; width: 100vw; min-height: 100vh; overflow-y: auto; overflow-x: hidden; background: var(--primary-dark); }
.bg-slideshow { position: absolute; inset: 0; z-index: 1; }
.bg-slide { position: absolute; inset: 0; background-image: url('../img/bg.png'); background-size: cover; background-position: center; animation: subtleZoom 20s ease-in-out infinite alternate; }
@keyframes subtleZoom { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }

.bg-overlay { position: absolute; inset: 0; z-index: 2; background: radial-gradient(ellipse at 30% 50%, rgba(9, 73, 45, 0.6) 0%, transparent 70%), linear-gradient(135deg, rgba(9, 73, 45, 0.85) 0%, rgba(14, 111, 69, 0.5) 45%, rgba(212, 175, 55, 0.15) 100%); }

.brand-panel { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); z-index: 10; width: 38%; max-width: 500px; color: var(--white); animation: brandIn 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes brandIn { from { opacity: 0; transform: translateY(-50%) translateX(-40px); } to { opacity: 1; transform: translateY(-50%) translateX(0); } }
.brand-title { font-size: clamp(32px, 4vw, 52px); font-family: 'Roboto Slab', serif; font-weight: 900; line-height: 1.05; margin-bottom: 20px; text-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.brand-title .highlight { background: linear-gradient(135deg, var(--accent), var(--accent-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.brand-desc { font-size: clamp(14px, 1.2vw, 17px); line-height: 1.7; color: rgba(255,255,255,0.8); text-shadow: 0 2px 10px rgba(0,0,0,0.5); max-width: 420px; }

.login-panel-wrapper { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); z-index: 10; display: flex; justify-content: flex-end; width: 38%; animation: loginIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
@keyframes loginIn { from { opacity: 0; transform: translateY(-50%) translateX(40px); } to { opacity: 1; transform: translateY(-50%) translateX(0); } }

.login-card { width: 420px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border-radius: 28px; border: 1px solid rgba(255,255,255,0.5); box-shadow: 0 32px 80px rgba(0,0,0,0.12), 0 0 0 1px rgba(255,255,255,0.1) inset; overflow: hidden; position: relative; }
.login-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light), var(--accent), var(--primary)); background-size: 300% 100%; animation: gradientShift 6s ease infinite; }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.login-card-body { padding: 44px 40px 36px; }

.login-header { text-align: center; margin-bottom: 32px; }
.login-header h2 { font-size: 26px; font-weight: 800; font-family: 'Roboto Slab', serif; color: var(--primary); margin-bottom: 6px; }
.login-header p { font-size: 13px; color: #6B7280; font-weight: 500; }

.login-field { margin-bottom: 20px; }
.login-field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.login-input-wrap { position: relative; }
.login-input-wrap .field-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #A0A8BC; transition: color 0.2s; pointer-events: none; }
.login-input { width: 100%; padding: 14px 18px 14px 48px; border: 2px solid #E5E8F0; border-radius: 14px; font-size: 14px; font-family: 'Inter', sans-serif; color: #1F2937; background: rgba(248, 249, 252, 0.8); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); outline: none; }
.login-input:focus { border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px rgba(14, 111, 69, 0.1); }
.login-input:focus + .field-icon { color: var(--primary); }

.login-submit { width: 100%; padding: 16px; border: none; border-radius: 14px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); font-size: 15px; font-weight: 700; font-family: 'Inter', sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 8px 24px rgba(14, 111, 69, 0.3); margin-top: 28px; }
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(14, 111, 69, 0.4); }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .brand-panel { left: 4%; width: 42%; }
    .login-panel-wrapper { right: 3%; width: 44%; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .hamburger { display: flex; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .brand-panel { display: none; }
    .login-panel-wrapper { position: relative; right: auto; top: auto; transform: none; width: 100%; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; animation: none; }
    .login-card { width: 100%; max-width: 420px; animation: mobileLoginIn 0.6s ease both; }
    .stats-grid { grid-template-columns: 1fr; }

    /* Mobile Header & Layout Optimization */
    .top-header { padding: 0 12px; gap: 8px; }
    .header-left { gap: 8px; min-width: 0; flex: 1; }
    .header-right { gap: 8px; flex-shrink: 0; }
    .page-title-header { min-width: 0; flex: 1; overflow: hidden; }
    .page-title-header h1 { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .page-title-header p { display: none; }
    .user-meta { display: none !important; }
    .header-user-btn { padding: 2px; }
    .content-area { padding: 16px 12px 30px; }
    .card-header { padding: 12px 16px; }
    .card-body { padding: 16px; }
}
