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

:root {
    --bg-dark: #060911;
    --bg-darker: #040610;
    --bg-sidebar: #0a0e1a;
    --bg-card: rgba(13, 17, 28, 0.75);
    --bg-card-hover: rgba(18, 24, 38, 0.9);
    --bg-glass: rgba(13, 17, 23, 0.6);
    
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.4);
    --accent-gold: #f59e0b;
    --accent-gold-glow: rgba(245, 158, 11, 0.3);
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.3);
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.3);
    --accent-rose: #f43f5e;
    --accent-rose-glow: rgba(244, 63, 94, 0.3);
    --accent-blue: #3b82f6;
    
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border: rgba(240, 246, 252, 0.06);
    --border-hover: rgba(240, 246, 252, 0.12);
    --border-glow: rgba(16, 185, 129, 0.15);
    
    --sidebar-width: 260px;
    --glass-blur: 24px;
}

/* --- RESET & BASE --- */
* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(16, 185, 129, 0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(16, 185, 129, 0.3); }

/* --- KEYFRAME ANIMATIONS --- */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px var(--accent-emerald-glow); }
    50% { box-shadow: 0 0 25px var(--accent-emerald-glow), 0 0 50px rgba(16, 185, 129, 0.15); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

@keyframes scan {
    0% { top: 10%; }
    100% { top: 90%; }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes border-pulse {
    0%, 100% { border-color: rgba(16, 185, 129, 0.2); }
    50% { border-color: rgba(16, 185, 129, 0.5); }
}

@keyframes glow-ring {
    0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.6), 0 0 80px rgba(16, 185, 129, 0.2); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

@keyframes ripple {
    to { transform: scale(2.5); opacity: 0; }
}

@keyframes breathe {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes number-pop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* --- APP LAYOUT --- */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: var(--bg-dark);
    position: relative;
}

/* Ambient gradient background */
.app-container::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: breathe 8s ease-in-out infinite;
}

.app-container::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: breathe 10s ease-in-out infinite 2s;
}

/* --- SIDEBAR --- */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 0;
    z-index: 20;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.sidebar-logo {
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-emerald), #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 0 20px var(--accent-emerald-glow);
    animation: pulse-glow 3s ease-in-out infinite;
}

.sidebar-logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sidebar-logo .logo-title {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-logo .logo-sub {
    font-size: 0.65rem;
    color: var(--accent-emerald);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-group-title {
    padding: 1.25rem 1.25rem 0.5rem;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 0.75rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.84rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-links a i {
    width: 20px;
    text-align: center;
    font-size: 0.88rem;
    transition: transform 0.2s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.nav-links a:hover i {
    transform: scale(1.1);
}

.nav-links a.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: var(--accent-emerald);
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.nav-links a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent-emerald);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px var(--accent-emerald-glow);
}

/* Sidebar Profile */
.sidebar-profile {
    margin: auto 0.75rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.sidebar-profile:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.profile-info { line-height: 1.2; min-width: 0; }
.profile-name { font-weight: 600; font-size: 0.82rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-role { font-size: 0.68rem; color: var(--text-muted); font-weight: 500; }

/* --- MAIN CONTENT --- */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-dark);
    z-index: 1;
}

/* --- TOPBAR --- */
.topbar {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 15;
    border-bottom: 1px solid var(--border);
    background: rgba(6, 9, 17, 0.85);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.topbar-left h1 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.topbar-left p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-clock {
    font-family: 'Inter', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.12);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    letter-spacing: 1px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.45rem 0.9rem;
    min-width: 200px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar:focus-within {
    border-color: var(--accent-emerald);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
    min-width: 260px;
}

.search-bar i { color: var(--text-muted); font-size: 0.82rem; }

.search-bar input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.8rem;
    width: 100%;
    font-family: inherit;
}

.search-bar input::placeholder { color: var(--text-muted); }

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.65rem 0.35rem 0.35rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.topbar-user:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
}

.topbar-user .avatar { width: 30px; height: 30px; font-size: 0.68rem; }

.topbar-user-info { line-height: 1.2; }
.topbar-user-name { font-size: 0.76rem; font-weight: 600; color: var(--text-primary); }
.topbar-user-role { font-size: 0.6rem; color: var(--text-muted); }

/* --- PAGE CONTENT --- */
.page-content {
    padding: 1.25rem 2rem 2rem;
    position: relative;
    z-index: 5;
    flex: 1;
}

/* --- STAT CARDS --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUpFade 0.5s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent, rgba(255,255,255,0.02));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    background: var(--bg-card-hover);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: transform 0.3s;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-icon.emerald { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }
.stat-icon.gold { background: rgba(245, 158, 11, 0.12); color: var(--accent-gold); }
.stat-icon.cyan { background: rgba(6, 182, 212, 0.12); color: var(--accent-cyan); }
.stat-icon.purple { background: rgba(139, 92, 246, 0.12); color: var(--accent-purple); }
.stat-icon.rose { background: rgba(244, 63, 94, 0.12); color: var(--accent-rose); }

.stat-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0.4rem;
    animation: number-pop 0.6s ease-out;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.stat-trend .trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.66rem;
}

.stat-trend .trend-badge.up { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }
.stat-trend .trend-badge.down { background: rgba(244, 63, 94, 0.12); color: var(--accent-rose); }
.stat-trend .trend-badge.neutral { background: rgba(245, 158, 11, 0.12); color: var(--accent-gold); }

/* Mini Sparkline inside stat card */
.stat-sparkline {
    margin-top: 0.5rem;
    height: 28px;
    position: relative;
}

.stat-sparkline canvas {
    width: 100% !important;
    height: 28px !important;
}

/* --- NEW STAT CARD VARIANTS (Admin Dashboard v2) --- */
.stat-card-emerald, .stat-card-cyan, .stat-card-rose, .stat-card-gold {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
}

.stat-card-emerald { border-left: 3px solid var(--accent-emerald); }
.stat-card-cyan { border-left: 3px solid var(--accent-cyan); }
.stat-card-rose { border-left: 3px solid var(--accent-rose); }
.stat-card-gold { border-left: 3px solid var(--accent-gold); }

.stat-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: transform 0.3s;
}
.stat-card:hover .stat-icon-wrap { transform: scale(1.1); }

