﻿/* ═══════════════════════════════════════════════════════════════════
   DASHBOARD.CSS — Admin & Shared Dashboard Stilleri
   App.razor'da timetable.css'den SONRA ekle:
   <link href="css/dashboard.css" rel="stylesheet" />
═══════════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────────────── */
.adm-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-left: 4px solid var(--amber);
    border-radius: var(--r-xl);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: var(--shadow-card);
}

.dash-shell.dark .adm-hero {
    background: var(--dash-dark-surface);
    border-color: var(--dash-dark-border);
    border-left-color: var(--amber);
}

.adm-hero-greeting {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink-green);
    letter-spacing: -0.03em;
}

.dash-shell.dark .adm-hero-greeting {
    color: #e08a4f;
}

.adm-hero-meta {
    font-size: 12px;
    color: var(--dash-text-2);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.adm-hero-dot {
    color: var(--amber);
    opacity: .6;
}

.adm-hero-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--r-full);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.adm-hero-badge--success {
    background: var(--c-success-light);
    color: var(--c-success);
    border: 1px solid rgba(13,92,47,0.15);
}

.adm-hero-badge--info {
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    border: 1px solid rgba(20,52,43,0.15);
}

.adm-hero-badge--warning {
    background: var(--c-warning-light);
    color: var(--c-warning);
    border: 1px solid rgba(217,154,60,0.20);
}

.adm-hero-badge--neutral {
    background: var(--bg-soft);
    color: var(--muted);
    border: 1px solid rgba(26,29,26,0.10);
}

/* ── Quick Menu ───────────────────────────────────────────────────── */
.adm-quick-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.adm-qbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--r-full);
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
    color: var(--dash-text-2);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--t-fast);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}

    .adm-qbtn:hover {
        background: #fff3e8;
        border-color: rgba(196,98,45,0.30);
        color: var(--amber);
        box-shadow: 0 2px 8px rgba(196,98,45,0.12);
        transform: translateY(-1px);
    }

.dash-shell.dark .adm-qbtn {
    background: var(--dash-dark-surface);
    border-color: var(--dash-dark-border);
    color: var(--dash-dark-text-2);
}

    .dash-shell.dark .adm-qbtn:hover {
        background: rgba(196,98,45,0.12);
        border-color: rgba(196,98,45,0.30);
        color: #e08a4f;
    }

/* ── KPI Kartları ─────────────────────────────────────────────────── */
.adm-kpi-card {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-top: 3px solid transparent;
    border-radius: var(--r-xl);
    padding: 18px 16px 14px;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--t-base), transform var(--t-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

    .adm-kpi-card:hover {
        box-shadow: var(--shadow-card-hover);
        transform: translateY(-2px);
    }

.dash-shell.dark .adm-kpi-card {
    background: var(--dash-dark-surface);
    border-color: var(--dash-dark-border);
}

.adm-kpi-card--success { border-top-color: #0d5c2f; }
.adm-kpi-card--warning { border-top-color: var(--gold); }
.adm-kpi-card--danger  { border-top-color: var(--clay); }
.adm-kpi-card--info    { border-top-color: var(--ink-green); }
.adm-kpi-card--purple  { border-top-color: var(--amber); }

.adm-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.adm-kpi-card--success .adm-kpi-icon {
    background: var(--c-success-light);
    color: #0d5c2f;
}

.adm-kpi-card--warning .adm-kpi-icon {
    background: var(--c-warning-light);
    color: var(--gold);
}

.adm-kpi-card--danger .adm-kpi-icon {
    background: var(--c-error-light);
    color: var(--clay);
}

.adm-kpi-card--info .adm-kpi-icon {
    background: var(--brand-primary-light);
    color: var(--ink-green);
}

.adm-kpi-card--purple .adm-kpi-icon {
    background: var(--brand-secondary-light);
    color: var(--amber);
}

.dash-shell.dark .adm-kpi-card--success .adm-kpi-icon {
    background: rgba(13, 92, 47, 0.20);
    color: var(--sage);
}
.dash-shell.dark .adm-kpi-card--warning .adm-kpi-icon {
    background: rgba(217, 154, 60, 0.15);
    color: var(--gold);
}
.dash-shell.dark .adm-kpi-card--danger .adm-kpi-icon {
    background: rgba(181, 72, 46, 0.15);
    color: var(--clay);
}
.dash-shell.dark .adm-kpi-card--info .adm-kpi-icon {
    background: rgba(20, 52, 43, 0.25);
    color: #e08a4f;
}
.dash-shell.dark .adm-kpi-card--purple .adm-kpi-icon {
    background: rgba(196, 98, 45, 0.18);
    color: #e08a4f;
}

.adm-kpi-value {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 4px;
    font-family: var(--font);
}

.dash-shell.dark .adm-kpi-value {
    color: var(--dash-dark-text-1);
}

.adm-kpi-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.adm-kpi-delta {
    font-size: 11px;
    font-weight: 600;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid var(--dash-border-light);
}

.adm-kpi-delta--up    { color: #0d5c2f; }
.adm-kpi-delta--down  { color: var(--clay); }
.adm-kpi-delta--neutral { color: var(--faint); }

.adm-kpi-sparkline {
    margin-top: 10px;
    line-height: 0;
}

/* ── Card Header ──────────────────────────────────────────────────── */
.adm-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--dash-border-light);
}

.adm-card-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink-green);
    letter-spacing: -0.02em;
}

