:root {
    --brand-primary: #0d3b66;
    --brand-primary-dark: #082b4d;
}

body {
    background-color: #f4f6f9;
    padding-top: 56px;
}

.app-topbar {
    background-color: var(--brand-primary);
    z-index: 1040;
}

.app-sidebar {
    top: 56px;
    width: 250px;
    background-color: #ffffff;
    border-right: 1px solid #e3e6ea;
    height: calc(100vh - 56px);
}

.app-sidebar-nav .nav-link {
    color: #333;
    padding: .65rem 1.1rem;
    border-radius: 0;
}

.app-sidebar-nav .nav-link:hover,
.app-sidebar-nav .nav-link.active {
    background-color: #eef3fa;
    color: var(--brand-primary);
    font-weight: 600;
}

.app-content {
    margin-left: 250px;
    padding: 1.5rem;
    transition: margin-left .2s ease;
}

@media (max-width: 991.98px) {
    .app-content {
        margin-left: 0;
    }
}

/*
 * Bootstrap's .offcanvas-lg resets position to static at >=992px (so it can sit
 * inline without JS). This app relies on a permanently fixed sidebar instead, so
 * that reset is overridden here to restore fixed positioning + the hide/unhide
 * toggle. Toggling `left` (not `margin-left`) avoids the over-constrained box
 * model that would otherwise make the browser discard the margin.
 */
@media (min-width: 992px) {
    .app-sidebar.offcanvas-lg {
        position: fixed !important;
        left: 0;
        transition: left .2s ease;
    }

    body.sidebar-hidden .app-sidebar.offcanvas-lg {
        left: -250px;
    }

    body.sidebar-hidden .app-content {
        margin-left: 0;
    }
}

.stat-card {
    border: none;
    border-radius: .75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.stat-card .stat-value {
    font-size: 1.9rem;
    font-weight: 700;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    padding-top: 0;
}

.login-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    max-width: 420px;
    width: 100%;
}

.badge-sifat-rahasia { background-color: #b3261e; }
.badge-sifat-penting { background-color: #b3720b; }
.badge-sifat-biasa { background-color: #6c757d; }

.table-responsive-card .table td, .table-responsive-card .table th {
    vertical-align: middle;
}
