:root {
    --navy: #0b1c30;
    --navy-mid: #152640;
    --navy-card: #1c3355;
    --teal: #006a61;
    --teal-light: #89f5e7;
    --teal-dim: #6bd8cb;
    --teal-bg: #e1f5f2;
    --surface: #f8f9ff;
    --surface-high: #dce9ff;
    --surface-mid: #e5eeff;
    --white: #ffffff;
    --error: #ba1a1a;
    --err-bg: #ffdad6;
    --amber: #b45309;
    --amber-bg: #fef3c7;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --outline: #c6c6cd;
    --on-surface: #0b1c30;
    --muted: #45464d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--surface);
    color: var(--on-surface);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--navy);
    letter-spacing: -0.02em;
}

/* Components */
.pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pill-teal {
    background: var(--teal-bg);
    color: var(--teal);
}

.pill-error {
    background: var(--err-bg);
    color: var(--error);
}

.card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
}

.btn-primary:hover {
    background: #005a52;
}

.btn-outline {
    background: transparent;
    color: var(--teal-light);
    border: 1px solid rgba(137,245,231, 0.4);
}

.btn-outline:hover {
    background: rgba(137,245,231, 0.1);
}

/* Navbar */
.nav-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--navy-card);
}

.nav-container {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Hero Slideshow */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 0.4; /* Dimming for readability */
}

.hero-content {
    position: relative;
    z-index: 2;
}

@keyframes slideShow {
    0% { opacity: 0; }
    10% { opacity: 0.4; }
    30% { opacity: 0.4; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

/* Logo */
.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.nav-link.active {
    background: var(--teal);
    color: white;
}

/* Pulse Dot */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a3a5c 100%);
    padding: 80px 0;
    color: white;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero h1 {
    color: white;
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    color: #94a3b8;
    font-size: 18px;
    margin-bottom: 32px;
}

/* Stats */
.stats-bar {
    background: var(--teal);
    padding: 32px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-num {
    font-size: 36px;
    font-weight: 900;
    color: white;
}

.stat-label {
    font-size: 13px;
    color: var(--teal-light);
    font-weight: 600;
}

/* Admin Dashboard */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: white;
    border-right: 1px solid var(--slate-200);
    padding: 24px 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-right: 3px solid transparent;
}

.sidebar-item.active {
    background: var(--teal-bg);
    color: var(--teal);
    border-right-color: var(--teal);
}

.main-content {
    background: var(--slate-100);
    padding: 32px;
}

/* Login Page */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
}

.login-card {
    width: 400px;
    padding: 40px;
    background: white;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--navy);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-bg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-layout {
        display: flex;
        flex-direction: column;
    }
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--slate-200);
        padding: 16px;
    }
    .sidebar nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .sidebar-item {
        padding: 8px 12px;
        border-right: none;
        border-radius: 8px;
        font-size: 13px;
    }
    .sidebar-item.active {
        border-right: none;
    }
    .sidebar-item[style*="margin-top"] {
        margin-top: 0 !important;
    }
    .main-content {
        padding: 16px;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }
    .kpi-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .settings-grid {
        grid-template-columns: 1fr !important;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .login-card {
        width: 90%;
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .kpi-grid {
        grid-template-columns: 1fr !important;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
