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

main[b-owxnb1x518] {
    flex: 1;
}

.sidebar[b-owxnb1x518] {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

@media (min-width: 641px) {
    .page[b-owxnb1x518] {
        flex-direction: row;
    }

    .sidebar[b-owxnb1x518] {
        width: 280px;
        height: 100vh;
        position: sticky;
        top: 0;
        display: flex;
        flex-direction: column;
    }

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

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

    article[b-owxnb1x518] {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

@media (max-width: 640.98px) {
    article[b-owxnb1x518] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

#blazor-error-ui[b-owxnb1x518] {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    display: none;
    left: 0;
    padding: 0.75rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-top: 2px solid #ffc107;
    color: #856404;
    font-weight: 500;
}

#blazor-error-ui .dismiss[b-owxnb1x518] {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
    font-size: 1.25rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#blazor-error-ui .dismiss:hover[b-owxnb1x518] {
    opacity: 1;
}

#blazor-error-ui .reload[b-owxnb1x518] {
    color: #856404;
    text-decoration: underline;
    font-weight: 600;
}
/* _content/BodegaDESAM/Components/Layout/NavMenu.razor.rz.scp.css */
/* ============================================
   TOP ROW - HEADER
   ============================================ */

.top-row[b-gl3pgh3q1m] {
    height: 4rem;
    background: var(--sidebar-header-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--sidebar-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 1.25rem;
}

.top-row .container-fluid[b-gl3pgh3q1m] {
    height: 100%;
}

/* ============================================
   NAVBAR BRAND (LOGO)
   ============================================ */

.navbar-brand[b-gl3pgh3q1m] {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sidebar-text);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: all 0.2s ease;
    padding: 0;
}

.navbar-brand i[b-gl3pgh3q1m] {
    font-size: 1.5rem;
    color: var(--sidebar-text);
}

.navbar-brand:hover[b-gl3pgh3q1m] {
    color: var(--accent-primary);
    transform: translateX(2px);
}

.navbar-brand:hover i[b-gl3pgh3q1m] {
    color: var(--accent-primary);
    transform: scale(1.05);
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */

.theme-toggle[b-gl3pgh3q1m] {
    background: var(--sidebar-link-bg);
    border: 1px solid var(--sidebar-link-border);
    color: var(--sidebar-text);
    border-radius: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover[b-gl3pgh3q1m] {
    background: var(--sidebar-link-hover);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.theme-toggle i[b-gl3pgh3q1m] {
    font-size: 1.125rem;
}

/* ============================================
   MOBILE TOGGLE BUTTON
   ============================================ */

.navbar-toggler-btn[b-gl3pgh3q1m] {
    display: none;
    background: var(--sidebar-link-bg);
    border: 1px solid var(--sidebar-link-border);
    color: var(--sidebar-text);
    border-radius: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
}

.navbar-toggler-btn:hover[b-gl3pgh3q1m] {
    background: var(--sidebar-link-hover);
}

.navbar-toggler-btn i[b-gl3pgh3q1m] {
    font-size: 1.5rem;
}

@media (max-width: 640.98px) {
    .navbar-toggler-btn[b-gl3pgh3q1m] {
        display: flex;
    }

    .top-row[b-gl3pgh3q1m] {
        padding: 0 1rem;
    }
}

/* ============================================
   MOBILE BACKDROP
   ============================================ */

.mobile-nav-backdrop[b-gl3pgh3q1m] {
    display: none;
}

@media (max-width: 640.98px) {
    .mobile-nav-backdrop[b-gl3pgh3q1m] {
        display: block;
        position: fixed;
        inset: 4rem 0 0;
        width: 100vw;
        height: calc(100dvh - 4rem);
        border: 0;
        background: rgba(0, 0, 0, 0.5);
        cursor: default;
        z-index: 98;
        animation: fadeIn-b-gl3pgh3q1m 0.3s ease;
    }
}

@keyframes fadeIn-b-gl3pgh3q1m {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   NAV SCROLLABLE CONTAINER
   ============================================ */

.nav-scrollable[b-gl3pgh3q1m] {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    box-shadow: var(--shadow-lg);
    height: calc(100vh - 4rem);
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-scrollable[b-gl3pgh3q1m]::-webkit-scrollbar {
    width: 6px;
}

.nav-scrollable[b-gl3pgh3q1m]::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.nav-scrollable[b-gl3pgh3q1m]::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    opacity: 0.5;
    border-radius: 3px;
}

.nav-scrollable[b-gl3pgh3q1m]::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ============================================
   NAV CONTENT
   ============================================ */

.nav-content[b-gl3pgh3q1m] {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1rem 0.75rem 1.5rem;
    gap: 0.25rem;
}

/* ============================================
   USER PROFILE SECTION
   ============================================ */

.user-profile[b-gl3pgh3q1m] {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: var(--sidebar-link-bg);
    border: 1px solid var(--sidebar-link-border);
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
}

.user-avatar[b-gl3pgh3q1m] {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.user-info[b-gl3pgh3q1m] {
    flex: 1;
    min-width: 0;
}

.user-name[b-gl3pgh3q1m] {
    color: var(--sidebar-text);
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.125rem;
}

.user-role[b-gl3pgh3q1m] {
    color: var(--sidebar-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.user-role i[b-gl3pgh3q1m] {
    font-size: 0.875rem;
}

/* ============================================
   NAV DIVIDER
   ============================================ */

.nav-divider[b-gl3pgh3q1m] {
    height: 1px;
    background: var(--sidebar-border);
    margin: 0.75rem 0;
}

/* ============================================
   NAV SECTIONS
   ============================================ */

.nav-section[b-gl3pgh3q1m] {
    margin-bottom: 1rem;
}

.nav-section:last-child[b-gl3pgh3q1m] {
    margin-bottom: 0;
}

.nav-section-header[b-gl3pgh3q1m] {
    color: var(--sidebar-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 0.75rem 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-section-header i[b-gl3pgh3q1m] {
    font-size: 0.875rem;
}

/* ============================================
   NAV ITEMS & LINKS
   ============================================ */

.nav-item[b-gl3pgh3q1m] {
    margin-bottom: 0.25rem;
}

.nav-link[b-gl3pgh3q1m] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 0.625rem;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
    border: 1px solid transparent;
}

.nav-link i:first-child[b-gl3pgh3q1m] {
    font-size: 1.125rem;
    width: 1.25rem;
    text-align: center;
    opacity: 0.95;
}

.nav-link span[b-gl3pgh3q1m] {
    flex: 1;
}

.nav-arrow[b-gl3pgh3q1m] {
    font-size: 0.75rem;
    opacity: 0;
    transition: all 0.2s ease;
    margin-left: auto;
    color: var(--sidebar-text-muted);
}

.nav-link:hover[b-gl3pgh3q1m] {
    background: var(--sidebar-link-hover);
    border-color: var(--sidebar-link-border);
    color: var(--accent-primary);
    transform: translateX(2px);
}

.nav-link:hover .nav-arrow[b-gl3pgh3q1m] {
    opacity: 0.7;
}

.nav-link.active[b-gl3pgh3q1m] {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.75), rgba(139, 92, 246, 0.70));
    border-color: rgba(99, 102, 241, 0.6);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-link.active[b-gl3pgh3q1m]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 0 2px 2px 0;
}

.nav-link.active .nav-arrow[b-gl3pgh3q1m] {
    opacity: 1;
    color: rgba(255, 255, 255, 0.8);
}

.nav-link.active:hover[b-gl3pgh3q1m] {
    transform: translateX(0);
}

/* Danger link (logout) */
.nav-link-danger[b-gl3pgh3q1m] {
    color: #ef4444;
}

.nav-link-danger:hover[b-gl3pgh3q1m] {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.nav-link-danger i[b-gl3pgh3q1m] {
    color: #ef4444;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 640.98px) {
    .nav-scrollable[b-gl3pgh3q1m] {
        position: fixed;
        top: 4rem;
        left: 0;
        width: 85%;
        max-width: 320px;
        height: calc(100dvh - 4rem);
        z-index: 99;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .nav-scrollable.is-open[b-gl3pgh3q1m] {
        transform: translateX(0);
    }

    .navbar-toggler-btn[b-gl3pgh3q1m] {
        display: flex;
    }
}

@media (min-width: 641px) {
    .navbar-toggler-btn[b-gl3pgh3q1m] {
        display: none;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .nav-link[b-gl3pgh3q1m],
    .theme-toggle[b-gl3pgh3q1m],
    .navbar-brand[b-gl3pgh3q1m],
    .navbar-toggler-btn[b-gl3pgh3q1m],
    .nav-scrollable[b-gl3pgh3q1m] {
        transition: none;
    }

    .mobile-nav-backdrop[b-gl3pgh3q1m] { animation: none; }
}

/* ============================================
   FOCUS STYLES
   ============================================ */

.nav-link:focus-visible[b-gl3pgh3q1m],
.theme-toggle:focus-visible[b-gl3pgh3q1m],
.navbar-toggler-btn:focus-visible[b-gl3pgh3q1m] {
    outline: 2px solid rgba(99, 102, 241, 0.8);
    outline-offset: 2px;
}

/* ============================================
   UTILITIES
   ============================================ */

.mt-auto[b-gl3pgh3q1m] {
    margin-top: auto !important;
}
