:root {
    --brand-primary: #0F3460;
    --brand-primary-dark: #08203F;
    --brand-accent: #00ADB5;
    --brand-accent-soft: #E6F7F8;
    --brand-surface: #F4F6FB;
    --brand-text: #1F2937;
    --brand-muted: #6B7280;
    --brand-danger: #C0392B;
    --brand-warn: #F39C12;
    --brand-success: #16A34A;
}

html, body {
    height: 100%;
}

body {
    background: var(--brand-surface);
    color: var(--brand-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .brand-mark {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    background: var(--brand-accent);
    color: #fff;
    border-radius: 10px;
    font-size: 1.1rem;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    margin-bottom: 2px;
    padding: 0.5rem 0.75rem;
    font-size: 0.92rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(0, 173, 181, 0.18);
    color: #fff;
}

.sidebar .nav-link i {
    width: 18px;
    text-align: center;
}

.main-content {
    background: var(--brand-surface);
    min-height: 100vh;
}

.page-shell {
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
}

.kpi-card .card-body {
    position: relative;
    padding: 1rem 1.25rem;
}

.kpi-card .kpi-icon {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--brand-accent-soft);
    color: var(--brand-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.kpi-card .kpi-label {
    font-size: 0.8rem;
    color: var(--brand-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-card .kpi-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.btn-primary {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
}

.btn-accent {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}
.btn-accent:hover { color: #fff; opacity: 0.92; }

.login-body {
    min-height: 100vh;
    margin: 0;
}

.login-split {
    min-height: 100vh;
    display: flex;
}

.login-hero {
    flex: 1 1 46%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    color: #fff;
    overflow: hidden;
}

.login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(15, 52, 96, .92) 0%, rgba(0, 173, 181, .55) 100%);
}

.login-hero > * {
    position: relative;
    z-index: 1;
}

.login-hero .hero-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.login-hero .hero-brand .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-hero .hero-brand .brand-mark img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.login-hero .hero-brand-name {
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.1;
}

.login-hero .hero-brand-tagline {
    font-size: .8rem;
    color: rgba(255, 255, 255, .75);
}

.login-hero .hero-quote h2 {
    font-weight: 700;
    font-size: 1.65rem;
    line-height: 1.32;
    max-width: 380px;
}

.login-hero .hero-quote p {
    color: rgba(255, 255, 255, .85);
    max-width: 380px;
    margin-top: .5rem;
}

.login-hero .hero-badges {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.login-hero .hero-badges span {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    padding: .3rem .8rem;
    font-size: .75rem;
}

.login-form-panel {
    flex: 1 1 54%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-surface);
    padding: 2rem 1rem;
}

@media (max-width: 900px) {
    .login-hero {
        display: none;
    }

    .login-form-panel {
        flex: 1 1 100%;
        min-height: 100vh;
        background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    }
}

.login-shell {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
}

.login-card .brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--brand-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--brand-muted);
    background: var(--brand-surface);
}

.badge-soft-info {
    background: var(--brand-accent-soft);
    color: var(--brand-accent);
}
