/* =========================
   TIMETABLE DARK MODE
========================= */

.timetable {
    display: flex;
    width: 100%;
    color: #e6e6e6;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2a2f3a;
    background: #161a22;
}

/* LEFT COLUMN */
.timetable > aside {
    background: #1d222c;
    border-right: 1px solid #2a2f3a;
}

.timetable > aside li,
.timetable > aside:before {
    background: #1d222c;
    color: #ffffff;
    border-bottom: 1px solid #2a2f3a;
}

.timetable .row-heading {
    font-weight: 600;
    color: #dfe6ee;
}

/* TOP HEADER */
.timetable > section > header {
    background: #1d222c;
    border-bottom: 1px solid #2a2f3a;
}

.timetable > section > header li {
    color: #9aa4b2;
    font-weight: 500;
}

/* GRID */
.timetable ul.room-timeline li {
    background: #161a22;
    border-bottom: 1px solid #242a35;
}

.timetable ul.room-timeline li:nth-of-type(odd) {
    background: #1a1f28;
}

/* Vertical lines */
.timetable ul.room-timeline li:before {
    background-image: linear-gradient(
        90deg,
        #2a2f3a 1px,
        transparent 0
    );
}

.timetable ul.room-timeline li:after {
    background-image: none;
}

/* EVENTS */
.timetable .time-entry {
    border: none;
    color: white;
    border-radius: 8px;
    padding: 4px 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    transition: 0.2s ease;
    font-weight: 500;
}

.timetable .time-entry:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #66a0ff, #4f8cff);
}

/* Text inside event */
.timetable .time-entry small {
    font-size: 0.78em;
    line-height: 1.2;
}

/* Scrollbar (optional) */
.timetable time::-webkit-scrollbar {
    height: 8px;
}

.timetable time::-webkit-scrollbar-track {
    background: #161a22;
}

.timetable time::-webkit-scrollbar-thumb {
    background: #3a4250;
    border-radius: 10px;
}