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

:root {
    --navy-dark: #0F2540;
    --navy: #1F3864;
    --gold: #D9A441;
    --bg: #F7F8FA;
    --text: #1F2430;
    --text-muted: #6B7280;
    --border: #E3E6EC;
    --success: #2F9E6E;
    --danger: #D64545;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
}

/* ===== App Shell ===== */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: var(--navy-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    flex-shrink: 0;
}

.sidebar-brand {
    font-size: 20px;
    font-weight: 700;
    padding: 0 24px 28px;
    letter-spacing: 0.3px;
}

.sidebar-nav {
    flex: 1;
}

    .sidebar-nav a {
        display: block;
        padding: 11px 24px;
        color: #B9C4D6;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        border-left: 3px solid transparent;
        transition: background 0.15s, color 0.15s;
    }

        .sidebar-nav a:hover {
            background: rgba(255,255,255,0.05);
            color: #fff;
        }

        .sidebar-nav a.active {
            color: #fff;
            background: rgba(255,255,255,0.06);
            border-left-color: var(--gold);
        }

.sidebar-footer {
    padding: 16px 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 16px;
    font-size: 13px;
    color: #8CA0BE;
}

    .sidebar-footer a {
        color: #E8B4B4;
        text-decoration: none;
    }

.main-content {
    flex: 1;
    padding: 32px 40px;
    max-width: 1200px;
}

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

    .page-header h1 {
        font-size: 22px;
        font-weight: 700;
        margin: 0;
    }

/* ===== Stat Cards ===== */
.stat-row {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 3px solid var(--navy);
    border-radius: 4px;
    padding: 16px 20px;
    min-width: 180px;
    flex: 1;
}

    .stat-card.warn {
        border-left-color: var(--gold);
    }

    .stat-card.danger {
        border-left-color: var(--danger);
    }

    .stat-card.success {
        border-left-color: var(--success);
    }

    .stat-card .stat-label {
        font-size: 12.5px;
        color: var(--text-muted);
        font-weight: 500;
        margin-bottom: 4px;
    }

    .stat-card .stat-value {
        font-size: 26px;
        font-weight: 700;
    }

/* ===== Table ===== */
.data-table {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    border-collapse: collapse;
    overflow: hidden;
}

    .data-table th {
        text-align: left;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--text-muted);
        padding: 12px 18px;
        background: #FBFBFC;
        border-bottom: 1px solid var(--border);
    }

    .data-table td {
        padding: 13px 18px;
        border-bottom: 1px solid var(--border);
        font-size: 14.5px;
    }

    .data-table tr:last-child td {
        border-bottom: none;
    }

    .data-table tr:hover td {
        background: #FAFAFB;
    }

/* ===== Badges ===== */
.badge-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.badge-warn {
    background: #FBEFDA;
    color: #92650F;
}

.badge-ok {
    background: #E2F4EC;
    color: #1B7A4F;
}

/* ===== Buttons ===== */
.btn-gold {
    background: var(--gold);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 4px;
    font-size: 14px;
}

    .btn-gold:hover {
        background: #C6923A;
        color: #fff;
    }

/* ===== Forms ===== */
.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 28px;
    max-width: 460px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-control {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 9px 12px;
    font-size: 14.5px;
}

    .form-control:focus {
        border-color: var(--navy);
        box-shadow: 0 0 0 3px rgba(31,56,100,0.1);
    }

/* ===== Login split screen ===== */
.login-shell {
    display: flex;
    min-height: 100vh;
}

.login-brand-panel {
    flex: 1;
    background: var(--navy-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}

    .login-brand-panel h1 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .login-brand-panel p {
        color: #B9C4D6;
        font-size: 15px;
        max-width: 340px;
        line-height: 1.6;
    }

.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.login-form-box {
    width: 100%;
    max-width: 340px;
}

    .login-form-box h4 {
        font-weight: 700;
        margin-bottom: 24px;
    }

@media (max-width: 800px) {
    .login-brand-panel {
        display: none;
    }
}
.mb-3 {
    margin-bottom: 16px;
}

.mt-2 {
    margin-top: 12px;
}

.w-100 {
    width: 100%;
}