/* ══════════════════════════════════════════════════════════
   THALAGARA — Design System
   Premium Dark Theme with Glassmorphism
   ══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
    --bg-body: #0a0e1a;
    --bg-primary: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-hover: #263248;
    --bg-glass: rgba(30, 41, 59, 0.65);
    --bg-glass-strong: rgba(30, 41, 59, 0.85);
    --bg-sidebar: #0c1222;
    --bg-input: #162032;

    --accent-blue: #3b82f6;
    --accent-blue-soft: rgba(59, 130, 246, 0.15);
    --accent-emerald: #10b981;
    --accent-emerald-soft: rgba(16, 185, 129, 0.15);
    --accent-amber: #f59e0b;
    --accent-amber-soft: rgba(245, 158, 11, 0.15);
    --accent-rose: #f43f5e;
    --accent-rose-soft: rgba(244, 63, 94, 0.15);
    --accent-violet: #8b5cf6;
    --accent-violet-soft: rgba(139, 92, 246, 0.15);
    --accent-cyan: #06b6d4;
    --accent-cyan-soft: rgba(6, 182, 212, 0.15);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dark: #1e293b;

    --border-subtle: rgba(148, 163, 184, 0.08);
    --border-medium: rgba(148, 163, 184, 0.15);
    --border-accent: rgba(59, 130, 246, 0.3);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow-blue: 0 0 25px rgba(59, 130, 246, 0.2);
    --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.2);
    --shadow-glow-rose: 0 0 25px rgba(244, 63, 94, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --topbar-height: 65px;
}

/* ── Base Reset ────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: #60a5fa;
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════ */

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ───────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
    min-height: var(--topbar-height);
}

.sidebar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.sidebar-brand .brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-menu {
    padding: 16px 12px;
    flex: 1;
}

.sidebar-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 12px 12px 8px;
    margin-top: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.88rem;
    font-weight: 500;
    position: relative;
    margin-bottom: 2px;
}

.sidebar-link i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-link:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
    transform: translateX(3px);
}

.sidebar-link.active {
    background: var(--accent-blue-soft);
    color: var(--accent-blue);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent-blue);
    border-radius: 0 3px 3px 0;
}

/* ── Main Content ──────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Topbar ────────────────────────────────────────────── */
.topbar {
    height: var(--topbar-height);
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-search {
    position: relative;
}

.topbar-search input {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 8px 16px 8px 38px;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 240px;
    transition: var(--transition);
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--accent-blue);
    width: 300px;
    box-shadow: var(--shadow-glow-blue);
}

.topbar-search i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.topbar-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.topbar-btn:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.topbar-user:hover {
    background: var(--bg-surface);
}

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.topbar-user-info {
    font-size: 0.82rem;
    line-height: 1.3;
}

.topbar-user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.topbar-user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ── Page Content ──────────────────────────────────────── */
.page-content {
    padding: 28px;
    flex: 1;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ══════════════════════════════════════════════════════════
   COMPONENTS
   ══════════════════════════════════════════════════════════ */

/* ── Glass Card ────────────────────────────────────────── */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-medium);
}

