@import '_content/BlazorColorPicker/BlazorColorPicker.bundle.scp.css';

/* /Pages/Components/AdminAiChat.razor.rz.scp.css */
/* Scoped overrides kept minimal — global theme in wwwroot/css/admin-ai.css */
.admin-ai-root[b-2afd0stlp8] {
    left: 1.25rem !important;
    right: auto !important;
}
/* /Shared/MainLayout.razor.rz.scp.css */
/* Main layout – Ynex compatible (column only; never flex-row on .page) */
.page[b-i4w59o7va3] {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    justify-content: flex-start;
}

.page .main-content.app-content[b-i4w59o7va3],
.page .app-content[b-i4w59o7va3] {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
}

/* Legacy Blazor template leftovers – unused with Ynex sidebar */
.sidebar[b-i4w59o7va3] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    padding: 6px 14px;
    z-index: 9999;
    transition: all 0.5s ease;
}

.top-row[b-i4w59o7va3] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row[b-i4w59o7va3]  a,
.top-row .btn-link[b-i4w59o7va3] {
    white-space: nowrap;
    margin-left: 1.5rem;
}

.top-row a:first-child[b-i4w59o7va3] {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-i4w59o7va3] {
        display: none;
    }

    .top-row.auth[b-i4w59o7va3] {
        justify-content: space-between;
    }

    .top-row a[b-i4w59o7va3],
    .top-row .btn-link[b-i4w59o7va3] {
        margin-left: 0;
    }
}
/* /Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-72fuzj6kkq] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-72fuzj6kkq] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-72fuzj6kkq] {
    font-size: 1.1rem;
}

.oi[b-72fuzj6kkq] {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.nav-item[b-72fuzj6kkq] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-72fuzj6kkq] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-72fuzj6kkq] {
        padding-bottom: 1rem;
    }

    .nav-item[b-72fuzj6kkq]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-72fuzj6kkq]  a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.nav-item[b-72fuzj6kkq]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

/* Scrollbar styling for navigation menu */
.main-sidebar[b-72fuzj6kkq],
#sidebar-scroll[b-72fuzj6kkq],
.sidebar-scroll[b-72fuzj6kkq] {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: calc(100vh - 3.75rem) !important;
    height: calc(100vh - 3.75rem) !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 155, 155, 0.5) transparent;
}

/* Webkit browsers (Chrome, Safari, Edge) scrollbar styling */
.main-sidebar[b-72fuzj6kkq]::-webkit-scrollbar,
#sidebar-scroll[b-72fuzj6kkq]::-webkit-scrollbar,
.sidebar-scroll[b-72fuzj6kkq]::-webkit-scrollbar {
    width: 8px;
}

.main-sidebar[b-72fuzj6kkq]::-webkit-scrollbar-track,
#sidebar-scroll[b-72fuzj6kkq]::-webkit-scrollbar-track,
.sidebar-scroll[b-72fuzj6kkq]::-webkit-scrollbar-track {
    background: transparent;
}

.main-sidebar[b-72fuzj6kkq]::-webkit-scrollbar-thumb,
#sidebar-scroll[b-72fuzj6kkq]::-webkit-scrollbar-thumb,
.sidebar-scroll[b-72fuzj6kkq]::-webkit-scrollbar-thumb {
    background-color: rgba(155, 155, 155, 0.5);
    border-radius: 4px;
}

.main-sidebar[b-72fuzj6kkq]::-webkit-scrollbar-thumb:hover,
#sidebar-scroll[b-72fuzj6kkq]::-webkit-scrollbar-thumb:hover,
.sidebar-scroll[b-72fuzj6kkq]::-webkit-scrollbar-thumb:hover {
    background-color: rgba(155, 155, 155, 0.7);
}

/* Ensure submenu doesn't have its own scrollbar - let sidebar handle scrolling */
[b-72fuzj6kkq] .slide-menu {
    max-height: none !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
}

/* Ensure the main sidebar container allows content to flow naturally */
.main-menu-container[b-72fuzj6kkq] {
    overflow-y: visible !important;
    overflow-x: hidden !important;
}

/* Make sure the sidebar itself handles overflow when sub-menus are expanded */
.app-sidebar .main-sidebar[b-72fuzj6kkq],
.app-sidebar #sidebar-scroll[b-72fuzj6kkq],
.app-sidebar .sidebar-scroll[b-72fuzj6kkq] {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

@media (min-width: 641px) {
    .navbar-toggler[b-72fuzj6kkq] {
        display: none;
    }

    .collapse[b-72fuzj6kkq] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    
    .nav-scrollable[b-72fuzj6kkq] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
