/* ============================================
   FOOD DELIVERY ADMIN PANEL - MAIN STYLESHEET
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #FF6B35;
    --primary-light: #FF8C5A;
    --primary-dark: #E55A25;
    --secondary: #00D4AA;
    --accent: #6C5CE7;
    --warning: #FDCB6E;
    --danger: #FF6B6B;
    --success: #00B894;
    --info: #74B9FF;
    --bg-dark: #0B1120;
    --bg-sidebar: #0F172A;
    --bg-card: #1E293B;
    --bg-card-hover: #253349;
    --bg-input: #1A2332;
    --border: #2D3B4E;
    --text: #E2E8F0;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    --sidebar-width: 260px;
    --header-height: 65px;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed; left: 0; top: 0;
    width: var(--sidebar-width); height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.sidebar.collapsed { width: 72px; }
.sidebar.collapsed .sidebar-brand span,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .nav-section-title { display: none; }
.sidebar.collapsed .nav-link { justify-content: center; padding: 12px; }
.sidebar.collapsed .nav-link i { margin-right: 0; font-size: 1.2rem; }

.sidebar-brand {
    padding: 18px 20px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.sidebar-brand .logo {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fff; font-weight: 800;
    flex-shrink: 0;
}
.sidebar-brand span {
    font-size: 1.1rem; font-weight: 700; color: var(--text);
    white-space: nowrap;
}

.sidebar-nav {
    flex: 1; overflow-y: auto; padding: 12px 10px;
}
.nav-section-title {
    font-size: 0.65rem; font-weight: 700;
    color: var(--text-dim); text-transform: uppercase;
    letter-spacing: 1.5px; padding: 16px 12px 6px;
}
.nav-link {
    display: flex; align-items: center;
    padding: 10px 14px; margin: 2px 0;
    border-radius: 8px; color: var(--text-muted);
    transition: var(--transition); cursor: pointer;
    position: relative; white-space: nowrap;
}
.nav-link:hover {
    background: rgba(255,107,53,0.08);
    color: var(--text);
}
.nav-link.active {
    background: linear-gradient(135deg, rgba(255,107,53,0.15), rgba(255,107,53,0.05));
    color: var(--primary);
    font-weight: 600;
}
.nav-link.active::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 60%;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}
.nav-link i { width: 20px; margin-right: 12px; font-size: 1rem; text-align: center; flex-shrink: 0; }
.nav-text { flex: 1; font-size: 0.875rem; }
.nav-badge {
    background: var(--primary);
    color: #fff; font-size: 0.65rem; font-weight: 700;
    padding: 2px 7px; border-radius: 10px;
}

/* ===== HEADER ===== */
.main-header {
    position: fixed; top: 0;
    left: var(--sidebar-width); right: 0;
    height: var(--header-height);
    background: rgba(11,17,32,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 0 24px; z-index: 999;
    transition: var(--transition);
}
.sidebar.collapsed ~ .main-content .main-header,
.sidebar.collapsed ~ .main-header { left: 72px; }

.header-left { display: flex; align-items: center; gap: 16px; }
.toggle-sidebar {
    background: none; border: none; color: var(--text-muted);
    font-size: 1.2rem; cursor: pointer; padding: 6px;
    border-radius: 8px; transition: var(--transition);
}
.toggle-sidebar:hover { background: var(--bg-card); color: var(--text); }
.header-search {
    position: relative;
}
.header-search input {
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text); padding: 8px 14px 8px 36px;
    border-radius: 8px; font-size: 0.85rem; width: 280px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}
.header-search input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}
.header-search i {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%); color: var(--text-dim); font-size: 0.85rem;
}

.header-right { display: flex; align-items: center; gap: 8px; }
.header-btn {
    position: relative; background: none; border: none;
    color: var(--text-muted); font-size: 1.1rem;
    padding: 8px 10px; border-radius: 8px; cursor: pointer;
    transition: var(--transition);
}
.header-btn:hover { background: var(--bg-card); color: var(--text); }
.header-btn .badge {
    position: absolute; top: 4px; right: 4px;
    width: 8px; height: 8px;
    background: var(--danger); border-radius: 50%;
    border: 2px solid var(--bg-dark);
}
.header-profile {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 12px 5px 5px; border-radius: 8px;
    cursor: pointer; transition: var(--transition);
    margin-left: 8px;
}
.header-profile:hover { background: var(--bg-card); }
.header-profile img {
    width: 34px; height: 34px;
    border-radius: 8px; object-fit: cover;
}
.header-profile .profile-info { line-height: 1.3; }
.header-profile .profile-name { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.header-profile .profile-role { font-size: 0.65rem; color: var(--text-dim); }

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    padding-top: var(--header-height);
    min-height: 100vh;
    transition: var(--transition);
}
.sidebar.collapsed ~ .main-content { margin-left: 72px; }
.content-wrapper { padding: 24px; }