.card-header-custom {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header-custom h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body-custom {
    padding: 22px;
}

/* ── Stat Cards ────────────────────────────────────────── */
.stat-card {
    border-radius: var(--radius-lg);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: default;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

.stat-card .stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.85;
    margin-bottom: 6px;
}

.stat-card .stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-card .stat-trend {
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Stat Card Variants */
.stat-card.gradient-blue {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
}

.stat-card.gradient-emerald {
    background: linear-gradient(135deg, #065f46, #10b981);
    color: #fff;
}

.stat-card.gradient-rose {
    background: linear-gradient(135deg, #9f1239, #f43f5e);
    color: #fff;
}

.stat-card.gradient-amber {
    background: linear-gradient(135deg, #92400e, #f59e0b);
    color: #fff;
}

.stat-card.gradient-violet {
    background: linear-gradient(135deg, #5b21b6, #8b5cf6);
    color: #fff;
}

.stat-card.gradient-cyan {
    background: linear-gradient(135deg, #155e75, #06b6d4);
    color: #fff;
}

/* Outline stat cards */
.stat-card.outline-blue {
    background: var(--accent-blue-soft);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
}
.stat-card.outline-blue .stat-icon { color: var(--accent-blue); background: var(--accent-blue-soft); }
.stat-card.outline-blue .stat-value { color: var(--accent-blue); }

.stat-card.outline-emerald {
    background: var(--accent-emerald-soft);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--text-primary);
}
.stat-card.outline-emerald .stat-icon { color: var(--accent-emerald); background: var(--accent-emerald-soft); }
.stat-card.outline-emerald .stat-value { color: var(--accent-emerald); }

.stat-card.outline-rose {
    background: var(--accent-rose-soft);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--text-primary);
}
.stat-card.outline-rose .stat-icon { color: var(--accent-rose); background: var(--accent-rose-soft); }
.stat-card.outline-rose .stat-value { color: var(--accent-rose); }

.stat-card.outline-amber {
    background: var(--accent-amber-soft);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--text-primary);
}
.stat-card.outline-amber .stat-icon { color: var(--accent-amber); background: var(--accent-amber-soft); }
.stat-card.outline-amber .stat-value { color: var(--accent-amber); }

/* ── Data Tables ───────────────────────────────────────── */
.table-dark-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-dark-custom thead th {
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.table-dark-custom tbody td {
    padding: 12px 16px;
    font-size: 0.87rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.table-dark-custom tbody tr {
    transition: var(--transition-fast);
}

.table-dark-custom tbody tr:hover {
    background: var(--bg-surface-hover);
}

.table-dark-custom tbody tr:last-child td {
    border-bottom: none;
}

/* ── Badges ────────────────────────────────────────────── */
.badge-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-completed { background: var(--accent-emerald-soft); color: var(--accent-emerald); }
.badge-draft { background: var(--accent-amber-soft); color: var(--accent-amber); }
.badge-active { background: var(--accent-blue-soft); color: var(--accent-blue); }
.badge-inactive { background: rgba(100, 116, 139, 0.15); color: var(--text-muted); }

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary-custom {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.87rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-blue);
    color: #fff;
}

.btn-success-custom {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.87rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-success-custom:hover {
    background: linear-gradient(135deg, #047857, #059669);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-emerald);
    color: #fff;
}

.btn-danger-custom {
    background: linear-gradient(135deg, #dc2626, #f43f5e);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.87rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger-custom:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-rose);
    color: #fff;
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.87rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-custom:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.btn-sm-custom {
    padding: 6px 14px;
    font-size: 0.8rem;
}

/* ── Forms ─────────────────────────────────────────────── */
.form-control, .form-select {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    transition: var(--transition) !important;
    font-size: 0.88rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 3px var(--accent-blue-soft) !important;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
}

.form-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.form-check-input {
    background-color: var(--bg-input) !important;
    border-color: var(--border-medium) !important;
}

.form-check-input:checked {
    background-color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
}

/* ── Alerts / Toasts ───────────────────────────────────── */
.alert-custom {
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

.alert-custom.alert-success-custom {
    border-left: 3px solid var(--accent-emerald);
    color: var(--accent-emerald);
}

.alert-custom.alert-error-custom {
    border-left: 3px solid var(--accent-rose);
    color: var(--accent-rose);
}

.alert-custom.alert-warning-custom {
    border-left: 3px solid var(--accent-amber);
    color: var(--accent-amber);
}

/* ── Leaderboard ───────────────────────────────────────── */
.leaderboard-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
    transition: var(--transition);
    cursor: pointer;
}

.leaderboard-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-blue);
}

.leaderboard-rank {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
}

.leaderboard-rank.gold { color: #fbbf24; }
.leaderboard-rank.silver { color: #94a3b8; }
.leaderboard-rank.bronze { color: #d97706; }

.star-rating {
    color: #fbbf24;
    font-size: 0.9rem;
}

.star-empty {
    color: var(--text-muted);
}

/* ── Progress Bar ──────────────────────────────────────── */
.progress-custom {
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-custom {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-blue { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.progress-bar-emerald { background: linear-gradient(90deg, #059669, #10b981); }
.progress-bar-amber { background: linear-gradient(90deg, #d97706, #f59e0b); }
.progress-bar-rose { background: linear-gradient(90deg, #dc2626, #f43f5e); }
.progress-bar-violet { background: linear-gradient(90deg, #7c3aed, #8b5cf6); }

/* ── Pagination ────────────────────────────────────────── */
.pagination-custom .page-item .page-link {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    margin: 0 3px;
    padding: 8px 14px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.pagination-custom .page-item .page-link:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.pagination-custom .page-item.active .page-link {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

/* ── Empty State ───────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: block;
}

.empty-state h5 {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════ */

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.2); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.animate-fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.animate-fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.animate-fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.animate-fade-in-up:nth-child(4) { animation-delay: 0.2s; }
.animate-fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.animate-fade-in-up:nth-child(6) { animation-delay: 0.3s; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .topbar-search input {
        width: 160px;
    }

    .topbar-search input:focus {
        width: 200px;
    }
}

@media (max-width: 575.98px) {
    .page-content {
        padding: 16px;
    }

    .stat-card .stat-value {
        font-size: 1.4rem;
    }

    .topbar-search {
        display: none;
    }

    .topbar-user-info {
        display: none;
    }
}

/* ── Print Styles ──────────────────────────────────────── */
@media print {
    .sidebar, .topbar, .no-print {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
    }

    body {
        background: #fff;
        color: #000;
    }

    .glass-card {
        background: #fff;
        border: 1px solid #ddd;
    }

    .table-dark-custom thead th {
        background: #f5f5f5;
        color: #333;
    }

    .table-dark-custom tbody td {
        color: #333;
        border-color: #ddd;
    }
}

/* ── Login Page ────────────────────────────────────────── */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.login-card {
    width: 420px;
    max-width: 90%;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
}

.login-logo {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo .brand-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 14px;
}

.login-logo h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ── Trip Slip Form ────────────────────────────────────── */
.trip-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.trip-table {
    min-width: 1100px;
}

.trip-table th {
    background: var(--bg-primary) !important;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 8px;
    white-space: nowrap;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.trip-table td {
    padding: 6px 4px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-subtle);
}

.trip-table .form-control, .trip-table .form-select {
    font-size: 0.82rem !important;
    padding: 4px 8px !important;
    min-width: 70px;
}

.trip-table .form-select {
    min-width: 120px;
}

.trip-row-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.85rem;
}

.trip-delete-btn {
    color: var(--accent-rose);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.trip-delete-btn:hover {
    background: var(--accent-rose-soft);
}

.trip-totals {
    background: var(--bg-primary);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.trip-totals td {
    color: var(--accent-blue) !important;
    font-size: 0.9rem;
    padding: 12px 8px;
}

/* ── Filter Bar ────────────────────────────────────────── */
.filter-bar {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-bar .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-bar .form-group label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.filter-bar .form-control,
.filter-bar .form-select {
    font-size: 0.82rem !important;
    padding: 7px 12px !important;
}