.stat-card-emerald .stat-icon-wrap { background: rgba(16, 185, 129, 0.1); color: var(--accent-emerald); }
.stat-card-cyan .stat-icon-wrap { background: rgba(6, 182, 212, 0.1); color: var(--accent-cyan); }
.stat-card-rose .stat-icon-wrap { background: rgba(244, 63, 94, 0.1); color: var(--accent-rose); }
.stat-card-gold .stat-icon-wrap { background: rgba(245, 158, 11, 0.1); color: var(--accent-gold); }

.stat-content { flex: 1; min-width: 0; }

.stat-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.stat-number {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    animation: number-pop 0.6s ease-out;
}

.stat-badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.stat-badge.positive { background: rgba(16, 185, 129, 0.1); color: var(--accent-emerald); }
.stat-badge.negative { background: rgba(244, 63, 94, 0.1); color: var(--accent-rose); }
.stat-badge.neutral { background: rgba(245, 158, 11, 0.1); color: var(--accent-gold); }

/* Table wrapper for responsive */
.table-wrap {
    overflow-x: auto;
}

.status-badge.offline { background: rgba(244, 63, 94, 0.12); color: var(--accent-rose); border: 1px solid rgba(244, 63, 94, 0.2); }

/* --- DASHBOARD GRID --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.dashboard-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

/* --- GLASS CARD --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    animation: slideUpFade 0.6s ease-out backwards;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent, rgba(255,255,255,0.02));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

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

.glass-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--border);
}

.glass-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.glass-card-body { padding: 1.15rem; }

/* --- LIVE INDICATOR --- */
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald-glow);
    animation: pulse-glow 2s ease-in-out infinite;
    display: inline-block;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.online { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.2); }
.status-badge.active { background: rgba(6, 182, 212, 0.12); color: var(--accent-cyan); border: 1px solid rgba(6, 182, 212, 0.2); }
.status-badge.healthy { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.2); }
.status-badge.checked-in { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }
.status-badge.late { background: rgba(245, 158, 11, 0.12); color: var(--accent-gold); }
.status-badge.absent { background: rgba(244, 63, 94, 0.12); color: var(--accent-rose); }
.status-badge.leave { background: rgba(139, 92, 246, 0.12); color: var(--accent-purple); }

/* --- TABLE --- */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

table thead th {
    text-align: left;
    padding: 0.65rem 1rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.01);
}

