:root {
    --color-primary:       #0b57d0;
    --color-primary-dark:  #0842a0;
    --color-primary-light: #d3e3fd;
    --color-success:       #1a7336;
    --color-warning:       #b06000;
    --color-danger:        #b3261e;
    --color-bg:            #f0f4ff;
    --color-card:          #ffffff;
    --color-border:        #dde3ea;
    --color-text:          #1a1c1e;
    --color-text-2:        #44474f;
    --color-muted:         #74777f;
    --shadow-card:  0 1px 4px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.05);
    --shadow-hover: 0 6px 20px rgba(11,87,208,0.12), 0 0 0 1px rgba(0,0,0,0.05);
    --radius:    16px;
    --radius-sm: 10px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0; padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
}

/* ── Navigation ─────────────────────────────────────────── */

.nav-bar {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, #1a73e8 100%);
    display: flex;
    padding: 0 20px;
    gap: 2px;
    box-shadow: 0 2px 16px rgba(11,87,208,0.30);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-link {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    padding: 14px 14px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.01em;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link.active { color: white; border-bottom-color: rgba(255,255,255,0.85); }

.nav-logout {
    margin-left: auto;
    margin-bottom: 0;
    align-self: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 8px;
    color: rgba(255,255,255,0.80);
    padding: 6px 13px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    font-family: inherit;
    width: auto;
    min-height: auto;
}

.nav-logout:hover { background: rgba(255,255,255,0.22); color: white; }

@media (max-width: 640px) {
    .nav-link:not(.active) .nav-label,
    .nav-logout .nav-label { display: none; }
    .nav-link { padding: 12px 10px; }
    .nav-logout { padding: 6px 10px; }
}

/* ── Icons ──────────────────────────────────────────────── */

.material-symbols-rounded {
    font-size: 20px;
    vertical-align: -4px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.nav-link.active .material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

/* ── Common components ──────────────────────────────────── */

.card {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
}

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 15px;
    color: var(--color-muted);
}

.error-message {
    color: var(--color-danger);
    text-align: center;
    padding: 14px;
    background: #fce8e6;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-weight: 600;
    border: 1px solid #f5c2c0;
    font-size: 14px;
}
