:root {
    --primary: #2563eb;
    --primary-dark: #1741b8;
    --accent: #0d9488;
    --bg: #f4f6fb;
    --surface: #ffffff;
    --border: #e6e9f0;
    --text: #1f2533;
    --text-muted: #6b7280;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .06);
    --shadow-hover: 0 4px 14px rgba(16, 24, 40, .10);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Navbar */
.site-navbar {
    background: linear-gradient(120deg, var(--primary), var(--primary-dark));
    box-shadow: 0 2px 10px rgba(23, 65, 184, .18);
    padding-top: .65rem;
    padding-bottom: .65rem;
}

.site-navbar .navbar-brand {
    font-size: 1.2rem;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .18);
    font-size: 1rem;
}

.site-navbar .nav-link {
    font-weight: 500;
    opacity: .92;
    border-radius: var(--radius-sm);
    padding: .4rem .75rem !important;
    transition: background-color .15s ease;
}

.site-navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, .12);
    opacity: 1;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: .3rem .8rem;
    font-size: .85rem;
    font-weight: 500;
}

/* Cards */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Stat cards */
.stat-card {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    transition: box-shadow .15s ease, transform .15s ease;
}

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

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: rgba(37, 99, 235, .1);
    color: var(--primary);
}

.stat-icon.accent { background: rgba(13, 148, 136, .12); color: var(--accent); }
.stat-icon.warn { background: rgba(217, 119, 6, .12); color: #b45309; }
.stat-icon.danger { background: rgba(220, 38, 38, .1); color: #b91c1c; }

.stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Tables */
table.table thead {
    background-color: #f0f3f9;
}

table.table thead th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: none;
}

table.table tbody tr:hover {
    background-color: #f8fafc;
}

/* Badges */
.badge {
    border-radius: 999px;
    font-weight: 600;
    padding: .4em .7em;
}

/* Auth pages */
.auth-card {
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow-hover);
}

.password-toggle {
    border-color: #ced4da;
    color: var(--text-muted);
}

.password-toggle:hover {
    color: var(--text);
}

/* Landing hero */
.hero-panel {
    background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(13,148,136,.06));
    border: 1px solid var(--border);
}

@media print {
    nav, footer, .no-print {
        display: none !important;
    }
}