table tbody td {
    padding: 0.55rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    vertical-align: middle;
}

table tbody tr {
    transition: background 0.2s;
}

table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

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

.feed-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.btn-sm:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 255, 255, 0.05);
}

.btn-sm:active {
    transform: translateY(0);
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    animation: toast-in 0.4s ease-out;
    backdrop-filter: blur(20px);
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.toast.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.toast.error {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fb7185;
}

.toast.info {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #22d3ee;
}

.toast.removing {
    animation: toast-out 0.3s ease-in forwards;
}

/* --- FACE RECOGNITION TERMINAL --- */
.face-terminal { position: relative; }

.face-terminal .cam-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(16, 185, 129, 0.15);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.face-terminal .cam-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.face-terminal .cam-status {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--accent-emerald);
}

.face-terminal .scan-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.face-terminal .scan-ring {
    width: 130px;
    height: 130px;
    border: 2px dashed rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    animation: glow-ring 3s ease-in-out infinite;
}

.face-terminal .recognition-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.face-terminal .recognition-info .rec-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: #fff;
    flex-shrink: 0;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.face-terminal .recognition-info .rec-details { line-height: 1.3; min-width: 0; }
.face-terminal .recognition-info .rec-name { font-weight: 700; font-size: 0.82rem; color: var(--text-primary); }
.face-terminal .recognition-info .rec-id { font-size: 0.68rem; color: var(--text-muted); font-family: monospace; }
.face-terminal .recognition-info .rec-status { font-size: 0.68rem; color: var(--accent-emerald); font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* --- LIVE FEED --- */
.live-feed-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 400px;
    overflow-y: auto;
}

.feed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.4rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.25s;
    animation: slideInLeft 0.4s ease-out backwards;
    border-radius: 8px;
}

.feed-item:last-child { border-bottom: none; }

.feed-item:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: translateX(2px);
}

.feed-item-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

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

.feed-name { font-weight: 600; font-size: 0.8rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-id { font-size: 0.66rem; color: var(--text-muted); font-family: monospace; }

.feed-item-right {
    text-align: right;
    flex-shrink: 0;
}

.feed-time { font-size: 0.76rem; color: var(--text-secondary); font-weight: 600; font-family: monospace; }
.feed-method { font-size: 0.6rem; color: var(--text-muted); display: flex; align-items: center; gap: 3px; justify-content: flex-end; }

/* --- TABLES --- */
.table-panel {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    animation: slideUpFade 0.7s ease-out backwards;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--border);
}

.table-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

table { width: 100%; border-collapse: collapse; }

thead th {
    text-align: left;
    padding: 0.65rem 1rem;
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
}

tbody td {
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

tbody tr {
    transition: all 0.2s;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

tbody tr:last-child td { border-bottom: none; }

/* --- SYSTEM STATUS --- */
.system-status-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.system-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.25s;
}

.system-status-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
    transform: translateX(2px);
}

.system-status-item .status-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.system-status-item .status-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.system-status-item .status-icon.camera { background: rgba(6, 182, 212, 0.1); color: var(--accent-cyan); }
.system-status-item .status-icon.ai { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }
.system-status-item .status-icon.db { background: rgba(16, 185, 129, 0.1); color: var(--accent-emerald); }

.system-status-item .status-name { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.system-status-item .status-detail { font-size: 0.66rem; color: var(--text-muted); }

/* --- QUICK ACTIONS --- */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-secondary);
    font-family: inherit;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-emerald);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.quick-action-btn i {
    font-size: 1.3rem;
    color: var(--accent-emerald);
}

.quick-action-btn span {
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
}

/* --- ANTI-SPOOF INDICATOR --- */
.spoof-panel {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.4rem;
    padding: 0.65rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    margin-top: 0.65rem;
}

.spoof-check {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0.4rem 0.2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.spoof-check.pass { border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.05); }
.spoof-check.fail { border-color: rgba(244, 63, 94, 0.3); background: rgba(244, 63, 94, 0.05); }

.spoof-check .check-icon { font-size: 0.9rem; }
.spoof-check .check-label { font-size: 0.5rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; text-align: center; }

/* --- FORM BASICS --- */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -15%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    animation: breathe 8s ease-in-out infinite;
}