.dash-shell.dark .adm-card-title {
    color: #e08a4f;
}

.adm-card-subtitle {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
    font-weight: 500;
}

.adm-card-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--amber);
    text-decoration: none;
    white-space: nowrap;
    margin-left: 8px;
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: var(--r-full);
    border: 1px solid rgba(196,98,45,0.20);
    background: #fff3e8;
    transition: all var(--t-fast);
}

    .adm-card-link:hover {
        background: var(--amber);
        color: #fff;
        border-color: var(--amber);
    }

.dash-shell.dark .adm-card-link {
    background: rgba(196,98,45,0.12);
    border-color: rgba(196,98,45,0.25);
    color: #e08a4f;
}

    .dash-shell.dark .adm-card-link:hover {
        background: var(--amber);
        color: #fff;
    }

/* ── Bar Chart ────────────────────────────────────────────────────── */
.adm-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 130px;
    padding-bottom: 24px;
    position: relative;
}

.adm-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    cursor: pointer;
}

    .adm-bar-col:hover .adm-bar-tooltip {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .adm-bar-col:hover .adm-bar-fill {
        filter: brightness(0.92);
    }

.adm-bar-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--ink);
    color: var(--surface);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--r-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--t-fast);
    z-index: 10;
}

.adm-bar-fill {
    width: 100%;
    background: var(--bg-soft);
    border-radius: var(--r-xs) var(--r-xs) 0 0;
    border: 1px solid rgba(26,29,26,0.08);
    border-bottom: none;
    transition: height var(--t-smooth), filter var(--t-fast);
    min-height: 4px;
}

.adm-bar-fill--active {
    background: var(--amber);
    border-color: var(--clay);
}

.adm-bar-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--faint);
    font-weight: 600;
    white-space: nowrap;
}

/* ── Donut Legend ─────────────────────────────────────────────────── */
.adm-donut-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0 16px;
}

    .adm-donut-wrap .mud-chart-legend {
        display: none !important;
    }

.adm-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
}

.adm-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--dash-text-2);
    padding: 6px 10px;
    border-radius: var(--r-md);
    background: var(--bg-soft);
    border: 1px solid var(--dash-border-light);
}

.dash-shell.dark .adm-legend-item {
    background: var(--dash-dark-surface-2);
    border-color: var(--dash-dark-border);
}

