@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #102b55;
    --navy-dark: #0a1d3d;
    --gold: #d6a62c;
    --bg: #f3f5f9;
    --text: #202b3c;
    --muted: #738096;
    --border: #e6eaf0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #0a1d3d, #173c70);
}

.login-card {
    width: min(100%, 460px);
    padding: 38px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 24px 70px #0004;
}

.login-brand, .top-brand, .user-area {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-symbol {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--navy);
    color: white;
    border-radius: 12px;
    font-size: 19px;
    font-weight: 800;
    border-bottom: 4px solid var(--gold);
}

.brand-symbol.small {
    width: 42px;
    height: 42px;
    font-size: 15px;
}

.login-brand strong, .top-brand strong {
    display: block;
    color: var(--navy);
    font-weight: 800;
}

.login-brand span, .top-brand span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.login-heading { margin: 36px 0 26px; }
.eyebrow {
    color: #a57a15;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

h1, h2, p { margin-top: 0; }
.login-heading h1 { margin: 9px 0; font-size: 25px; color: var(--navy); }
.login-heading p, .page-heading p, .section-heading p {
    color: var(--muted);
    line-height: 1.6;
}

label {
    display: block;
    margin: 17px 0 8px;
    font-weight: 700;
    font-size: 12px;
}

input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dce2eb;
    border-radius: 8px;
    font: inherit;
    outline: none;
}

input:focus { border-color: #5278ad; box-shadow: 0 0 0 3px #5278ad20; }

.btn-primary {
    width: 100%;
    margin-top: 25px;
    padding: 14px;
    border: 0;
    border-radius: 8px;
    background: var(--navy);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary:hover { background: #1b437b; }

.alert-error {
    padding: 12px;
    background: #fff0ef;
    color: #a32d27;
    border-radius: 7px;
    font-size: 12px;
}

.login-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
    text-align: center;
}

.topbar {
    min-height: 74px;
    padding: 12px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-bottom: 1px solid var(--border);
}

.user-area { gap: 18px; font-weight: 600; }
.user-area form { margin: 0; }

.btn-logout {
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: white;
    color: var(--navy);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.dashboard-layout { display: flex; min-height: calc(100vh - 74px); }

.sidebar {
    width: 245px;
    flex-shrink: 0;
    padding: 28px 16px;
    background: var(--navy-dark);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-label {
    padding: 0 12px 14px;
    color: #aebbd0;
    font-size: 9px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.nav-link {
    padding: 13px 12px;
    border-radius: 7px;
    color: #dbe4f2;
    text-decoration: none;
    font-size: 12px;
}

.nav-link.active { background: #244675; color: white; }
.nav-link[aria-disabled="true"] { opacity: .65; cursor: default; }

.sidebar-note {
    margin-top: auto;
    padding: 16px 10px 0;
    border-top: 1px solid #ffffff20;
    color: #aebbd0;
    font-size: 10px;
    line-height: 1.7;
}

.main-content { width: 100%; padding: 35px; overflow: hidden; }

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.page-heading h1 { margin: 7px 0; color: var(--navy); font-size: 26px; }
.page-heading p { margin-bottom: 0; }

.status-label {
    padding: 9px 13px;
    border-radius: 30px;
    background: #e7f5ec;
    color: #277448;
    font-size: 10px;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.stat-card, .content-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 23px;
}

.stat-card span, .stat-card small { display: block; color: var(--muted); }
.stat-card span { font-size: 11px; font-weight: 600; }
.stat-card strong {
    display: block;
    margin: 13px 0 7px;
    color: var(--navy);
    font-size: 32px;
}

.stat-card small { font-size: 10px; }

.section-heading h2 { margin-bottom: 6px; color: var(--navy); font-size: 16px; }
.section-heading p { margin-bottom: 20px; font-size: 11px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--border); font-size: 11px; }
th { color: var(--muted); font-weight: 700; background: #f8f9fb; }
td { color: var(--text); }

.main-footer {
    padding: 24px 0;
    color: var(--muted);
    font-size: 10px;
}

@media(max-width: 800px) {
    .dashboard-layout { display: block; }
    .sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .sidebar-note, .sidebar-label { display: none; }
    .main-content { padding: 22px 15px; }
    .stats-grid { grid-template-columns: 1fr; }
    .page-heading { align-items: flex-start; gap: 12px; flex-direction: column; }
}

@media(max-width: 480px) {
    .login-card { padding: 25px 20px; }
    .topbar { padding: 12px; }
    .user-area { gap: 8px; font-size: 10px; }
}