.auth-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -15%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
    animation: breathe 10s ease-in-out infinite 3s;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 20px;
    width: 420px;
    z-index: 10;
    animation: slideUpFade 0.5s ease-out;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), transparent, rgba(6, 182, 212, 0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.84rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-emerald);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-emerald), #059669);
    color: #fff;
    font-weight: 700;
    padding: 0.75rem;
    width: 100%;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* --- FILTER BAR --- */
.filter-bar {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

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

.filter-group input,
.filter-group select {
    padding: 0.45rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.78rem;
    transition: all 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--accent-emerald);
}

.filter-group select option {
    background: #0d1117;
}

.btn-filter {
    padding: 0.45rem 1rem;
    background: var(--accent-emerald);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.76rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-filter:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
}

.pagination a,
.pagination span {
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.pagination a:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-emerald);
    color: var(--text-primary);
}

.pagination .active {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
}

.pagination .disabled {
    color: var(--text-muted);
    opacity: 0.4;
    pointer-events: none;
}

/* --- CALENDAR HEATMAP --- */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-header {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    padding: 4px 0;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: default;
    border: 1px solid transparent;
}

.calendar-day.empty { background: transparent; }
.calendar-day.no-data { background: rgba(255, 255, 255, 0.02); color: var(--text-muted); }
.calendar-day.present { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); border-color: rgba(16, 185, 129, 0.15); }
.calendar-day.late { background: rgba(245, 158, 11, 0.2); color: var(--accent-gold); border-color: rgba(245, 158, 11, 0.15); }
.calendar-day.absent { background: rgba(244, 63, 94, 0.2); color: var(--accent-rose); border-color: rgba(244, 63, 94, 0.15); }
.calendar-day.leave { background: rgba(139, 92, 246, 0.2); color: var(--accent-purple); border-color: rgba(139, 92, 246, 0.15); }
.calendar-day.today { border-color: var(--accent-emerald); box-shadow: 0 0 8px rgba(16, 185, 129, 0.2); }

.calendar-day:hover:not(.empty) {
    transform: scale(1.1);
}

/* --- TODAY STATUS CARD --- */
.today-status-card {
    padding: 1.25rem;
    border-radius: 14px;
    text-align: center;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.today-status-card.checked-in {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.03));
    border-color: rgba(16, 185, 129, 0.2);
}

.today-status-card.not-checked {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.03));
    border-color: rgba(245, 158, 11, 0.2);
}

.today-status-card.late-check {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.1), rgba(244, 63, 94, 0.03));
    border-color: rgba(244, 63, 94, 0.2);
}

/* --- SETTINGS --- */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.settings-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
}

.settings-section h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
}

.setting-row:last-child { border-bottom: none; }

.setting-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.setting-label small {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.setting-input {
    padding: 0.4rem 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.82rem;
    width: 120px;
    text-align: center;
}

.setting-input:focus {
    outline: none;
    border-color: var(--accent-emerald);
}

/* --- LANDING PAGE --- */
.landing-wrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    background: var(--bg-dark);
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    border-bottom: 1px solid var(--border);
}

.landing-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.landing-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.landing-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.84rem;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.landing-link:hover { color: var(--text-primary); }

.landing-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-badge {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-emerald);
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.15);
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -2px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; }

.btn-glow {
    background: linear-gradient(135deg, var(--accent-emerald), #059669);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 0 0 25px var(--accent-emerald-glow);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    cursor: pointer;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* --- FEATURES GRID (Landing) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 4rem 3rem;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card .feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.feature-card h3 { font-size: 0.92rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.3rem; }
.feature-card p { font-size: 0.76rem; color: var(--text-muted); line-height: 1.6; }

/* --- MOBILE TOGGLE --- */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 1400px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-grid-3 { grid-template-columns: 1fr 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .sidebar { width: 220px; min-width: 220px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar { 
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 100;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    .sidebar.open { display: flex; }
    .mobile-toggle { display: block; }
    .stats-grid { grid-template-columns: 1fr; }
    .landing-nav { padding: 1rem 1.5rem; }
    .hero-title { font-size: 2.2rem; }
    .features-grid { grid-template-columns: 1fr; padding: 0 1.5rem 2rem; }
    .page-content { padding: 1rem; }
    .topbar { padding: 0.85rem 1rem; }
    .quick-actions { grid-template-columns: 1fr 1fr; }
    .filter-bar { flex-direction: column; }
    .spoof-panel { grid-template-columns: repeat(3, 1fr); }
}
