/* ============================================
   SKY AADHAAR OUC-2.0 - Complete Stylesheet
   Dark / Light Mode + Colorful Dashboard
   ============================================ */

/* === CSS Variables === */
:root, [data-theme="light"] {
    --bg-body: #eef1f5;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-header: #ffffff;
    --bg-input: #f8f9fb;
    --bg-hover: rgba(111,66,193,0.06);
    --bg-table-head: #6f42c1;
    --bg-table-hover: rgba(111,66,193,0.04);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4d65;
    --text-muted: #8b8da3;
    --text-on-brand: #ffffff;
    --border-color: #e2e4eb;
    --border-light: #f0f0f5;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --brand: #6f42c1;
    --brand-rgb: 111,66,193;
    --brand-dark: #5a35a0;
    --brand-light: #f3eefa;
    --brand-glow: rgba(111,66,193,0.2);
    --accent-red: #e74c3c;
    --accent-green: #27ae60;
    --accent-orange: #f39c12;
    --accent-blue: #2980b9;
    --accent-teal: #0abde3;
    --accent-pink: #e84393;
    --accent-indigo: #5f27cd;
    --gradient-brand: linear-gradient(135deg, #6f42c1 0%, #a855f7 100%);
    --gradient-warm: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%);
    --gradient-cool: linear-gradient(135deg, #2980b9 0%, #0abde3 100%);
    --gradient-green: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    --gradient-pink: linear-gradient(135deg, #e84393 0%, #fd79a8 100%);
    --gradient-sidebar: linear-gradient(180deg, #1a1a2e 0%, #2d2b55 100%);
    --scrollbar-track: #f0f0f5;
    --scrollbar-thumb: #c5c5d2;
    --code-bg: #f4f4f8;
}

[data-theme="dark"] {
    --bg-body: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-sidebar: #12121f;
    --bg-header: #16162a;
    --bg-input: #22223a;
    --bg-hover: rgba(111,66,193,0.1);
    --bg-table-head: #2d2b55;
    --bg-table-hover: rgba(111,66,193,0.08);
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b85;
    --text-on-brand: #ffffff;
    --border-color: #2a2a45;
    --border-light: #22223a;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --brand-light: rgba(111,66,193,0.15);
    --brand-glow: rgba(111,66,193,0.3);
    --scrollbar-track: #1a1a2e;
    --scrollbar-thumb: #3a3a55;
    --code-bg: #22223a;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}
a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }

/* === Top Header === */
.top-header {
    background: var(--bg-header);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 58px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s, border-color 0.3s;
}
.top-header .brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}
.top-header .brand i { font-size: 22px; }
.top-header .nav-links { display: flex; align-items: center; gap: 4px; }
.top-header .nav-links a {
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.top-header .nav-links a:hover { background: var(--bg-hover); color: var(--brand); }
.top-header .nav-links a.active { background: var(--brand); color: #fff; }
.top-header .user-info { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.balance-badge {
    background: var(--gradient-green);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(39,174,96,0.3);
}
.logout-btn {
    background: var(--accent-red);
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}
.logout-btn:hover { background: #c0392b; color: #fff !important; }

/* Theme Toggle */
.theme-toggle {
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}
.theme-toggle:hover { background: var(--brand-light); color: var(--brand); border-color: var(--brand); }

/* Notification Bell */
.notif-bell {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}
.notif-bell:hover { background: var(--brand-light); color: var(--brand); }
.notif-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--accent-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-header);
}
.notif-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: none;
    overflow: hidden;
}
.notif-dropdown.show { display: block; }
.notif-dropdown .notif-header {
    padding: 14px 16px;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-input);
}
.notif-dropdown .notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.15s;
}
.notif-dropdown .notif-item:hover { background: var(--bg-hover); }
.notif-dropdown .notif-item .nt { font-weight: 600; font-size: 13px; color: var(--text-primary); }
.notif-dropdown .notif-item .nm { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.notif-dropdown .notif-item .nd { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.notif-dropdown .notif-empty { padding: 30px; text-align: center; color: var(--text-muted); }

/* === Layout === */
.main-wrapper { display: flex; min-height: calc(100vh - 58px); }

/* === Sidebar === */
.sidebar {
    width: 250px;
    background: var(--bg-sidebar);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    flex-shrink: 0;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
    transition: background 0.3s, border-color 0.3s;
}
.menu-section {
    padding: 14px 20px 6px;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    font-weight: 700;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 400;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}
.menu-item:hover {
    background: var(--bg-hover);
    color: var(--brand);
    border-left-color: var(--brand);
}
.menu-item.active {
    background: var(--brand-light);
    color: var(--brand);
    border-left-color: var(--brand);
    font-weight: 600;
}
.menu-item i { width: 18px; text-align: center; font-size: 14px; }
.menu-item .menu-badge {
    margin-left: auto;
    background: var(--accent-red);
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
}

/* Sidebar Driver Card */
.driver-card {
    margin: 15px;
    padding: 16px;
    background: var(--gradient-warm);
    color: #fff;
    border-radius: 10px;
    text-align: center;
}
.driver-card a {
    color: #fff;
    display: block;
    margin-top: 8px;
    background: rgba(255,255,255,0.2);
    padding: 7px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s;
}
.driver-card a:hover { background: rgba(255,255,255,0.3); color: #fff; }

/* === Content Area === */
.content-area {
    flex: 1;
    padding: 24px;
    overflow-x: auto;
    min-width: 0;
}

/* === Page Title === */
.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* === Stat Cards === */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid var(--border-light);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card .sc-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    margin-bottom: 14px;
}
.stat-card .sc-value { font-size: 28px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-card .sc-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; margin-top: 6px; }
.stat-card .sc-bg-icon {
    position: absolute;
    right: -8px; bottom: -8px;
    font-size: 80px;
    opacity: 0.05;
}
.stat-card.purple .sc-icon { background: var(--gradient-brand); }
.stat-card.red .sc-icon { background: var(--gradient-warm); }
.stat-card.blue .sc-icon { background: var(--gradient-cool); }
.stat-card.green .sc-icon { background: var(--gradient-green); }
.stat-card.pink .sc-icon { background: var(--gradient-pink); }
.stat-card.teal .sc-icon { background: linear-gradient(135deg, #0abde3, #48dbfb); }

/* === Cards === */
.card {
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
    transition: background 0.3s, border-color 0.3s;
}
.card-header {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header i { color: var(--brand); margin-right: 8px; }
.card-body { padding: 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--border-color); background: var(--bg-input); border-radius: 0 0 14px 14px; }

/* === Form Card === */
.form-card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
    transition: background 0.3s, border-color 0.3s;
}
.form-card h3, .form-card .fc-title {
    color: var(--brand);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === Forms === */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 13px;
    margin-bottom: 6px;
}
.form-control, .form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.3s;
    outline: none;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.15);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 70px; }
.form-text { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.invalid-feedback { font-size: 12px; color: var(--accent-red); margin-top: 4px; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-success { background: var(--accent-green); color: #fff; }
.btn-success:hover { background: #219a52; color: #fff; }
.btn-danger { background: var(--accent-red); color: #fff; }
.btn-danger:hover { background: #c0392b; color: #fff; }
.btn-warning { background: var(--accent-orange); color: #fff; }
.btn-warning:hover { background: #d68910; color: #fff; }
.btn-info { background: var(--accent-blue); color: #fff; }
.btn-info:hover { background: #1f6da0; color: #fff; }
.btn-secondary { background: var(--bg-input); color: var(--text-secondary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--border-color); color: var(--text-primary); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* === Tables === */
.table-responsive { overflow-x: auto; border-radius: 10px; }
table.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.table thead th {
    background: var(--bg-table-head);
    color: var(--text-on-brand);
    padding: 12px 14px;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: none;
}
.table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    vertical-align: middle;
}
.table tbody tr:hover { background: var(--bg-table-hover); }
.table tbody tr:last-child td { border-bottom: none; }

/* === Badges === */
.badge { padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.badge-pending { background: rgba(243,156,18,0.12); color: #d68910; }
.badge-approved { background: rgba(39,174,96,0.12); color: #27ae60; }
.badge-rejected { background: rgba(231,76,60,0.12); color: #e74c3c; }
.badge-completed { background: rgba(41,128,185,0.12); color: #2980b9; }
[data-theme="dark"] .badge-pending { background: rgba(243,156,18,0.2); }
[data-theme="dark"] .badge-approved { background: rgba(39,174,96,0.2); }
[data-theme="dark"] .badge-rejected { background: rgba(231,76,60,0.2); }
[data-theme="dark"] .badge-completed { background: rgba(41,128,185,0.2); }

/* === Alerts === */
.alert { padding: 14px 18px; border-radius: 10px; font-size: 13px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; }
.alert-success { background: rgba(39,174,96,0.08); color: #1e8449; border-color: rgba(39,174,96,0.2); }
.alert-danger { background: rgba(231,76,60,0.08); color: #c0392b; border-color: rgba(231,76,60,0.2); }
.alert-warning { background: rgba(243,156,18,0.08); color: #d68910; border-color: rgba(243,156,18,0.2); }
.alert-info { background: rgba(41,128,185,0.08); color: #2471a3; border-color: rgba(41,128,185,0.2); }
[data-theme="dark"] .alert-success { background: rgba(39,174,96,0.15); color: #2ecc71; }
[data-theme="dark"] .alert-danger { background: rgba(231,76,60,0.15); color: #e74c3c; }
[data-theme="dark"] .alert-warning { background: rgba(243,156,18,0.15); color: #f39c12; }
[data-theme="dark"] .alert-info { background: rgba(41,128,185,0.15); color: #3498db; }
.alert .close { margin-left: auto; cursor: pointer; font-size: 18px; opacity: 0.6; background: none; border: none; color: inherit; }

/* === Iris Section === */
.iris-section {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}
.iris-setup-bar {
    padding: 12px 16px;
    border: 1px solid rgba(10,189,227,0.3);
    border-radius: 10px;
    background: rgba(10,189,227,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.iris-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.iris-item {
    background: var(--bg-card);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: border-color 0.2s;
}
.iris-item.captured { border-color: var(--accent-green); }
.iris-label { font-weight: 600; font-size: 12px; margin-bottom: 8px; color: var(--text-primary); }
.iris-placeholder { font-size: 36px; color: var(--text-muted); display: block; margin-bottom: 8px; }
.iris-item img { max-width: 100px; max-height: 80px; border: 1px solid var(--border-color); border-radius: 6px; }
.iris-quality { margin-top: 5px; font-size: 11px; font-weight: 600; color: var(--accent-green); }
#irisBridgeStatus {
    text-align: center;
    margin-top: 12px;
    padding: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
#irisBridgeStatus.ok { color: var(--accent-green); border-color: rgba(39,174,96,0.3); background: rgba(39,174,96,0.05); }
#irisBridgeStatus.err { color: var(--accent-red); border-color: rgba(231,76,60,0.3); background: rgba(231,76,60,0.05); }

/* === Charts Container === */
.chart-container { position: relative; height: 280px; width: 100%; }

/* === Pagination === */
.pagination { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.pagination .page-item .page-link {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    background: var(--bg-card);
    transition: all 0.15s;
}
.pagination .page-item.active .page-link { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .page-item .page-link:hover { background: var(--bg-hover); color: var(--brand); }

/* === Welcome Modal === */
.welcome-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}
.welcome-box {
    background: var(--bg-card);
    border-radius: 16px;
    width: 90%; max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.welcome-box .wb-header {
    background: var(--gradient-warm);
    color: #fff;
    padding: 20px 24px;
    border-radius: 16px 16px 0 0;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 17px; font-weight: 700;
}
.welcome-box .wb-header button { background: rgba(255,255,255,0.2); border: none; color: #fff; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.welcome-box .wb-body { padding: 20px 24px; }
.notice-item { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.notice-item:last-child { border-bottom: none; }
.notice-item .notice-title { font-weight: 600; color: var(--text-primary); font-size: 14px; margin-bottom: 4px; }
.notice-item .notice-content { font-size: 13px; color: var(--text-secondary); }
.notice-item .notice-date { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* === Login Page === */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2b55 50%, #6f42c1 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.login-wrapper::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(111,66,193,0.3) 0%, transparent 70%);
    top: -200px; right: -100px;
    border-radius: 50%;
}
.login-wrapper::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(10,189,227,0.2) 0%, transparent 70%);
    bottom: -150px; left: -100px;
    border-radius: 50%;
}
.login-box {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}
.login-box .lb-brand {
    text-align: center;
    margin-bottom: 30px;
}
.login-box .lb-brand i { font-size: 48px; color: var(--brand); }
.login-box .lb-brand h2 { font-size: 24px; font-weight: 800; color: var(--text-primary); margin: 8px 0 4px; }
.login-box .lb-brand p { color: var(--text-muted); font-size: 13px; }

/* === Row / Grid === */
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.col-12, .col-6, .col-4, .col-3, .col-8, .col-md-12, .col-md-6, .col-md-4, .col-md-3, .col-lg-8, .col-lg-4 { padding: 0 10px; width: 100%; }
.col-6, .col-md-6 { width: 50%; }
.col-4, .col-md-4, .col-lg-4 { width: 33.333%; }
.col-3, .col-md-3 { width: 25%; }
.col-8, .col-lg-8 { width: 66.666%; }

/* === Action Buttons Group === */
.action-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.action-btns .btn { padding: 4px 10px; font-size: 11px; }

/* === Tabs === */
.nav-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border-color); margin-bottom: 20px; }
.nav-tabs .nav-tab {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.nav-tabs .nav-tab:hover { color: var(--brand); }
.nav-tabs .nav-tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* === Mobile Sidebar Toggle === */
.sidebar-toggle {
    display: none;
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-secondary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1029;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 56px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h4 { font-size: 18px; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

/* === Animations === */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes spin { to { transform: rotate(360deg); } }
.fa-spin { animation: spin 1s linear infinite; }

/* === Responsive === */
@media (max-width: 992px) {
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 58px;
        bottom: 0;
        z-index: 1031;
        transition: left 0.3s ease;
    }
    .sidebar.open { left: 0; }
    .sidebar-overlay.show { display: block; }
    .sidebar-toggle { display: flex; }
    .top-header .nav-links { display: none; }
    .content-area { padding: 16px; }
    .stat-cards { grid-template-columns: 1fr; }
    .iris-grid { grid-template-columns: repeat(2, 1fr); }
    .col-6, .col-4, .col-3, .col-8, .col-md-6, .col-md-4, .col-md-3, .col-lg-8, .col-lg-4 { width: 100%; }
    .login-box { padding: 28px 22px; }
    .notif-dropdown { width: 300px; right: -40px; }
}
@media (max-width: 480px) {
    .iris-grid { grid-template-columns: 1fr; }
    .top-header { padding: 0 12px; }
    .top-header .user-info { gap: 8px; }
    .balance-badge { font-size: 11px; padding: 4px 10px; }
}

/* Print */
@media print {
    .top-header, .sidebar, .theme-toggle, .notif-bell, .btn { display: none !important; }
    .content-area { padding: 0; }
    .stat-card, .card, .form-card { box-shadow: none; border: 1px solid #ddd; }
}