/* Custom Content Canvas Layout Wrapper Alignment */
.dashboard-central-wrapper {
    max-width: 1140px;
    margin: 40px auto 100px auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Color-Coded Metrics Chart Legend Block */
.chart-legend-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 25px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

/* Explicit custom hex codes mapped from your UI palette configuration */
.blue-dot { background-color: #3b82f6; }
.purple-dot { background-color: #a855f7; }
.orange-dot { background-color: #f59e0b; }

.legend-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4a5568;
    letter-spacing: 0.5px;
}

/* Outer Bounding White Panel Surface Card definition */
.chart-card-panel {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 35px 30px 25px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 50px;
    position: relative;
}

/* Left vertical chart title definition text element */
.y-axis-label {
    position: absolute;
    left: 12px;
    top: 42%;
    transform: rotate(-90deg);
    transform-origin: left center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #4a5568;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

/* Main Vector Chart Box Plot Area Layout */
.chart-workspace-area {
    position: relative;
    width: 100%;
    height: 300px;
    padding-left: 25px;
    box-sizing: border-box;
}

.performance-vector-chart {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Left Sidebar-Aligned Numeric Metric Grid Markers */
.y-axis-values {
    position: absolute;
    left: 0;
    top: -4px;
    height: 108%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
    color: #4a5568;
    text-align: right;
    width: 18px;
}

/* Timeline X-Axis Grid Markers styling rules */
.x-axis-timeline-row {
    display: flex;
    justify-content: space-between;
    padding-left: 28px;
    margin-top: 16px;
}

.x-axis-timeline-row span {
    font-size: 0.7rem;
    font-weight: 700;
    color: #4a5568;
    letter-spacing: 0.3px;
    width: 60px;
    text-align: center;
}

/* Two-Column Split Data Table Info Layout Matrix */
.dashboard-details-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    padding: 0 10px;
}

.dashboard-details-grid h2 {
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 22px;
    letter-spacing: 0.3px;
}

/* Table Row Entry Elements spacing rules formatting */
.data-table-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.metric-label {
    color: #718096;
}

.metric-value {
    color: #2d3748;
    min-width: 30px;
    text-align: right;
}

/* Rating Panel Layout configuration rules */
.star-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
}

.star-icon {
    width: 42px;
    height: 42px;
}

/* Star color profiles matching standard layout specifications */
.star-icon.solid {
    fill: #6b7280;
}

.star-icon.outline {
    fill: none;
    stroke: #6b7280;
    stroke-width: 1.5;
}

/* Stacked Partial-Fill Star Node bounding layout rules */
.half-star-wrapper {
    position: relative;
    width: 42px;
    height: 42px;
}

.star-icon.solid-half {
    position: absolute;
    top: 0;
    left: 0;
    fill: #6b7280;
    clip-path: inset(0 50% 0 0);
}

.star-icon.outline-half {
    position: absolute;
    top: 0;
    left: 0;
    fill: none;
    stroke: #6b7280;
    stroke-width: 1.5;
}

/* Mobile Responsive Adaptation Breaks layout rules */
@media(max-width: 820px) {
    .dashboard-details-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    
    .chart-legend-container {
        flex-wrap: wrap;
        gap: 16px 24px;
    }
    
    .x-axis-timeline-row span {
        font-size: 0.6rem;
    }
}
/* ── Side-drawer chrome (case/student detail drawers) ──────────────────────
   Scrollbar + resize-handle styling for the slide-in panels used by
   /dashboard (case detail) and /cohorts (student detail). Previously these
   rules only existed in the unlinked old_style.css, so the drag handle was
   invisible. */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f1f5f9; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

#resizer {
    width: 4px;
    cursor: col-resize;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
}
#resizer:hover, .resizing #resizer { background: rgba(43, 108, 176, 0.35); }
.resizing { user-select: none; cursor: col-resize; }