/* Page Header */
.page-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-header h1 {
    font-size: 1.5rem; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
}
.page-header h1 i { color: var(--primary); font-size: 1.3rem; }
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8rem; color: var(--text-dim); margin-top: 4px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ===== CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px; margin-bottom: 24px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(255,107,53,0.3);
}
.stat-card::after {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 0 0 0 80px;
    opacity: 0.06;
}
.stat-card.orange::after { background: var(--primary); }
.stat-card.green::after { background: var(--success); }
.stat-card.blue::after { background: var(--info); }
.stat-card.purple::after { background: var(--accent); }

.stat-card .stat-icon {
    width: 42px; height: 42px;
    border-radius: 10px; display: flex;
    align-items: center; justify-content: center;
    font-size: 1.1rem; margin-bottom: 14px;
}
.stat-card.orange .stat-icon { background: rgba(255,107,53,0.12); color: var(--primary); }
.stat-card.green .stat-icon { background: rgba(0,184,148,0.12); color: var(--success); }
.stat-card.blue .stat-icon { background: rgba(116,185,255,0.12); color: var(--info); }
.stat-card.purple .stat-icon { background: rgba(108,92,231,0.12); color: var(--accent); }

.stat-card .stat-value {
    font-size: 1.6rem; font-weight: 800;
    margin-bottom: 4px; line-height: 1;
}
.stat-card .stat-label {
    font-size: 0.78rem; color: var(--text-muted);
    margin-bottom: 10px;
}
.stat-card .stat-change {
    font-size: 0.72rem; font-weight: 600;
    display: flex; align-items: center; gap: 4px;
}
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ===== TABLE CARD ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}
.card-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap; gap: 10px;
}
.card-header h2 {
    font-size: 1rem; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.card-header h2 i { color: var(--primary); font-size: 0.9rem; }
.card-body { padding: 20px; }
.card-body.no-padding { padding: 0; }

/* ===== TABLE ===== */
.table-responsive { overflow-x: auto; }
table {
    width: 100%; border-collapse: collapse;
    font-size: 0.85rem;
}
thead th {
    background: rgba(255,255,255,0.03);
    padding: 12px 16px; text-align: left;
    font-weight: 600; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(45,59,78,0.5);
    vertical-align: middle;
}
tbody tr { transition: var(--transition); }
tbody tr:hover { background: rgba(255,107,53,0.03); }
tbody tr:last-child td { border-bottom: none; }

/* ===== BADGES ===== */
.badge-status {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 6px;
    font-size: 0.72rem; font-weight: 600;
    white-space: nowrap;
}
.badge-active, .badge-completed, .badge-approved { background: rgba(0,184,148,0.12); color: var(--success); }
.badge-pending { background: rgba(253,203,110,0.12); color: var(--warning); }
.badge-inactive, .badge-cancelled, .badge-rejected { background: rgba(255,107,107,0.12); color: var(--danger); }
.badge-processing { background: rgba(116,185,255,0.12); color: var(--info); }
.badge-delivering { background: rgba(108,92,231,0.12); color: var(--accent); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border: none;
    border-radius: 8px; font-size: 0.82rem;
    font-weight: 500; cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(255,107,53,0.3); }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-success { background: rgba(0,184,148,0.15); color: var(--success); }
.btn-danger { background: rgba(255,107,107,0.15); color: var(--danger); }
.btn-sm { padding: 5px 10px; font-size: 0.75rem; border-radius: 6px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block; font-size: 0.8rem; font-weight: 500;
    margin-bottom: 6px; color: var(--text-muted);
}
.form-control {
    width: 100%; padding: 9px 14px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text);
    font-size: 0.85rem; font-family: 'Inter', sans-serif;
    transition: var(--transition);
}
.form-control:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}
select.form-control { cursor: pointer; }

/* ===== FILTERS ===== */
.filters-bar {
    display: flex; align-items: center;
    gap: 10px; flex-wrap: wrap;
}
.filters-bar .form-control { width: auto; min-width: 140px; }

