/* _content/QRCodeTechUnited/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-8ovqh1uezi] {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #0d1117; /* TechUnited Base Dark */
}

main[b-8ovqh1uezi] {
    flex: 1;
    background-color: #0d1117;
}

/* Sidebar: Removed purple/blue, added Obsidian & Emerald */
.sidebar[b-8ovqh1uezi] {
    background-image: linear-gradient(180deg, #161b22 0%, #0d1117 100%) !important;
    border-right: 1px solid #30363d;
}

/* Top Row: Hidden or dark-themed (since we removed About link) */
.top-row[b-8ovqh1uezi] {
    background-color: #161b22 !important; /* Match card color */
    border-bottom: 1px solid #30363d !important;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    visibility: hidden; /* We hide it because the About link is gone */
}

@media (max-width: 640.98px) {
    .top-row[b-8ovqh1uezi] {
        display: none; /* Hide on mobile to save space */
    }
}

@media (min-width: 641px) {
    .page[b-8ovqh1uezi] {
        flex-direction: row;
    }

    .sidebar[b-8ovqh1uezi] {
        width: 260px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    /* Important: When sidebar is absent (Login Page), center the content */
    .page:not(:has(.sidebar)) main[b-8ovqh1uezi] {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100vw;
    }

    article[b-8ovqh1uezi] {
        padding-top: 2rem !important;
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Modernized Error UI */
#blazor-error-ui[b-8ovqh1uezi] {
    background: #b32121; /* Red for alert */
    color: white;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-top: 1px solid #30363d;
}

    #blazor-error-ui .reload[b-8ovqh1uezi] {
        color: #00c853; /* Emerald green for the reload action */
        font-weight: bold;
        margin: 0 10px;
    }
/* _content/QRCodeTechUnited/Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-2ma7cwkqes] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid var(--border-color);
    /* Updated SVG stroke to TechUnited Green (#00c853) */
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2300c853' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.05);
}

.top-row[b-2ma7cwkqes] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand[b-2ma7cwkqes] {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00c853 !important; /* TechUnited Green */
    letter-spacing: 0.5px;
}

.bi[b-2ma7cwkqes] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
    /* This makes all icons inherit the green color slightly */
    filter: brightness(0) saturate(100%) invert(56%) sepia(87%) font-weight(700) hue-rotate(113deg) brightness(96%) contrast(101%);
}

.nav-item[b-2ma7cwkqes] {
    font-size: 0.95rem;
    padding: 0 0.5rem;
}

    .nav-item[b-2ma7cwkqes]  .nav-link {
        color: #8b949e; /* Muted GitHub-style text */
        background: none;
        border-radius: 8px;
        height: 3rem;
        display: flex;
        align-items: center;
        transition: all 0.2s ease;
        margin: 2px 0;
    }

    /* Active State: High Contrast Emerald */
    .nav-item[b-2ma7cwkqes]  a.active {
        background-color: #00c853 !important;
        color: #000000 !important;
        font-weight: 600;
    }

        .nav-item[b-2ma7cwkqes]  a.active .bi {
            filter: brightness(0); /* Make icon black on green background */
        }

    /* Hover State: Subtle Green Glow */
    .nav-item[b-2ma7cwkqes]  .nav-link:hover {
        background-color: rgba(0, 200, 83, 0.1);
        color: #00c853;
    }

@media (min-width: 641px) {
    .navbar-toggler[b-2ma7cwkqes] {
        display: none;
    }

    .nav-scrollable[b-2ma7cwkqes] {
        display: block;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
        /* Custom scrollbar for dark mode */
        scrollbar-width: thin;
        scrollbar-color: #30363d transparent;
    }
}
/* Add a subtle divider between system links and user links */
.nav-divider[b-2ma7cwkqes] {
    height: 1px;
    background-color: var(--border-color);
    margin: 1rem 1.5rem;
    opacity: 0.3;
}

/* Ensure the logout button looks like a NavLink */
button.nav-link[b-2ma7cwkqes] {
    font-size: 0.95rem;
    color: #8b949e;
    padding-left: 0.75rem !important;
}

    button.nav-link:hover[b-2ma7cwkqes] {
        color: #00c853 !important;
        background-color: rgba(0, 200, 83, 0.1) !important;
    }

/* Make icons stand out on your RTX 4080 screen */
.bi[b-2ma7cwkqes] {
    filter: brightness(0) saturate(100%) invert(56%) sepia(87%) hue-rotate(113deg) brightness(96%) contrast(101%);
    margin-right: 12px;
}
