/* /Components/Layout/MainLayout.razor.rz.scp.css */
.admin-shell[b-s3ql6fxasy] {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #07101b 0%, #0f172a 42%, #0b2440 100%);
}

.admin-main[b-s3ql6fxasy] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-sidebar[b-s3ql6fxasy] {
    width: 260px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(8px);
    position: relative;
}

/* Sidebar is hidden by default; opening the hamburger adds the 'sidebar-open' class to the body */
body:not(.sidebar-open) .admin-sidebar[b-s3ql6fxasy] {
    display: none;
}
body.sidebar-open .admin-sidebar[b-s3ql6fxasy] {
    display: block;
}

.admin-topbar[b-s3ql6fxasy] {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(8px);
}

.admin-title[b-s3ql6fxasy] {
    color: #f8fafc;
    font-weight: 800;
    font-size: 1.1rem;
}

/* Page header icons (replaces emoji) */
.page-icon[b-s3ql6fxasy] {
    display: inline-block;
    font-size: 0.9em; /* emoji size */
    line-height: 1;
    margin-right: 6px;
    vertical-align: -0.08em;
    opacity: 0.95;
}

.admin-subtitle[b-s3ql6fxasy] {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 2px;
}

.admin-doc-link[b-s3ql6fxasy] {
    color: #bfdbfe;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(147, 197, 253, 0.35);
    padding: 8px 12px;
    border-radius: 8px;
}

.admin-doc-link:hover[b-s3ql6fxasy] {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.2);
}

.admin-content[b-s3ql6fxasy] {
    padding: 24px;
}

/* Modern hamburger button */
.hamburger-btn[b-s3ql6fxasy] {
    background: linear-gradient(90deg, rgba(14,165,233,0.12), rgba(59,130,246,0.12));
    border: 1px solid rgba(59,130,246,0.12);
    padding: 10px;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.hamburger-lines[b-s3ql6fxasy] { display: inline-block; width: 28px; height: 18px; position: relative; }
.hamburger-lines span[b-s3ql6fxasy] { position: absolute; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,#0ea5e9,#2563eb); display: block; transition: transform 220ms cubic-bezier(.2,.9,.2,1), opacity 180ms ease; border-radius:2px; }
.hamburger-lines span:nth-child(1)[b-s3ql6fxasy] { top: 0; }
.hamburger-lines span:nth-child(2)[b-s3ql6fxasy] { top: 7.5px; }
.hamburger-lines span:nth-child(3)[b-s3ql6fxasy] { bottom: 0; }

/* When sidebar is open, transform into an X */
body.sidebar-open .hamburger-lines span:nth-child(1)[b-s3ql6fxasy] { transform: translateY(7.5px) rotate(45deg); }
body.sidebar-open .hamburger-lines span:nth-child(2)[b-s3ql6fxasy] { opacity: 0; transform: scaleX(0); }
body.sidebar-open .hamburger-lines span:nth-child(3)[b-s3ql6fxasy] { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
    .admin-shell[b-s3ql6fxasy] {
        flex-direction: column;
    }

    .admin-sidebar[b-s3ql6fxasy] {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .admin-content[b-s3ql6fxasy] {
        padding: 16px;
    }
}

#blazor-error-ui[b-s3ql6fxasy] {
    color-scheme: light only;
    background: #fef3c7;
    color: #78350f;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-s3ql6fxasy] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-kmrxs4b68c] {
    /* visually hide the checkbox input; label is visible control */
    position: absolute;
    left: -9999px;
}

.navbar-toggler:checked[b-kmrxs4b68c] {
    background-color: rgba(59, 130, 246, 0.3);
}

.nav-header[b-kmrxs4b68c] {
    padding: 20px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand[b-kmrxs4b68c] {
    font-size: 1.4rem;
    font-weight: 800;
}

.brand-vision[b-kmrxs4b68c] { color: #ef4444; }
.brand-sync[b-kmrxs4b68c] { color: #3b82f6; }

.brand-subtitle[b-kmrxs4b68c] {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 0.88rem;
}

.nav-item[b-kmrxs4b68c] { font-size: 0.95rem; padding-bottom: 0.4rem; }
.nav-item:first-of-type[b-kmrxs4b68c] { padding-top: 0.9rem; }

.nav-item[b-kmrxs4b68c]  .nav-link {
    color: #cbd5e1; /* unified default link color */
    border: none;
    border-radius: 10px;
    height: 2.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 2.8rem;
    width: 100%;
    transition: background-color .2s ease, color .15s ease;
    padding-left: 14px; /* space from sidebar edge so icons aren't flush to the left */
}

/* When using .nav-link on a button, remove default button styles */
.nav-link.btn[b-kmrxs4b68c] { background: transparent; border: 0; padding: 0; text-align: left; }

.nav-item[b-kmrxs4b68c]  a.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(59, 130, 246, 0.35));
    color: #fff;
}

.nav-item[b-kmrxs4b68c]  .nav-link:hover {
    background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(59,130,246,0.12));
    color: #ffffff;
}

/* Menu icon styling so emoji icons match theme and hover states */
.menu-icon[b-kmrxs4b68c] {
    display: inline-block;
    width: 18px;
    text-align: center;
    margin-right: 8px;
    font-size: 16px;
    line-height: 1;
    color: inherit; /* inherit text color so hover affects icon */
}

.nav-item[b-kmrxs4b68c]  .nav-link:hover .menu-icon { color: inherit; }



.nav-logout[b-kmrxs4b68c] {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-scrollable[b-kmrxs4b68c] { display: block; max-height: none; overflow: visible; opacity: 1; transition: max-height 260ms ease-in-out, opacity 180ms ease-in-out; }
.navbar-toggler:checked ~ .nav-scrollable[b-kmrxs4b68c] { max-height: none; opacity: 1; }

/* Collapsed (icon-only) sidebar styling */
.nav[b-kmrxs4b68c] {
    display: flex;
    flex-direction: column;
}
.nav-item[b-kmrxs4b68c] { padding: 8px 0; }
.nav-link[b-kmrxs4b68c] { justify-content: flex-start; }
.nav-link .icon[b-kmrxs4b68c] { flex: 0 0 28px; margin-right: 8px; }
.nav-text[b-kmrxs4b68c] { display: inline-block; transition: opacity 160ms ease, transform 180ms ease; }

/* Default: collapsed -> hide text and narrow sidebar */
body:not(.sidebar-open) .admin-sidebar[b-kmrxs4b68c] {
    width: 64px;
}
body:not(.sidebar-open) .nav-text[b-kmrxs4b68c] {
    opacity: 0;
    transform: translateX(-6px);
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

/* When open, restore full width and show text */
body.sidebar-open .admin-sidebar[b-kmrxs4b68c] {
    width: 260px;
}
body.sidebar-open .nav-text[b-kmrxs4b68c] {
    opacity: 1;
    transform: none;
    width: auto;
}

/* Visible toggle button (always shown to aid discovery) */
.navbar-toggle-btn[b-kmrxs4b68c] { display: none; }

@media (min-width: 901px) {
    /* Keep the sidebar closed by default on larger screens as well.
       The hidden checkbox controls visibility so JS/label can toggle it. */
    .navbar-toggler[b-kmrxs4b68c] { display: none; }
    .nav-scrollable[b-kmrxs4b68c] { max-height: none; overflow: visible; opacity: 1; transition: max-height 260ms ease-in-out, opacity 180ms ease-in-out; }
    .navbar-toggler:checked ~ .nav-scrollable[b-kmrxs4b68c] { max-height: none; opacity: 1; height: auto; overflow-y: auto; display: block; }
}