/* ===== AVATAR ===== */
.avatar {
    width: 36px; height: 36px;
    border-radius: 8px; object-fit: cover;
}
.avatar-sm { width: 28px; height: 28px; border-radius: 6px; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell .user-info .name { font-weight: 500; font-size: 0.85rem; }
.user-cell .user-info .email { font-size: 0.72rem; color: var(--text-dim); }

/* ===== CHARTS placeholder ===== */
.chart-container {
    background: var(--bg-input); border-radius: 8px;
    padding: 20px; min-height: 250px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.chart-bar-group {
    display: flex; align-items: flex-end;
    gap: 8px; height: 200px; padding: 0 10px;
}
.chart-bar {
    width: 28px; border-radius: 4px 4px 0 0;
    transition: var(--transition); cursor: pointer;
    position: relative;
}
.chart-bar:hover { opacity: 0.8; transform: scaleY(1.02); transform-origin: bottom; }
.chart-bar.orange { background: linear-gradient(180deg, var(--primary), var(--primary-dark)); }
.chart-bar.green { background: linear-gradient(180deg, var(--secondary), #00B894); }
.chart-bar.blue { background: linear-gradient(180deg, var(--info), #4A90D9); }
.chart-bar.purple { background: linear-gradient(180deg, var(--accent), #5A4BD1); }

/* ===== GRID LAYOUTS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ===== PROGRESS ===== */
.progress-bar {
    height: 6px; background: var(--bg-input);
    border-radius: 3px; overflow: hidden;
}
.progress-fill {
    height: 100%; border-radius: 3px;
    transition: width 1s ease;
}
.progress-fill.orange { background: var(--primary); }
.progress-fill.green { background: var(--success); }
.progress-fill.blue { background: var(--info); }

/* ===== TABS ===== */
.tabs {
    display: flex; gap: 0; border-bottom: 1px solid var(--border);
    margin-bottom: 20px; overflow-x: auto;
}
.tab-btn {
    padding: 10px 18px; background: none; border: none;
    color: var(--text-muted); font-size: 0.85rem;
    font-weight: 500; cursor: pointer; white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000; display: none;
    align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%; max-width: 560px;
    max-height: 85vh; overflow-y: auto;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } }
.modal-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1rem; font-weight: 600; }
.modal-close {
    background: none; border: none;
    color: var(--text-muted); font-size: 1.1rem;
    cursor: pointer; padding: 4px;
}
.modal-body { padding: 20px; }
.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex; justify-content: flex-end; gap: 8px;
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed; top: 80px; right: 24px;
    z-index: 3000; display: flex;
    flex-direction: column; gap: 8px;
}
.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px; min-width: 280px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: var(--shadow);
    animation: toastIn 0.3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }
.toast i { font-size: 1rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.info i { color: var(--info); }
.toast .toast-msg { flex: 1; font-size: 0.82rem; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 14px 20px; flex-wrap: wrap; gap: 10px;
}
.pagination-info { font-size: 0.8rem; color: var(--text-dim); }
.pagination-btns { display: flex; gap: 4px; }
.page-btn {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: 1px solid var(--border);
    color: var(--text-muted); border-radius: 6px;
    font-size: 0.8rem; cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== ACTIVITY LIST ===== */
.activity-list { list-style: none; }
.activity-item {
    display: flex; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid rgba(45,59,78,0.4);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
    width: 34px; height: 34px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; flex-shrink: 0;
}
.activity-icon.order { background: rgba(255,107,53,0.12); color: var(--primary); }
.activity-icon.user { background: rgba(116,185,255,0.12); color: var(--info); }
.activity-icon.payment { background: rgba(0,184,148,0.12); color: var(--success); }
.activity-icon.alert { background: rgba(255,107,107,0.12); color: var(--danger); }
.activity-text { font-size: 0.82rem; line-height: 1.5; }
.activity-time { font-size: 0.7rem; color: var(--text-dim); margin-top: 2px; }

/* ===== TOP ITEMS ===== */
.top-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(45,59,78,0.4);
}
.top-item:last-child { border-bottom: none; }
.top-rank {
    width: 26px; height: 26px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700;
    background: var(--bg-input); color: var(--text-dim);
}
.top-rank.gold { background: rgba(253,203,110,0.15); color: var(--warning); }
.top-rank.silver { background: rgba(148,163,184,0.15); color: var(--text-muted); }
.top-rank.bronze { background: rgba(255,107,53,0.1); color: var(--primary-light); }
.top-info { flex: 1; }
.top-info .top-name { font-size: 0.85rem; font-weight: 500; }
.top-info .top-detail { font-size: 0.72rem; color: var(--text-dim); }
.top-value { font-size: 0.85rem; font-weight: 600; color: var(--primary); }

/* ===== MAP PLACEHOLDER ===== */
.map-placeholder {
    background: var(--bg-input);
    border-radius: 8px; min-height: 300px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim); font-size: 0.9rem;
    border: 1px dashed var(--border);
}

/* ===== DONUT CHART CSS ===== */
.donut-chart {
    width: 140px; height: 140px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
}
.donut-center {
    width: 80px; height: 80px; background: var(--bg-card);
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    flex-direction: column;
}
.donut-center .donut-value { font-size: 1.2rem; font-weight: 700; }
.donut-center .donut-label { font-size: 0.65rem; color: var(--text-dim); }
.donut-legend { margin-top: 14px; }
.donut-legend-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.78rem; padding: 3px 0;
}
.donut-legend-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.mobile-open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .main-header { left: 0; }
    .header-search input { width: 160px; }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.4s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0B1120 0%, #1A1A3E 50%, #0B1120 100%);
    padding: 20px;
}
.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    width: 100%; max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.login-card .logo-section {
    text-align: center; margin-bottom: 30px;
}
.login-card .logo-section .logo-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 14px; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff;
}
.login-card h1 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.login-card .subtitle { font-size: 0.82rem; color: var(--text-dim); }
.login-card .form-group { margin-bottom: 18px; }
.login-card .form-control { padding: 11px 14px; }
.login-card .btn-primary {
    width: 100%; padding: 11px; font-size: 0.9rem;
    font-weight: 600; justify-content: center;
}
.login-options {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 20px;
    font-size: 0.8rem;
}
.remember-me { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
.remember-me input { accent-color: var(--primary); }

/* ===== SETTINGS SPECIFIC ===== */
.settings-nav {
    list-style: none;
}
.settings-nav li {
    padding: 10px 16px;
    border-radius: 8px; cursor: pointer;
    font-size: 0.85rem; color: var(--text-muted);
    transition: var(--transition);
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 2px;
}
.settings-nav li:hover { background: rgba(255,107,53,0.06); color: var(--text); }
.settings-nav li.active { background: rgba(255,107,53,0.1); color: var(--primary); font-weight: 500; }
.settings-nav li i { width: 18px; text-align: center; }

/* ===== SWITCH TOGGLE ===== */
.switch {
    position: relative; display: inline-block;
    width: 40px; height: 22px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
    position: absolute; inset: 0;
    background: var(--border); border-radius: 22px;
    cursor: pointer; transition: var(--transition);
}
.switch .slider::before {
    content: ''; position: absolute;
    width: 16px; height: 16px;
    bottom: 3px; left: 3px;
    background: #fff; border-radius: 50%;
    transition: var(--transition);
}
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(18px); }

/* Empty state */
.empty-state {
    text-align: center; padding: 40px 20px;
    color: var(--text-dim);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.3; }
.empty-state p { font-size: 0.9rem; }

/* Tag/Chip */
.tag {
    display: inline-flex; align-items: center;
    padding: 3px 8px; border-radius: 4px;
    font-size: 0.7rem; font-weight: 500;
    background: rgba(255,107,53,0.1); color: var(--primary);
    margin: 1px 2px;
}
.tag.green { background: rgba(0,184,148,0.1); color: var(--success); }
.tag.blue { background: rgba(116,185,255,0.1); color: var(--info); }
.tag.purple { background: rgba(108,92,231,0.1); color: var(--accent); }

/* Notification dropdown */
.dropdown-menu {
    position: absolute; top: 100%; right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 300px;
    box-shadow: var(--shadow);
    display: none; z-index: 100;
    max-height: 360px; overflow-y: auto;
}
.dropdown-menu.show { display: block; }
.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem; font-weight: 600;
}
.dropdown-item {
    padding: 10px 16px; display: flex;
    gap: 10px; cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid rgba(45,59,78,0.3);
}
.dropdown-item:hover { background: rgba(255,107,53,0.05); }
.dropdown-item:last-child { border-bottom: none; }

