/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-0re0j1vc2l] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-0re0j1vc2l] {
    flex: 1;
}

/* ===== Sidebar Styling ===== */
.sidebar[b-0re0j1vc2l] {
    background-color: #ffffff;
    border-right: 3px solid #ffde15;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.08);
}

/* ===== Top Row Styling ===== */
.top-row[b-0re0j1vc2l] {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

    .top-row[b-0re0j1vc2l]  a, .top-row[b-0re0j1vc2l]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
        color: #000000;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    .top-row[b-0re0j1vc2l]  a:hover, .top-row[b-0re0j1vc2l]  .btn-link:hover {
        color: #ffde15;
        text-decoration: none;
    }

    .top-row[b-0re0j1vc2l]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* ===== Mobile Responsive ===== */
@media (max-width: 640.98px) {
    .top-row[b-0re0j1vc2l] {
        justify-content: space-between;
    }

    .top-row[b-0re0j1vc2l]  a, .top-row[b-0re0j1vc2l]  .btn-link {
        margin-left: 0;
    }
}

/* ===== Desktop Layout ===== */
@media (min-width: 641px) {
    .page[b-0re0j1vc2l] {
        flex-direction: row;
    }

    .sidebar[b-0re0j1vc2l] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-0re0j1vc2l] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-0re0j1vc2l]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-0re0j1vc2l], article[b-0re0j1vc2l] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* ===== Blazor Error UI ===== */
#blazor-error-ui[b-0re0j1vc2l] {
    color-scheme: light only;
    background: #fffacd;
    border-top: 3px solid #ffde15;
    bottom: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.8rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #000000;
    font-weight: 500;
}

    #blazor-error-ui .dismiss[b-0re0j1vc2l] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
        color: #000000;
        font-size: 1.5rem;
        font-weight: bold;
        transition: color 0.2s ease;
    }

    #blazor-error-ui .dismiss:hover[b-0re0j1vc2l] {
        color: #e6c812;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ===== Navbar Toggler (Mobile) ===== */
.navbar-toggler[b-gtyaxi8seu] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: #000000;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.navbar-toggler:checked[b-gtyaxi8seu] {
    background-color: #ffde15;
    border-color: #ffde15;
}

/* ===== Top Row ===== */
.top-row[b-gtyaxi8seu] {
    min-height: 3.5rem;
    background-color: #ffffff;
    border-bottom: 1px solid var(--accent-yellow);
}

/* ===== Navbar Brand ===== */
.navbar-brand[b-gtyaxi8seu] {
    font-size: 1.1rem;
    color: #000000;
    font-weight: 600;
}

/* ===== Icon Base Styles ===== */
.bi[b-gtyaxi8seu] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
    transition: filter 0.2s ease;
}

/* ===== Navigation Icons (Black) ===== */
.bi-house-door-fill-nav-menu[b-gtyaxi8seu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23000000' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-gtyaxi8seu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23000000' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-geo-alt-fill-nav-menu[b-gtyaxi8seu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23000000' class='bi bi-geo-alt-fill' viewBox='0 0 16 16'%3E%3Cpath d='M8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10zm0-7a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'/%3E%3C/svg%3E");
}

.bi-plus-circle-nav-menu[b-gtyaxi8seu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23000000' class='bi bi-plus-circle' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3E%3C/svg%3E");
}

/* ===== Navigation Items ===== */
.nav-item[b-gtyaxi8seu] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-gtyaxi8seu] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-gtyaxi8seu] {
        padding-bottom: 1rem;
    }

    .nav-item[b-gtyaxi8seu]  .nav-link {
        color: #000000;
        background: none;
        border: none;
        border-radius: 8px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
        transition: all 0.2s ease;
        font-weight: 500;
        padding: 0 1rem;
    }

/* ===== Active Navigation Item (Yellow Accent) ===== */
.nav-item[b-gtyaxi8seu]  a.active {
    background-color: #ffde15;
    color: #000000;
    font-weight: 600;
    border-left: 4px solid #e6c812;
    box-shadow: 0 2px 8px rgba(255, 222, 21, 0.3);
}

/* ===== Hover State (Yellow Touch) ===== */
.nav-item[b-gtyaxi8seu]  .nav-link:hover {
    background-color: #fffacd;
    color: #000000;
    border-left: 4px solid #ffde15;
    padding-left: calc(1rem - 4px);
}

/* Ensure active links also get the hover effect */
.nav-item[b-gtyaxi8seu]  a.active:hover {
    background-color: #e6c812;
    box-shadow: 0 4px 12px rgba(255, 222, 21, 0.4);
}

/* ===== Navigation Scrollable ===== */
.nav-scrollable[b-gtyaxi8seu] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-gtyaxi8seu] {
    display: block;
}

/* ===== Desktop View ===== */
@media (min-width: 641px) {
    .navbar-toggler[b-gtyaxi8seu] {
        display: none;
    }

    .nav-scrollable[b-gtyaxi8seu] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }

    /* Custom scrollbar styling for modern look */
    .nav-scrollable[b-gtyaxi8seu]::-webkit-scrollbar {
        width: 6px;
    }

    .nav-scrollable[b-gtyaxi8seu]::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav-scrollable[b-gtyaxi8seu]::-webkit-scrollbar-thumb {
        background: #e0e0e0;
        border-radius: 3px;
    }

    .nav-scrollable[b-gtyaxi8seu]::-webkit-scrollbar-thumb:hover {
        background: #ffde15;
    }
}
