/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-a9cn9v1ewl] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-a9cn9v1ewl] {
    flex: 1;
}

.sidebar[b-a9cn9v1ewl] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-a9cn9v1ewl] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-a9cn9v1ewl]  a, .top-row[b-a9cn9v1ewl]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-a9cn9v1ewl]  a:hover, .top-row[b-a9cn9v1ewl]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-a9cn9v1ewl]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-a9cn9v1ewl] {
        justify-content: space-between;
    }

    .top-row[b-a9cn9v1ewl]  a, .top-row[b-a9cn9v1ewl]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-a9cn9v1ewl] {
        flex-direction: row;
    }

    .sidebar[b-a9cn9v1ewl] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-a9cn9v1ewl] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-a9cn9v1ewl]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-a9cn9v1ewl], article[b-a9cn9v1ewl] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-f67z8oooly] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-f67z8oooly] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-f67z8oooly] {
    font-size: 1.1rem;
}

.bi[b-f67z8oooly] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-f67z8oooly] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-f67z8oooly] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-f67z8oooly] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-f67z8oooly] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-f67z8oooly] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-f67z8oooly] {
        padding-bottom: 1rem;
    }

    .nav-item[b-f67z8oooly]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-f67z8oooly]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-f67z8oooly]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-f67z8oooly] {
        display: none;
    }

    .collapse[b-f67z8oooly] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-f67z8oooly] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/Dashboards/DashboardDesigner.razor.rz.scp.css */
/* ====================================
   DASHBOARD DESIGNER STYLES
   Modern, Professional BI Tool Design
   ==================================== */

/* === MAIN CONTAINER === */
.designer-container[b-te6goqeec8] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #f0f2f5;
    overflow: hidden;
}

/* === HEADER TOOLBAR === */
.designer-header[b-te6goqeec8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
    z-index: 1000;
}

.header-left[b-te6goqeec8],
.header-center[b-te6goqeec8],
.header-right[b-te6goqeec8] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left[b-te6goqeec8] {
    flex: 1;
}

.header-center[b-te6goqeec8] {
    flex: 2;
    justify-content: center;
}

.header-right[b-te6goqeec8] {
    flex: 1;
    justify-content: flex-end;
}

