:root {
    --spmb-primary: #1d4ed8;
    --spmb-dark: #111827;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.app-body {
    background: #f1f5f9;
    min-height: 100vh;
}

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

.app-sidebar {
    width: 250px;
    background: var(--spmb-dark);
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
}

.app-brand {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.app-nav-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .75rem;
    margin-bottom: .2rem;
    border-radius: .5rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: .92rem;
    transition: all .15s ease;
}

.app-nav-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.app-nav-link.active {
    background: var(--spmb-primary);
    color: #fff;
    font-weight: 600;
}

.app-ico {
    width: 1.1em;
    text-align: center;
    font-size: 1rem;
}

.app-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.app-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--spmb-dark);
}

.stat-card {
    border: 0;
    border-radius: .9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    overflow: hidden;
}

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

.hero {
    background: linear-gradient(135deg, var(--spmb-primary) 0%, #0ea5e9 100%);
    color: #fff;
}

.chip-buka { color: #15803d; }
.chip-tutup { color: #b91c1c; }

.qr-box {
    border: 3px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
}

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

.timeline-step {
    display: flex;
    gap: .9rem;
}

.timeline-step .node {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: var(--spmb-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.timeline-step:not(:last-child)::after {
    content: "";
    display: block;
    width: 2px;
    height: 22px;
    background: #e2e8f0;
    margin-left: 17px;
}

@media (max-width: 991.98px) {
    .app-shell {
        display: block !important;
    }
}