.adm-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.adm-legend-val {
    margin-left: auto;
    font-weight: 800;
    color: var(--ink);
    font-size: 13px;
}

.dash-shell.dark .adm-legend-val {
    color: var(--dash-dark-text-1);
}

/* ── Kayıt Hunisi ─────────────────────────────────────────────────── */
.adm-funnel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adm-funnel-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.adm-funnel-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.adm-funnel-count {
    font-weight: 800;
    color: var(--ink);
    font-size: 13px;
}

.dash-shell.dark .adm-funnel-count {
    color: var(--dash-dark-text-1);
}

.adm-funnel-bar {
    height: 7px;
    background: var(--dash-border);
    border-radius: var(--r-full);
    overflow: hidden;
}

.adm-funnel-fill {
    height: 100%;
    border-radius: var(--r-full);
    transition: width var(--t-spring);
    min-width: 4px;
}

/* ── Geciken Taksitler ────────────────────────────────────────────── */
.adm-overdue-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adm-overdue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--dash-surface-2);
    border: 1px solid var(--dash-border-light);
    border-left: 3px solid transparent;
    border-radius: var(--r-lg);
    transition: all var(--t-fast);
    cursor: default;
}

    .adm-overdue-item:hover {
        background: #fff3e8;
        border-color: rgba(196,98,45,0.20);
        border-left-color: var(--amber);
        transform: translateX(2px);
    }

.dash-shell.dark .adm-overdue-item {
    background: var(--dash-dark-surface-2);
    border-color: var(--dash-dark-border);
}

    .dash-shell.dark .adm-overdue-item:hover {
        background: rgba(196,98,45,0.08);
        border-left-color: var(--amber);
    }

.adm-overdue-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.adm-overdue-dot--danger  { background: var(--clay); }
.adm-overdue-dot--warning { background: var(--gold); }

.adm-overdue-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-shell.dark .adm-overdue-name {
    color: var(--dash-dark-text-1);
}

.adm-overdue-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.adm-overdue-amount {
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
}

.dash-shell.dark .adm-overdue-amount {
    color: var(--dash-dark-text-1);
}

.adm-overdue-days {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--r-full);
}

.adm-overdue-days--danger {
    background: var(--c-error-light);
    color: var(--clay);
}

.adm-overdue-days--warning {
    background: var(--c-warning-light);
    color: var(--gold);
}

/* ── Sınıf Bazlı Bar (horizontal) ────────────────────────────────── */
.adm-grade-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.adm-grade-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.adm-grade-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    min-width: 70px;
    white-space: nowrap;
}

.adm-grade-bar-wrap {
    flex: 1;
    height: 8px;
    background: var(--bg-soft);
    border-radius: var(--r-full);
    overflow: hidden;
    border: 1px solid var(--dash-border-light);
}

.adm-grade-bar-fill {
    height: 100%;
    background: var(--ink-green);
    border-radius: var(--r-full);
    transition: width var(--t-spring);
    opacity: 0.70;
    min-width: 4px;
}

.adm-grade-count {
    font-size: 12px;
    font-weight: 800;
    color: var(--ink);
    min-width: 28px;
    text-align: right;
}

