:root {
    --navy: #102a43;
    --navy-2: #0b1f33;
    --gold: #d69e2e;
    --bg: #f3f5f8;
    --text: #1a2332;
    --muted: #6b778c;
    --sidebar-w: 260px;
}
* { box-sizing: border-box; }
body.admin-body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #e8eef6;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}
.sidebar-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gold);
    color: #1a1408;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.sidebar-brand small { display: block; opacity: .65; font-size: 11px; }
.sidebar-nav { padding: 12px 10px 32px; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c5d0dc;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(214, 158, 46, .16);
    color: #fff;
}
.nav-label {
    margin: 16px 12px 6px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8aa0b5;
}
.main { flex: 1; min-width: 0; }
.topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: #fff;
    border-bottom: 1px solid #e6ebf1;
    position: sticky;
    top: 0;
    z-index: 20;
}
.page-title { font-size: 18px; margin: 0; flex: 1; }
.centre-filter { min-width: 200px; }
.content { padding: 22px; }
.stat-card {
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16,42,67,.06);
    padding: 18px;
}
.stat-card h3 { font-size: 13px; color: var(--muted); margin: 0 0 6px; font-weight: 600; }
.stat-card .num { font-size: 28px; font-weight: 700; color: var(--navy); }
.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top left, #1c4b73, #102a43 55%);
}
.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand h1 { font-size: 22px; margin: 12px 0 4px; }
.login-brand p { color: var(--muted); margin: 0; }
.login-brand .brand-mark { margin: 0 auto; }
.chat-bubble {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    white-space: pre-wrap;
}
.chat-in { background: #eef2f7; }
.chat-out { background: #d9f2e3; margin-left: auto; }
@media (max-width: 991px) {
    .sidebar { position: fixed; left: -280px; z-index: 40; transition: left .2s; }
    .sidebar.open { left: 0; }
}