/* ===== RIDER MAP SIMULATION ===== */
.rider-map {
    background: linear-gradient(145deg, #0F172A, #1A2332);
    border-radius: 8px; min-height: 350px;
    position: relative; overflow: hidden;
    border: 1px solid var(--border);
}
.rider-dot {
    position: absolute; width: 12px; height: 12px;
    border-radius: 50%; cursor: pointer;
    animation: pulse 2s infinite;
}
.rider-dot.active { background: var(--success); box-shadow: 0 0 8px var(--success); }
.rider-dot.busy { background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.rider-dot.offline { background: var(--text-dim); }
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ===== FINANCE SPECIFIC ===== */
.finance-summary {
    display: flex; gap: 16px; flex-wrap: wrap;
}
.finance-item {
    flex: 1; min-width: 150px;
    padding: 16px; background: var(--bg-input);
    border-radius: 8px; text-align: center;
}
.finance-item .label { font-size: 0.72rem; color: var(--text-dim); margin-bottom: 6px; }
.finance-item .value { font-size: 1.3rem; font-weight: 700; }
.finance-item .value.income { color: var(--success); }
.finance-item .value.expense { color: var(--danger); }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
    content: ''; position: absolute;
    left: 8px; top: 0; bottom: 0;
    width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item::before {
    content: ''; position: absolute;
    left: -20px; top: 4px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-card);
}
.timeline-item .timeline-time {
    font-size: 0.7rem; color: var(--text-dim);
    margin-bottom: 4px;
}
.timeline-item .timeline-text {
    font-size: 0.82rem;
}

/* Overlay for mobile */
.sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999; display: none;
}
.sidebar-overlay.show { display: block; }
