:root {
    --sidebar-width: 260px;
    --sidebar-bg: #0f172a;
    --sidebar-active: #3b82f6;
    --brand-blue: #214070;
    --brand-orange: #f39200;
}

body.app-body {
    min-height: 100vh;
    background: #f1f5f9;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.login-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #3b82f6 100%);
}

.app-sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
}

.app-sidebar .nav-link {
    border-radius: .5rem;
    padding: .65rem .85rem;
    transition: all .15s ease;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link.active {
    background: rgba(59, 130, 246, .15);
    color: #fff !important;
}

.app-sidebar .nav-link.active {
    border-left: 3px solid var(--sidebar-active);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.table td code {
    font-size: .85em;
}

.card {
    border-radius: .75rem;
}

.navbar-brand {
    font-weight: 600;
}

/* --- Branding siprice --- */
.brand-logo-sidebar {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
}

.brand-login-wrap {
    padding: 0 .5rem;
}

.brand-logo-login {
    width: 100%;
    max-width: 340px;
    height: auto;
}

.brand-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.btn-brand {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
    font-weight: 600;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: #d98300;
    border-color: #d98300;
    color: #fff;
}

.accordion-button:not(.collapsed) {
    background-color: #eff6ff;
    color: #1e40af;
}

@media (max-width: 991.98px) {
    .app-sidebar { width: 280px; }
}
