:root {
    --navy: #12355b;
    --navy-dark: #0c2340;
    --accent: #2f80ed;
    --bg: #f4f6f9;
}

html, body { height: 100%; }
body { margin: 0; background: var(--bg); font-family: "Segoe UI", Tahoma, sans-serif; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, var(--navy-dark), var(--navy));
    color: #fff;
    flex-shrink: 0;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 20px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark {
    width: 40px; height: 40px; border-radius: 10px; background: var(--accent);
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.brand-title { font-weight: 700; }
.brand-sub { font-size: 12px; opacity: .7; }
.side-nav { display: flex; flex-direction: column; padding: 12px 0; }
.side-nav a {
    color: #dbe7f5; text-decoration: none; padding: 9px 18px; font-size: 14px;
}
.side-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-label { padding: 16px 18px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
    background: var(--navy); color: #fff; display: flex; justify-content: space-between;
    align-items: center; padding: 14px 24px;
}
.topbar h1 { font-size: 18px; margin: 0; font-weight: 600; }
.user-box { display: flex; gap: 12px; align-items: center; }
.content { padding: 24px; }

.stat-card {
    background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.stat-card .label { color: #6b7c90; font-size: 13px; }
.stat-card .value { font-size: 28px; font-weight: 700; color: var(--navy); }

.login-body {
    min-height: 100vh;
    background: linear-gradient(160deg, #0c2340, #1b4f86);
    display: flex; align-items: center; justify-content: center;
}
.login-card {
    width: 420px; background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.login-head { background: var(--navy); color: #fff; padding: 22px 24px; }
.table thead th { background: #eef3f8; }

@media (max-width: 900px) {
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; }
    .side-nav { flex-direction: row; flex-wrap: wrap; }
}