.dashboard-name[b-te6goqeec8] {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.dashboard-name:hover[b-te6goqeec8] {
    background: rgba(255,255,255,0.1);
}

.dashboard-name .edit-icon[b-te6goqeec8] {
    opacity: 0;
    transition: opacity 0.2s;
}

.dashboard-name:hover .edit-icon[b-te6goqeec8] {
    opacity: 0.7;
}

.dashboard-name-input[b-te6goqeec8] {
    max-width: 200px;
}

[b-te6goqeec8] .dashboard-name-input input {
    color: white !important;
    font-size: 1.25rem;
    font-weight: 500;
}

.columns-selector[b-te6goqeec8] {
    min-width: 100px;
}

[b-te6goqeec8] .columns-selector .mud-input {
    color: white !important;
}

/* === MAIN BODY === */
.designer-body[b-te6goqeec8] {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* === LEFT PANEL === */
.designer-left-panel[b-te6goqeec8] {
    width: 280px;
    background: white;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, min-width 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.designer-left-panel.collapsed[b-te6goqeec8] {
    width: 40px;
    min-width: 40px;
}

.designer-left-panel.collapsed .panel-content[b-te6goqeec8] {
    display: none;
}

/* === RIGHT PANEL === */
.designer-right-panel[b-te6goqeec8] {
    width: 320px;
    background: white;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, min-width 0.3s ease;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.designer-right-panel.collapsed[b-te6goqeec8] {
    width: 40px;
    min-width: 40px;
}

.designer-right-panel.collapsed .panel-content[b-te6goqeec8] {
    display: none;
}

/* === PANEL TOGGLE === */
.panel-toggle[b-te6goqeec8] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 48px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.panel-toggle:hover[b-te6goqeec8] {
    background: #e0e0e0;
}

.designer-left-panel .panel-toggle[b-te6goqeec8] {
    right: -12px;
}

.designer-right-panel .panel-toggle[b-te6goqeec8] {
    left: -12px;
}

/* === PANEL CONTENT === */
.panel-content[b-te6goqeec8] {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.panel-title[b-te6goqeec8] {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
}

/* === WIDGET PALETTE === */
.widget-palette[b-te6goqeec8] {
    margin-bottom: 16px;
}

.palette-category[b-te6goqeec8] {
    margin-bottom: 4px;
}

[b-te6goqeec8] .palette-category .mud-expand-panel {
    background: transparent !important;
    box-shadow: none !important;
}

[b-te6goqeec8] .palette-category .mud-expand-panel-header {
    padding: 8px 12px !important;
    min-height: 40px !important;
    background: #f8f8f8 !important;
    border-radius: 6px !important;
    margin-bottom: 4px;
}

.palette-items[b-te6goqeec8] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px 0;
}

.palette-item[b-te6goqeec8] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: #f8f8f8;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: grab;
    transition: all 0.2s;
    user-select: none;
}

.palette-item:hover[b-te6goqeec8] {
    background: #e3f2fd;
    border-color: #90caf9;
    transform: translateY(-2px);
}

.palette-item:active[b-te6goqeec8] {
    cursor: grabbing;
    transform: scale(0.95);
}

.palette-item-icon[b-te6goqeec8] {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.palette-item-label[b-te6goqeec8] {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    line-height: 1.2;
}

/* === ELEMENTS LIST === */
.elements-list[b-te6goqeec8] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.element-item[b-te6goqeec8] {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f8f8;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.element-item:hover[b-te6goqeec8] {
    background: #e8e8e8;
}

.element-item.selected[b-te6goqeec8] {
    background: #e3f2fd;
    border-color: var(--color-primary);
}

.element-name[b-te6goqeec8] {
    flex: 1;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.element-actions[b-te6goqeec8] {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.15s;
}

.element-item:hover .element-actions[b-te6goqeec8] {
    opacity: 1;
}

/* === CANVAS WRAPPER === */
.designer-canvas-wrapper[b-te6goqeec8] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #e8eaed;
}

.canvas-loading[b-te6goqeec8] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* === PAGE TABS === */
.page-tabs[b-te6goqeec8] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
}

.page-tab[b-te6goqeec8] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.15s;
    white-space: nowrap;
}

.page-tab:hover[b-te6goqeec8] {
    background: #e8e8e8;
}

.page-tab.active[b-te6goqeec8] {
    background: white;
    border-bottom-color: white;
    margin-bottom: -1px;
    font-weight: 500;
}

.page-tab.add-tab[b-te6goqeec8] {
    background: transparent;
    border: 2px dashed #ccc;
    padding: 8px 12px;
}

.page-tab.add-tab:hover[b-te6goqeec8] {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* === DESIGN CANVAS === */
.design-canvas[b-te6goqeec8] {
    flex: 1;
    overflow: auto;
    padding: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.design-canvas.design-mode[b-te6goqeec8] {
    background:
        linear-gradient(90deg, #e0e0e0 1px, transparent 1px),
        linear-gradient(#e0e0e0 1px, transparent 1px),
        #f5f5f5;
    background-size: 20px 20px;
}

.design-canvas.preview-mode[b-te6goqeec8] {
    background: #f0f2f5;
}

.design-canvas.responsive-mode[b-te6goqeec8] {
    background: #2a2a35;
    display: flex;
    justify-content: center;
}

/* === GRID OVERLAY === */
.grid-overlay[b-te6goqeec8] {
    position: absolute;
    inset: 24px;
    display: grid;
    grid-template-columns: repeat(var(--grid-columns, 4), 1fr);
    gap: 16px;
    pointer-events: none;
    z-index: 1;
}

.grid-line[b-te6goqeec8] {
    border: 1px dashed rgba(25, 118, 210, 0.2);
    border-radius: 8px;
    min-height: 100px;
}

/* === DROP ZONE INDICATOR === */
.drop-zone-indicator[b-te6goqeec8] {
    position: absolute;
    inset: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 3px dashed #ccc;
    border-radius: 16px;
    background: rgba(255,255,255,0.9);
    color: #999;
    opacity: 0;
    transition: all 0.2s;
    pointer-events: none;
    z-index: 5;
}

.drop-zone-indicator.active[b-te6goqeec8] {
    opacity: 1;
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(25, 118, 210, 0.05);
}

/* === CANVAS FOOTER === */
.canvas-footer[b-te6goqeec8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

/* === PREVIEW CONTAINER === */
.preview-container[b-te6goqeec8] {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    background: #f5f5f5;
    min-height: 100%;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 1200px) {
    .designer-left-panel[b-te6goqeec8] {
        width: 240px;
    }

    .designer-right-panel[b-te6goqeec8] {
        width: 280px;
    }

    .header-center[b-te6goqeec8] {
        flex: 1;
    }
}

@media (max-width: 960px) {
    .designer-left-panel[b-te6goqeec8],
    .designer-right-panel[b-te6goqeec8] {
        position: absolute;
        z-index: 100;
        height: calc(100% - 56px);
        top: 56px;
    }

    .designer-left-panel[b-te6goqeec8] {
        left: 0;
    }

    .designer-right-panel[b-te6goqeec8] {
        right: 0;
    }

    .designer-left-panel.collapsed[b-te6goqeec8],
    .designer-right-panel.collapsed[b-te6goqeec8] {
        width: 0;
        min-width: 0;
    }

    .palette-items[b-te6goqeec8] {
        grid-template-columns: 1fr;
    }
}

/* === DARK MODE SUPPORT — responds to app toggle via data-theme attribute === */
:global([data-theme="dark"]) .designer-container[b-te6goqeec8] {
    background: #1a1a1a;
}

:global([data-theme="dark"]) .designer-left-panel[b-te6goqeec8],
:global([data-theme="dark"]) .designer-right-panel[b-te6goqeec8] {
    background: #2a2a2a;
    border-color: #404040;
}

:global([data-theme="dark"]) .panel-toggle[b-te6goqeec8] {
    background: #404040;
}

:global([data-theme="dark"]) .panel-toggle:hover[b-te6goqeec8] {
    background: #505050;
}

:global([data-theme="dark"]) .panel-title[b-te6goqeec8] {
    color: #e0e0e0;
}

:global([data-theme="dark"]) .palette-item[b-te6goqeec8],
:global([data-theme="dark"]) .element-item[b-te6goqeec8] {
    background: #353535;
}

:global([data-theme="dark"]) .palette-item:hover[b-te6goqeec8] {
    background: #1e3a5f;
    border-color: var(--color-primary);
}

:global([data-theme="dark"]) .element-item:hover[b-te6goqeec8] {
    background: #404040;
}

:global([data-theme="dark"]) .page-tabs[b-te6goqeec8] {
    background: #2a2a2a;
    border-color: #404040;
}

:global([data-theme="dark"]) .page-tab[b-te6goqeec8] {
    background: #353535;
    border-color: #404040;
    color: #e0e0e0;
}

:global([data-theme="dark"]) .page-tab.active[b-te6goqeec8] {
    background: #2a2a2a;
}

:global([data-theme="dark"]) .canvas-footer[b-te6goqeec8] {
    background: #2a2a2a;
    border-color: #404040;
}

:global([data-theme="dark"]) .designer-canvas-wrapper[b-te6goqeec8] {
    background: #1a1a1a;
}

:global([data-theme="dark"]) .design-canvas.design-mode[b-te6goqeec8] {
    background:
        linear-gradient(90deg, #404040 1px, transparent 1px),
        linear-gradient(#404040 1px, transparent 1px),
        #1a1a1a;
    background-size: 20px 20px;
}

:global([data-theme="dark"]) .design-canvas.preview-mode[b-te6goqeec8] {
    background: #1a1a1a;
}

:global([data-theme="dark"]) .preview-container[b-te6goqeec8] {
    background: #121212;
}

:global([data-theme="dark"]) .palette-item-label[b-te6goqeec8] {
    color: #b0b0b0;
}

:global([data-theme="dark"]) .drop-zone-indicator[b-te6goqeec8] {
    background: rgba(30, 30, 46, 0.9);
    color: #999;
}

:global([data-theme="dark"])[b-te6goqeec8]  .palette-category .mud-expand-panel-header {
    background: #353535 !important;
}

:global([data-theme="dark"]) .element-item.selected[b-te6goqeec8] {
    background: #1e3a5f;
}

/* === ANIMATIONS === */
@keyframes pulse-b-te6goqeec8 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.saving-indicator[b-te6goqeec8] {
    animation: pulse-b-te6goqeec8 1.5s infinite;
}

/* === SCROLLBAR STYLING === */
.panel-content[b-te6goqeec8]::-webkit-scrollbar,
.design-canvas[b-te6goqeec8]::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.panel-content[b-te6goqeec8]::-webkit-scrollbar-track,
.design-canvas[b-te6goqeec8]::-webkit-scrollbar-track {
    background: transparent;
}

.panel-content[b-te6goqeec8]::-webkit-scrollbar-thumb,
.design-canvas[b-te6goqeec8]::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.panel-content[b-te6goqeec8]::-webkit-scrollbar-thumb:hover,
.design-canvas[b-te6goqeec8]::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
