/* _content/HCKarya/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-bceytxkmdw] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-bceytxkmdw] {
    flex: 1;
}

.top-row[b-bceytxkmdw] {
    background-image: linear-gradient(58deg, rgb(121 78 0) 0%, #000 70%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 1rem;
}

/* ✅ Toggle button (mobile only) */
.menu-toggle[b-bceytxkmdw] {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

    .menu-toggle:hover[b-bceytxkmdw] {
        color: #ffd700;
    }

/* ✅ Overlay untuk close sidebar di mobile */
.sidebar-overlay[b-bceytxkmdw] {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
}

/* ✅ Mobile: sidebar overlay muncul */
@media (max-width: 640px) {
    .sidebar-overlay[b-bceytxkmdw] {
        display: block;
    }
}

/* ✅ Desktop: side-by-side layout */
@media (min-width: 641px) {
    .page[b-bceytxkmdw] {
        flex-direction: row;
    }

    .menu-toggle[b-bceytxkmdw] {
        display: none !important;
    }

    .sidebar-overlay[b-bceytxkmdw] {
        display: none !important;
    }
}

#blazor-error-ui[b-bceytxkmdw] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-bceytxkmdw] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/HCKarya/Components/Layout/NavMenu.razor.rz.scp.css */
/* ✅ Sidebar base style */
.sidebar[b-6vo9pzdxst] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #794e00 70%);
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1050;
}

/* ✅ Mobile: hidden by default */
@media (max-width: 640px) {
    .sidebar[b-6vo9pzdxst] {
        transform: translateX(-100%);
    }

        .sidebar.show[b-6vo9pzdxst] {
            transform: translateX(0);
        }
}

/* ✅ Desktop: always visible, static */
@media (min-width: 641px) {
    .sidebar[b-6vo9pzdxst] {
        position: sticky;
        top: 0;
        transform: translateX(0) !important;
    }
}

/* ✅ Scrollbar styling */
.sidebar[b-6vo9pzdxst]::-webkit-scrollbar {
    width: 8px;
}

.sidebar[b-6vo9pzdxst]::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0);
    border-radius: 4px;
    transition: background-color 0.3s;
}

.sidebar:hover[b-6vo9pzdxst]::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.4);
}

.sidebar[b-6vo9pzdxst]::-webkit-scrollbar-track {
    background: transparent;
}

/* ✅ Top row (logo area) */
.top-row[b-6vo9pzdxst] {
    background-color: #715000;
    min-height: 3.5rem;
}

.navbar-brand[b-6vo9pzdxst] {
    font-size: 1.1rem;
}

.bi[b-6vo9pzdxst] {
    display: inline-block;
    width: 1.25rem;
    margin-right: 0.75rem;
}

/* ✅ Nav items */
.nav-item[b-6vo9pzdxst] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-6vo9pzdxst] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-6vo9pzdxst] {
        padding-bottom: 1rem;
    }

    .nav-item[b-6vo9pzdxst]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        width: 100%;
    }

    .nav-item[b-6vo9pzdxst]  a.active {
        background-color: rgba(255,255,255,0.37);
        color: white;
    }

    .nav-item[b-6vo9pzdxst]  .nav-link:hover {
        background-color: rgba(255,255,255,0.1);
        color: white;
    }
.nav-heading[b-6vo9pzdxst] {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-6vo9pzdxst] {
    background-color: #715000;
    padding-bottom: 2rem;
    overflow-y: auto;
    max-height: calc(100vh - 3.5rem);
}

    .nav-scrollable .nav-link[b-6vo9pzdxst] {
        color: rgba(255,255,255,0.9);
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        border-radius: 6px;
        margin: 2px 0;
        transition: all 0.2s ease;
    }

        .nav-scrollable .nav-link.active[b-6vo9pzdxst] {
            color: #000000;
            font-weight: 600;
            background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
            box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
        }

        .nav-scrollable .nav-link:not(.active):hover[b-6vo9pzdxst] {
            color: #ffd700;
            background-color: rgba(255, 215, 0, 0.15);
            transform: translateX(4px);
        }

        .nav-scrollable .nav-link .bi[b-6vo9pzdxst] {
            width: 1.2rem;
            font-size: 1rem;
        }

    .nav-scrollable[b-6vo9pzdxst]::-webkit-scrollbar {
        width: 6px;
    }

    .nav-scrollable[b-6vo9pzdxst]::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.1);
    }

    .nav-scrollable[b-6vo9pzdxst]::-webkit-scrollbar-thumb {
        background: rgba(255,215,0,0.3);
        border-radius: 3px;
    }

        .nav-scrollable[b-6vo9pzdxst]::-webkit-scrollbar-thumb:hover {
            background: rgba(255,215,0,0.5);
        }
