/* ─── Sınav Programı Yönetim Sistemi - Koyu Tema ─── */

:root {
    --accent: #0dcaf0;
    --accent-dim: rgba(13, 202, 240, 0.15);
    --card-bg: #1e293b;
    --card-border: #334155;
}

html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 15px; } }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0f172a;
}

main { flex: 1; }

/* ─── Cards ─── */
.card {
    background: var(--card-bg);
    border-color: var(--card-border);
    transition: transform .15s, box-shadow .15s;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.card-header {
    border-bottom-color: var(--card-border);
}

/* ─── Stat Cards ─── */
.stat-card {
    border-left: 4px solid var(--accent);
    background: var(--card-bg);
}
.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-card .stat-label {
    font-size: .85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ─── Tables ─── */
.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255,255,255,.03);
}
.table thead th {
    background: #1e293b;
    border-bottom: 2px solid var(--accent);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #94a3b8;
}
.table td {
    vertical-align: middle;
}

/* ─── Badges ─── */
.badge-fakulte { background: #6366f1; }
.badge-bolum { background: #8b5cf6; }
.badge-onatama { background: #f59e0b; color: #000; }

/* ─── Form inputs (dark) ─── */
.form-control, .form-select {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
.form-control:focus, .form-select:focus {
    background: #1e293b;
    border-color: var(--accent);
    box-shadow: 0 0 0 .2rem var(--accent-dim);
    color: #e2e8f0;
}

/* ─── Buttons ─── */
.btn-accent {
    background: var(--accent);
    color: #0f172a;
    font-weight: 600;
}
.btn-accent:hover {
    background: #06b6d4;
    color: #0f172a;
}

/* ─── Progress header ─── */
.page-header {
    border-bottom: 1px solid var(--card-border);
    padding-bottom: .75rem;
    margin-bottom: 1.5rem;
}
.page-header h2 {
    color: #e2e8f0;
    font-weight: 600;
}

/* ─── Column mapping dropdowns ─── */
.mapping-row {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: .5rem;
    padding: .75rem 1rem;
    margin-bottom: .5rem;
}

/* ─── Alert tweaks ─── */
.alert { border-radius: .5rem; }

/* ─── Navbar overrides ─── */
.navbar .nav-link { color: #94a3b8 !important; }
.navbar .nav-link:hover { color: var(--accent) !important; }
.dropdown-menu-dark { background: #1e293b; border-color: #334155; }

/* ─── Sortable table headers ─── */
.sort-table th[data-sort] {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.sort-table th[data-sort]:hover {
    color: var(--accent);
}
.sort-table th.sort-asc,
.sort-table th.sort-desc {
    color: var(--accent);
}
.sort-table th.sort-asc i.bi,
.sort-table th.sort-desc i.bi {
    opacity: 1 !important;
}

/* ─── Gantt Chart Stili ─── */
.gantt-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 75vh;
}
.gantt-table {
    border-collapse: separate;
    border-spacing: 1px;
    font-size: .75rem;
    min-width: 100%;
}
.gantt-table th {
    background: #1e293b;
    border-bottom: 2px solid var(--accent);
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: .7rem;
    padding: 6px 4px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 2;
}
.gantt-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #1e293b;
}
.gantt-table td {
    padding: 4px 3px;
    text-align: center;
    vertical-align: middle;
    background: #1e293b;
    border: 1px solid #334155;
    min-width: 80px;
}
.gantt-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #1e293b;
    font-weight: 600;
    color: #e2e8f0;
    min-width: 100px;
    text-align: left;
    padding-left: 8px;
}
.gantt-cell {
    display: inline-block;
    background: rgba(13, 202, 240, 0.15);
    border: 1px solid rgba(13, 202, 240, 0.3);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: .7rem;
    line-height: 1.3;
    max-width: 100%;
    word-wrap: break-word;
}
.gantt-cell .gc-derskod {
    color: var(--accent);
    font-weight: 700;
}
.gantt-cell .gc-sinif {
    color: #94a3b8;
    display: block;
    font-size: .65rem;
}
.gantt-table .gantt-row-label {
    font-size: .8rem;
}
