/* =============================================================
   table.css — Styles for data tables (used with main.css)
   Terminal theme.
   ============================================================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    background: #0f1a10;
    font-size: 0.92em;
}

caption {
    caption-side: top;
    padding: 0 0 12px;
    text-align: left;
    font-size: 1.15em;
    font-weight: 700;
    color: #39ff88;
}

th, td {
    padding: 9px 11px;
    border: 1px solid #1f3d24;
    text-align: center;
    vertical-align: middle;
}

thead th {
    background: #39ff88;
    color: #0a0e0a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85em;
}
thead tr + tr th { background: #1f8f4c; color: #e6ffec; }

tbody th {
    background: #122216;
    color: #39ff88;
    white-space: nowrap;
}

tfoot td {
    background: #0a0e0a;
    color: #5fa86e;
    font-size: 0.85em;
}

tbody tr:hover td { background-color: #16301c; }

/* Column groups */
.time-col { width: 14%; }
.day-col  { width: 17.2%; }

/* Schedule cell types */
.schedule td { height: 46px; line-height: 1.35; }
.lecture  { background: #10261a; color: #b8f5c2; }
.lab      { background: #0f2422; color: #7ee8fa; }
.study    { background: #13202a; color: #9ecbff; }
.break    { background: #2a2410; color: #ffd166; font-weight: 700; letter-spacing: 0.06em; }
.free     { background: #0f1a10; color: #3c6b45; }
.gradproj { background: #39ff88; color: #0a0e0a; }
.gradproj strong { color: #0a0e0a; }
.other    { background: #24132a; color: #f0b3ff; }
.room     { font-size: 0.82em; opacity: 0.75; }

.swatch.lecture  { background: #2f7a4a; }
.swatch.lab      { background: #2a7a74; }
.swatch.study    { background: #3a6080; }
.swatch.break    { background: #9a7d2a; }
.swatch.gradproj { background: #39ff88; }
.swatch.other    { background: #8a4fa0; }

/* Database page tables */
.data-table td, .data-table th { text-align: left; }
.data-table tbody th { white-space: normal; }
.data-table.compact { width: 50%; }
.num { text-align: right; font-weight: 700; color: #ffd166; }

.status {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 700;
}
.status-completed   { background: #39ff88; color: #0a0e0a; }
.status-in-progress { background: #ffd166; color: #0a0e0a; }
.status-planned     { background: #1f3d24; color: #b8f5c2; }
