:root {
    --brand-1: #0f766e;
    --brand-2: #0ea5e9;
    --surface: #f4f7fb;
    --sidebar-bg: #0b172a;
    --sidebar-text: #d5def0;
}

* {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background: linear-gradient(120deg, #f6fbff 0%, #eef4ff 45%, #f6fff7 100%);
    min-height: 100vh;
}

.psb-body {
    background: linear-gradient(135deg, #f8fbff 0%, #f4fff9 100%);
    min-height: 100vh;
}

.login-body {
    background:
        radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.25), transparent 40%),
        radial-gradient(circle at 80% 85%, rgba(15, 118, 110, 0.2), transparent 40%),
        #f7fbff;
}

.login-card {
    border-radius: 24px;
}

.login-left {
    background: linear-gradient(145deg, #0b172a, #0f766e);
}

.login-hero-image {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

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

.sidebar {
    width: 270px;
    background: linear-gradient(180deg, #101f39, var(--sidebar-bg));
    color: var(--sidebar-text);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(14, 165, 233, 0.55) rgba(255, 255, 255, 0.08);
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.55);
    border-radius: 8px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, var(--brand-1), var(--brand-2));
    color: #fff;
}

.menu-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-bottom: 8px;
}

.menu-group {
    margin-bottom: 6px;
}

.menu-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: rgba(255, 255, 255, 0.04);
    color: #e7eefc;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
}

.menu-group-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.menu-group-toggle .bi-chevron-down {
    transition: transform 0.2s ease;
}

.menu-group-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 8px;
    padding: 7px 10px;
    margin: 4px 0 0 0;
    font-size: 13px;
}

.menu-link:hover,
.menu-link.active {
    background: rgba(14, 165, 233, 0.16);
    color: #fff;
}

.main-content {
    flex: 1;
    padding: 24px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 8px 25px rgba(12, 22, 44, 0.07);
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-chip i {
    font-size: 26px;
    color: var(--brand-1);
}

.metric-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(18, 31, 56, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.08);
}

.metric-card .label {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 4px;
}

.metric-card .value {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.card {
    border-radius: 16px;
}

.receipt-wrap {
    max-width: 900px;
}

@media (max-width: 991px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
    }

    .main-content {
        padding: 16px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media print {
    .sidebar,
    .topbar,
    .btn,
    form {
        display: none !important;
    }

    .main-content {
        padding: 0;
    }

    .card {
        box-shadow: none !important;
        border: 0 !important;
    }
}
