/* Committee Management System — Phase 1 foundation styles */
:root {
    --cms-primary: #1d4ed8;
    --cms-primary-dark: #1e3a8a;
    --cms-bg: #f4f5fb;
    --cms-sidebar: #0f172a;
}

body { background-color: var(--cms-bg); color: #1f2937; }

/* ---------- Brand ---------- */
.brand-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, var(--cms-primary), var(--cms-primary-dark));
    color: #fff; font-weight: 700; letter-spacing: 1px;
}
.brand-badge.sm { width: 34px; height: 34px; border-radius: 9px; font-size: .8rem; }

/* ---------- Guest (login / setup / errors) ---------- */
.guest-wrap {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 24px;
}
.guest-card {
    width: 100%; max-width: 400px; background: #fff;
    border: 1px solid #e5e7eb; border-radius: 16px;
    padding: 32px 28px; box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
.guest-foot { color: #94a3b8; font-size: .8rem; }

/* ---------- Authenticated shell ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 240px; flex-shrink: 0; background: var(--cms-sidebar);
    color: #cbd5e1; padding: 18px 14px;
}
.sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    color: #fff; font-weight: 600; padding: 6px 8px 18px;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav .nav-link { color: #cbd5e1; border-radius: 8px; padding: 9px 12px; font-size: .94rem; }
.sidebar-nav .nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar-nav .nav-link.active { background: var(--cms-primary); color: #fff; }
.sidebar-nav .nav-link.disabled { color: #64748b; cursor: not-allowed; }

.content-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; border-bottom: 1px solid #e5e7eb; padding: 12px 22px;
}
.topbar-title { font-weight: 600; }
.topbar-user { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.topbar-user .user-name { font-weight: 600; }
.main { padding: 22px; }

/* ---------- Stat cards ---------- */
.stat-card { border: 1px solid #e5e7eb; border-radius: 14px; }
.stat-label { color: #6b7280; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 1.35rem; font-weight: 700; margin-top: 2px; }

@media (max-width: 768px) {
    .sidebar { width: 64px; }
    .sidebar .brand-text, .sidebar-nav .nav-link span { display: none; }
}
