/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ============================================
   MAIN LAYOUT - COMPONENT STYLES
   Primary layout container and structure
   ============================================ */

/* ============================================
   BODY AND FONT STYLES
   Global typography
   ============================================ */

body[b-gkt4w05z47] {
    font-family: 'Inter', 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================
   GRAIN TEXTURE EFFECT
   Subtle texture overlay
   ============================================ */

.grain[b-gkt4w05z47] {
    position: relative;
}

.grain[b-gkt4w05z47]:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="100" height="100" filter="url(%23n)" opacity="0.07"/></svg>');
    /* Removed mix-blend-mode: soft-light to prevent stacking context isolation that causes menu dropdowns to clip behind page content */
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================
   LOGO MARK
   Brand logo styling
   ============================================ */

.logo-mark[b-gkt4w05z47] {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2E4E3F, #8C7C6B);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 30px rgba(46, 78, 63, 0.35);
}

/* ============================================
   PAGE CONTAINER
   Root page layout structure
   ============================================ */

.page[b-gkt4w05z47] {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* ============================================
   LAYOUT CONTAINER
   Main content container (AppBar layout)
   ============================================ */

.layout-container-appbar[b-gkt4w05z47] {
    display: flex;
    flex: 1;
    overflow: visible;
    flex-direction: column;
}

/* ============================================
   MAIN CONTENT AREA
   Primary content display area (AppBar layout)
   ============================================ */

main.main-content-appbar[b-gkt4w05z47] {
    flex: 1;
    width: 100%;
    /* Removed overflow-y: auto to allow Syncfusion popups with position: fixed to escape properly
       Overflow handling moved to .main-scroll-container */
    overflow: visible;
}

/* Scroll container - handles overflow so fixed popups can escape */
.main-scroll-container[b-gkt4w05z47] {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ============================================
   LEGACY LAYOUT SUPPORT
   Keep old layout styles for backward compatibility
   ============================================ */

.layout-container[b-gkt4w05z47] {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ============================================
   MAIN CONTENT AREA
   Primary content display area (Legacy/Sidebar layout)
   ============================================ */

/* Only apply overflow to main elements NOT using the AppBar layout */
main:not(.main-content-appbar)[b-gkt4w05z47] {
    flex: 1;
    overflow-y: auto;
}

.main-content[b-gkt4w05z47] {
    flex: 1;
    width: 100%;
}

/* ============================================
   SIDEBAR
   Navigation sidebar styles
   ============================================ */

.sidebar[b-gkt4w05z47] {
    position: relative;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   Mobile layout (< 641px)
   Note: Aligned with Tailwind's sm: breakpoint (640px)
   ============================================ */

@media (max-width: 640px) {
    .layout-container[b-gkt4w05z47] {
        flex-direction: column;
    }
    
    .sidebar[b-gkt4w05z47] {
        width: 100%;
        min-height: 0;
        height: 0;
        overflow: hidden;
        position: relative;
    }
    
    .main-content[b-gkt4w05z47] {
        padding-top: 0;
    }
}

/* ============================================
   RESPONSIVE DESIGN - DESKTOP
   Desktop layout (>= 641px)
   ============================================ */

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

    .sidebar[b-gkt4w05z47] {
        width: 280px;
        height: calc(100vh - 50px);
        position: relative;
        flex-shrink: 0;
    }
}

/* ============================================
   ERROR UI
   Blazor error notification banner
   ============================================ */

#blazor-error-ui[b-gkt4w05z47] {
    background: #dc3545;
    color: #fff;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: var(--z-header);
}

#blazor-error-ui .dismiss[b-gkt4w05z47] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Shared/MobileMenu.razor.rz.scp.css */
/* ============================================
   MOBILE MENU STYLES
   Slide-out mobile navigation menu
   ============================================ */

/* Mobile Menu Overlay - Dark background that covers the page */
.mobile-menu-overlay[b-jjrgtas3m7] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: var(--z-modal); /* Below menu but above other content */
}

.mobile-menu-overlay.active[b-jjrgtas3m7] {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Panel - Slides in from the left */
.mobile-menu[b-jjrgtas3m7] {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background-color: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: calc(var(--z-modal) + 1); /* Above overlay */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

[data-theme="dark"] .mobile-menu[b-jjrgtas3m7] {
    background-color: #1f2937;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
}

.mobile-menu.open[b-jjrgtas3m7] {
    transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header[b-jjrgtas3m7] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

[data-theme="dark"] .mobile-menu-header[b-jjrgtas3m7] {
    border-bottom-color: #374151;
    background-color: #111827;
}

.mobile-menu-title[b-jjrgtas3m7] {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

[data-theme="dark"] .mobile-menu-title[b-jjrgtas3m7] {
    color: #f3f4f6;
}

.mobile-menu-close[b-jjrgtas3m7] {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu-close:hover[b-jjrgtas3m7] {
    background-color: rgba(0, 0, 0, 0.05);
    color: #1f2937;
}

[data-theme="dark"] .mobile-menu-close[b-jjrgtas3m7] {
    color: #9ca3af;
}

[data-theme="dark"] .mobile-menu-close:hover[b-jjrgtas3m7] {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
}

/* Mobile Menu Content - Scrollable area */
.mobile-menu-content[b-jjrgtas3m7] {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

/* Mobile Menu Profile Section */
.mobile-menu-profile[b-jjrgtas3m7] {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background-color: #f9fafb;
    margin: 0 0.75rem 0.5rem;
    border-radius: 0.5rem;
}

[data-theme="dark"] .mobile-menu-profile[b-jjrgtas3m7] {
    background-color: #374151;
}

.mobile-menu-avatar[b-jjrgtas3m7] {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A6F5C 0%, #8C7C6B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mobile-menu-avatar img[b-jjrgtas3m7] {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-menu-user-info[b-jjrgtas3m7] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.mobile-menu-username[b-jjrgtas3m7] {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .mobile-menu-username[b-jjrgtas3m7] {
    color: #f3f4f6;
}

.mobile-menu-role[b-jjrgtas3m7] {
    font-size: 0.75rem;
    color: #6b7280;
    background-color: #e5e7eb;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    width: fit-content;
}

[data-theme="dark"] .mobile-menu-role[b-jjrgtas3m7] {
    color: #9ca3af;
    background-color: #4b5563;
}

/* Mobile Menu Divider */
.mobile-menu-divider[b-jjrgtas3m7] {
    height: 1px;
    background-color: #e5e7eb;
    margin: 0.5rem 0;
}

[data-theme="dark"] .mobile-menu-divider[b-jjrgtas3m7] {
    background-color: #374151;
}

/* Mobile Menu Navigation */
.mobile-menu-nav[b-jjrgtas3m7] {
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Mobile Menu Section (for grouped items) */
.mobile-menu-section[b-jjrgtas3m7] {
    margin-bottom: 0.5rem;
}

.mobile-menu-section-title[b-jjrgtas3m7] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .mobile-menu-section-title[b-jjrgtas3m7] {
    color: #9ca3af;
}

.mobile-menu-section-title > span[class^="ti"][b-jjrgtas3m7] {
    font-size: 1rem;
}

/* Mobile Menu Item */
.mobile-menu-item[b-jjrgtas3m7] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #1f2937;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

[data-theme="dark"] .mobile-menu-item[b-jjrgtas3m7] {
    color: #f3f4f6;
}

.mobile-menu-item:hover[b-jjrgtas3m7] {
    background-color: rgba(140, 124, 107, 0.1);
    color: #8C7C6B;
    border-left-color: #8C7C6B;
}

[data-theme="dark"] .mobile-menu-item:hover[b-jjrgtas3m7] {
    background-color: rgba(140, 124, 107, 0.2);
    color: #8C7C6B;
}

.mobile-menu-item > span[class^="ti"][b-jjrgtas3m7] {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Mobile Menu Actions */
.mobile-menu-actions[b-jjrgtas3m7] {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.mobile-menu-action[b-jjrgtas3m7] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #1f2937;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

[data-theme="dark"] .mobile-menu-action[b-jjrgtas3m7] {
    color: #f3f4f6;
}

.mobile-menu-action:hover[b-jjrgtas3m7] {
    background-color: rgba(140, 124, 107, 0.1);
    color: #8C7C6B;
    border-left-color: #8C7C6B;
}

[data-theme="dark"] .mobile-menu-action:hover[b-jjrgtas3m7] {
    background-color: rgba(140, 124, 107, 0.2);
}

.mobile-menu-action > span[class^="ti"][b-jjrgtas3m7] {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Mobile Menu Auth Buttons */
.mobile-menu-auth[b-jjrgtas3m7] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
}

.mobile-menu-btn[b-jjrgtas3m7] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.mobile-menu-btn-secondary[b-jjrgtas3m7] {
    background-color: transparent;
    color: #2E4E3F;
    border: 1px solid #d1d5db;
}

.mobile-menu-btn-secondary:hover[b-jjrgtas3m7] {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

[data-theme="dark"] .mobile-menu-btn-secondary[b-jjrgtas3m7] {
    color: #f3f4f6;
    border-color: #4b5563;
}

[data-theme="dark"] .mobile-menu-btn-secondary:hover[b-jjrgtas3m7] {
    background-color: #374151;
    border-color: #6b7280;
}

.mobile-menu-btn-primary[b-jjrgtas3m7] {
    background: linear-gradient(135deg, #4A6F5C 0%, #8C7C6B 100%);
    color: white;
    border: none;
}

.mobile-menu-btn-primary:hover[b-jjrgtas3m7] {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Logout Button */
.mobile-menu-logout[b-jjrgtas3m7] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    width: 100%;
    color: #dc2626;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-left: 3px solid transparent;
}

[data-theme="dark"] .mobile-menu-logout[b-jjrgtas3m7] {
    color: #f87171;
}

.mobile-menu-logout:hover[b-jjrgtas3m7] {
    background-color: rgba(220, 38, 38, 0.1);
    border-left-color: #dc2626;
}

[data-theme="dark"] .mobile-menu-logout:hover[b-jjrgtas3m7] {
    background-color: rgba(248, 113, 113, 0.1);
    border-left-color: #f87171;
}

.mobile-menu-logout > span[class^="ti"][b-jjrgtas3m7] {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Scrollbar styling for mobile menu */
.mobile-menu-content[b-jjrgtas3m7]::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu-content[b-jjrgtas3m7]::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-menu-content[b-jjrgtas3m7]::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

[data-theme="dark"] .mobile-menu-content[b-jjrgtas3m7]::-webkit-scrollbar-thumb {
    background: #4b5563;
}

.mobile-menu-content[b-jjrgtas3m7]::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

[data-theme="dark"] .mobile-menu-content[b-jjrgtas3m7]::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}