.dash-shell.dark .adm-grade-count {
    color: var(--dash-dark-text-1);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .adm-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .adm-bar-chart {
        height: 90px;
    }

    .adm-kpi-value {
        font-size: 18px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   TEACHER DASHBOARD
═══════════════════════════════════════════════════════════════════ */

/* ── Bugün Timeline ───────────────────────────────────────────────── */
.tch-today-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(26,29,26,0.10) transparent;
}

.tch-today-slot {
    flex-shrink: 0;
    min-width: 110px;
    max-width: 140px;
    background: var(--dash-surface-2);
    border: 1px solid var(--dash-border-light);
    border-top: 3px solid transparent;
    border-radius: var(--r-lg);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all var(--t-fast);
    box-shadow: var(--shadow-xs);
}

    .tch-today-slot:hover {
        box-shadow: var(--shadow-sm);
        transform: translateY(-1px);
    }

.tch-today-slot--now {
    background: #fff3e8;
    border-color: rgba(196,98,45,0.25);
    border-top-color: var(--amber);
    box-shadow: 0 4px 12px rgba(196,98,45,0.12);
}

.dash-shell.dark .tch-today-slot--now {
    background: rgba(196,98,45,0.10);
    border-color: rgba(196,98,45,0.30);
    border-top-color: var(--amber);
}

.tch-today-slot--done {
    opacity: .60;
    border-top-color: var(--sage);
}

.tch-today-time {
    font-size: 11px;
    color: var(--faint);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tch-today-slot--now .tch-today-time {
    color: var(--amber);
}

.tch-today-subject {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-shell.dark .tch-today-subject {
    color: var(--dash-dark-text-1);
}

.tch-today-class {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}

.tch-today-room {
    font-size: 10px;
    color: var(--faint);
}

.tch-today-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--r-full);
    margin-top: 5px;
    align-self: flex-start;
    letter-spacing: 0.02em;
}

.tch-today-badge--now {
    background: var(--amber);
    color: #fff;
}

.tch-today-badge--done {
    background: var(--c-success-light);
    color: var(--c-success);
    border: 1px solid rgba(13,92,47,0.15);
}

/* ── Haftalık Grid ────────────────────────────────────────────────── */
.tch-grid-wrap {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(26,29,26,0.10) transparent;
}

.tch-grid {
    display: grid;
    grid-template-columns: 36px repeat(5, 1fr);
    gap: 3px;
    min-width: 340px;
}

.tch-grid-cell {
    border-radius: var(--r-xs);
    padding: 4px 5px;
    font-size: 11px;
    min-height: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tch-grid-head-empty {
    background: transparent;
}

.tch-grid-head {
    background: var(--bg-soft);
    color: var(--muted);
    font-weight: 700;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dash-shell.dark .tch-grid-head {
    background: var(--dash-dark-surface-2);
    color: var(--dash-dark-text-3);
}

.tch-grid-head--today {
    background: #fff3e8;
    color: var(--amber);
    border-bottom: 2px solid var(--amber);
}

.dash-shell.dark .tch-grid-head--today {
    background: rgba(196,98,45,0.12);
    color: #e08a4f;
    border-bottom-color: var(--amber);
}

.tch-grid-period {
    background: transparent;
    color: var(--faint);
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

.tch-grid-empty {
    background: var(--bg-soft);
    border-radius: var(--r-xs);
}

.dash-shell.dark .tch-grid-empty {
    background: var(--dash-dark-surface-2);
}

.tch-grid-lesson {
    background: var(--brand-primary-light);
    border-left: 3px solid var(--ink-green);
    padding-left: 5px;
    transition: background var(--t-fast);
}

    .tch-grid-lesson:hover {
        background: #e0ede7;
    }

.dash-shell.dark .tch-grid-lesson {
    background: rgba(20,52,43,0.22);
    border-left-color: #e08a4f;
}

    .dash-shell.dark .tch-grid-lesson:hover {
        background: rgba(20,52,43,0.35);
    }

.tch-grid-today-col {
    box-shadow: inset 0 0 0 1px rgba(196,98,45,0.18);
}

.tch-grid-subject {
    font-size: 10px;
    font-weight: 700;
    color: var(--ink-green);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-shell.dark .tch-grid-subject {
    color: #e08a4f;
}

.tch-grid-class {
    font-size: 9px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Ödev Stacked Bar ─────────────────────────────────────────────── */
.tch-hw-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.tch-hw-bar-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tch-hw-bar-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-shell.dark .tch-hw-bar-label {
    color: var(--dash-dark-text-2);
}

.tch-hw-bar-track {
    height: 9px;
    border-radius: var(--r-full);
    background: var(--bg-soft);
    border: 1px solid var(--dash-border-light);
    overflow: hidden;
    display: flex;
}

.tch-hw-bar-seg {
    height: 100%;
    transition: width var(--t-spring);
    min-width: 0;
}

.tch-hw-bar-seg--submitted { background: var(--sage); }
.tch-hw-bar-seg--pending   { background: var(--gold); }
.tch-hw-bar-seg--missing   { background: var(--clay); }

.tch-hw-bar-counts {
    display: flex;
    gap: 5px;
}

.tch-hw-count {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--r-full);
}

.tch-hw-count--submitted { background: rgba(111,138,106,0.15); color: var(--sage); }
.tch-hw-count--pending   { background: var(--c-warning-light);  color: var(--gold); }
.tch-hw-count--missing   { background: var(--c-error-light);    color: var(--clay); }

.tch-hw-legend {
    display: flex;
    gap: 14px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--dash-border-light);
}

.tch-hw-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

.tch-hw-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

.tch-hw-legend-dot--submitted { background: var(--sage); }
.tch-hw-legend-dot--pending   { background: var(--gold); }
.tch-hw-legend-dot--missing   { background: var(--clay); }

.mb-4 {
    margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════════════
   STUDENT DASHBOARD
═══════════════════════════════════════════════════════════════════ */

.student-summary-card {
    min-height: 190px;
    border: 1px solid var(--dash-border);
    border-top: 4px solid transparent;
    border-radius: var(--r-xl);
    padding: 18px;
    background: var(--dash-surface);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--t-base), transform var(--t-base);
}

    .student-summary-card:hover {
        box-shadow: var(--shadow-card-hover);
        transform: translateY(-2px);
    }

.dash-shell.dark .student-summary-card {
    background: var(--dash-dark-surface);
    border-color: var(--dash-dark-border);
}

.student-summary-card--attendance { border-top-color: var(--ink-green); }
.student-summary-card--homework   { border-top-color: var(--amber); }
.student-summary-card--study      { border-top-color: var(--gold); }

.student-summary-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.student-summary-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.student-summary-card--attendance .student-summary-icon {
    background: var(--brand-primary-light);
    color: var(--ink-green);
}

.student-summary-card--homework .student-summary-icon {
    background: var(--brand-secondary-light);
    color: var(--amber);
}

.student-summary-card--study .student-summary-icon {
    background: var(--c-warning-light);
    color: var(--gold);
}

.student-summary-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.dash-shell.dark .student-summary-title {
    color: var(--dash-dark-text-1);
}

.student-summary-subtitle {
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
    font-weight: 500;
}

.student-summary-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

    .student-summary-main > div {
        border-radius: var(--r-lg);
        background: var(--bg-soft);
        padding: 10px 12px;
        border: 1px solid var(--dash-border-light);
    }

    .dash-shell.dark .student-summary-main > div {
        background: var(--dash-dark-surface-2);
        border-color: var(--dash-dark-border);
    }

    .student-summary-main strong {
        display: block;
        font-size: 24px;
        line-height: 1;
        color: var(--ink);
        font-weight: 900;
        margin-bottom: 4px;
        letter-spacing: -0.04em;
        font-family: var(--font);
    }

    .dash-shell.dark .student-summary-main strong {
        color: var(--dash-dark-text-1);
    }

    .student-summary-card--attendance .student-summary-main strong { color: var(--ink-green); }
    .student-summary-card--homework   .student-summary-main strong { color: var(--amber); }
    .student-summary-card--study      .student-summary-main strong { color: var(--gold); }

    .student-summary-main span {
        font-size: 11px;
        color: var(--muted);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

.student-mini-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--dash-border-light);
}

.student-mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

    .student-mini-row b {
        font-size: 13px;
        font-weight: 800;
        color: var(--ink);
    }

    .dash-shell.dark .student-mini-row b {
        color: var(--dash-dark-text-1);
    }

/* ── Ders Kartları (Bugün) ───────────────────────────────────────── */
.student-section-card {
    padding: var(--s5);
}

.student-lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 10px;
}

.student-lesson-card {
    position: relative;
    min-height: 80px;
    border-radius: var(--r-lg);
    border: 1px solid var(--dash-border-light);
    border-left: 4px solid var(--faint);
    background: var(--bg-soft);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all var(--t-fast);
}

    .student-lesson-card:hover {
        box-shadow: var(--shadow-sm);
        transform: translateY(-1px);
    }

.dash-shell.dark .student-lesson-card {
    background: var(--dash-dark-surface-2);
    border-color: var(--dash-dark-border);
}

.student-lesson-card--now {
    background: #fff3e8;
    border-color: rgba(196,98,45,0.25);
    border-left-color: var(--amber);
    box-shadow: 0 4px 14px rgba(196,98,45,0.10);
}

.dash-shell.dark .student-lesson-card--now {
    background: rgba(196,98,45,0.08);
    border-color: rgba(196,98,45,0.25);
    border-left-color: var(--amber);
}

.student-lesson-period {
    font-size: 10px;
    color: var(--faint);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.student-lesson-card--now .student-lesson-period {
    color: var(--amber);
}

.student-lesson-subject {
    font-size: 13px;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.25;
}

.dash-shell.dark .student-lesson-subject {
    color: var(--dash-dark-text-1);
}

.student-lesson-time {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

.student-now-badge {
    position: absolute;
    right: 8px;
    top: 8px;
    border-radius: var(--r-full);
    background: var(--amber);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    letter-spacing: 0.02em;
}

/* ── Liste Öğeleri ───────────────────────────────────────────────── */
.student-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.student-list--compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px;
}

.student-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--dash-border-light);
    border-left: 3px solid transparent;
    background: var(--bg-soft);
    border-radius: var(--r-lg);
    padding: 10px 12px;
    transition: all var(--t-fast);
}

    .student-list-item:hover {
        border-left-color: var(--amber);
        background: #fff3e8;
        transform: translateX(2px);
    }

.dash-shell.dark .student-list-item {
    background: var(--dash-dark-surface-2);
    border-color: var(--dash-dark-border);
}

    .dash-shell.dark .student-list-item:hover {
        background: rgba(196,98,45,0.08);
        border-left-color: var(--amber);
    }

.student-dot {
    width: 9px;
    height: 9px;
    border-radius: var(--r-full);
    flex: 0 0 auto;
}

.student-dot--success { background: var(--c-success); }
.student-dot--info    { background: var(--ink-green); }
.student-dot--warning { background: var(--gold); }
.student-dot--danger  { background: var(--clay); }

.student-list-main {
    min-width: 0;
    flex: 1;
}

.student-list-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-shell.dark .student-list-title {
    color: var(--dash-dark-text-1);
}

.student-list-sub {
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}

.student-chip {
    border-radius: var(--r-full);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.student-chip--success {
    color: var(--c-success);
    background: var(--c-success-light);
    border-color: rgba(13,92,47,0.15);
}

.student-chip--info {
    color: var(--ink-green);
    background: var(--brand-primary-light);
    border-color: rgba(20,52,43,0.15);
}

.student-chip--warning {
    color: var(--gold);
    background: var(--c-warning-light);
    border-color: rgba(217,154,60,0.20);
}

.student-chip--danger {
    color: var(--clay);
    background: var(--c-error-light);
    border-color: rgba(181,72,46,0.18);
}

/* ═══════════════════════════════════════════════════════════════════
   GUARDIAN DASHBOARD
═══════════════════════════════════════════════════════════════════ */

.grd-child-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-left: 4px solid var(--sage);
    border-radius: var(--r-xl);
    margin-bottom: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-card);
}

.dash-shell.dark .grd-child-selector {
    background: var(--dash-dark-surface);
    border-color: var(--dash-dark-border);
    border-left-color: var(--sage);
}
