/* Updated Dashboard Layout Styles */
/* Header overrides for white background */
.site-header {
    background-color: var(--bg-white) !important;
    color: var(--text-primary) !important;
}


:root {
    --primary-hue: 220;
    --primary-saturation: 60%;
    --primary-lightness: 55%;
    --bg-white: #ffffff;
    --bg-dark: #f8f9fa; /* light gray for body */
    --text-primary: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --radius-md: 12px;
    --transition: all 0.3s ease;
}

.dashboard-wrapper {
    display: flex;
    height: calc(100vh - 72px); /* fill viewport height below header */
    overflow: hidden;
    background: var(--bg-white);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
}

.settings-pane {
    flex: 0 0 260px; /* fixed width */
    max-width: 260px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    overflow-y: auto; /* independent vertical scroll */
    padding: 24px;
}

.main-dashboard {
    flex: 1 1 auto;
    overflow-y: auto; /* independent vertical scroll */
    padding: 32px;
    background: var(--bg-white);
}

/* Scrollbar styling – works in WebKit/Blink */
.settings-pane::-webkit-scrollbar,
.main-dashboard::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.settings-pane::-webkit-scrollbar-thumb,
.main-dashboard::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.15);
    border-radius: 4px;
}

.settings-pane::-webkit-scrollbar-track,
.main-dashboard::-webkit-scrollbar-track {
    background: transparent;
}

/* Responsive: stack vertically on narrow screens */
@media (max-width: 768px) {
    .dashboard-wrapper {
        flex-direction: column;
    }
    .settings-pane {
        flex: none;
        width: 100%;
        max-width: none;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        height: auto;
    }
    .main-dashboard {
        height: auto;
    }
}
