/* --- THEME VARIABLES (Editorial Palette) --- */
:root {
    --news-red: #c0392b;       /* Breaking News Red */
    --ink-black: #1a1a1a;      /* Text Color */
    --paper-white: #fdfdfd;    /* Background */
    --border-gray: #e0e0e0;
    --highlight-blue: #2980b9;
    --font-head: 'Merriweather', serif; /* Classic Newspaper Font */
    --font-body: 'Roboto', sans-serif;  /* Modern Digital Font */
}

body {
    background-color: #f4f4f4;
    color: var(--ink-black);
    font-family: var(--font-body);
    margin: 0;
    padding: 20px;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--paper-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    min-height: 90vh;
    padding: 30px;
    border-top: 5px solid var(--news-red); /* Top Border Accent */
}

/* --- HEADER (Masthead Style) --- */
.editorial-header {
    text-align: center;
    border-bottom: 3px double var(--ink-black);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.university-tag {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.brand-title {
    font-family: var(--font-head);
    font-size: 3rem;
    margin: 0;
    letter-spacing: -1px;
}

.brand-title .highlight {
    color: var(--news-red);
}

.subtitle {
    font-style: italic;
    color: #555;
    margin-top: 5px;
}

/* --- CONTROLS --- */
.control-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.date-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f0f0;
    padding: 8px 15px;
    border-radius: 4px;
}

.date-group label {
    font-weight: 700;
    font-size: 0.8rem;
}

input[type="date"] {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    outline: none;
}

.day-display {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 1.5rem;
    text-decoration: underline;
    text-decoration-color: var(--news-red);
}

/* --- DESKTOP TABLE --- */
.table-frame {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th {
    background-color: var(--ink-black);
    color: white;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 15px;
}

td {
    border: 1px solid var(--border-gray);
    padding: 15px;
    text-align: center;
    transition: background 0.3s;
}

/* Hover effect on rows */
tr:hover td {
    background-color: #fafafa;
}

.active-row td {
    background-color: #eaf2f8 !important; /* Highlight today's row */
    border-bottom: 2px solid var(--highlight-blue);
}

.course-code {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

.room-tag {
    display: inline-block;
    background: var(--ink-black);
    color: white;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 5px;
    border-radius: 2px;
}

/* --- HOLIDAY STYLES --- */
.holiday-row td {
    background: repeating-linear-gradient(
        45deg,
        #fdebd0,
        #fdebd0 10px,
        #fff 10px,
        #fff 20px
    );
    color: #d35400;
    font-weight: bold;
    font-family: var(--font-head);
    font-size: 1.2rem;
    padding: 30px;
}

/* --- MOBILE CARDS (News Feed Style) --- */
.mobile-view { display: none; }

@media (max-width: 576px) {
    .desktop-view { display: none; }
    .mobile-view { display: block; }
    .main-container { padding: 15px; width: auto; }
    .brand-title { font-size: 2rem; }
    
    .news-card {
        background: white;
        border: 1px solid #eee;
        border-top: 4px solid var(--highlight-blue);
        padding: 20px;
        margin-bottom: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        position: relative;
    }

    .time-stamp {
        position: absolute;
        top: 10px;
        right: 15px;
        font-weight: bold;
        color: #999;
        font-size: 0.85rem;
    }

    .card-headline {
        font-family: var(--font-head);
        font-size: 1.4rem;
        font-weight: 700;
        margin: 10px 0 5px 0;
        color: var(--ink-black);
    }

    .card-meta {
        display: flex;
        gap: 10px;
        margin-top: 10px;
    }

    .mobile-room {
        background: var(--news-red);
        color: white;
        padding: 4px 10px;
        font-size: 0.8rem;
        font-weight: bold;
        text-transform: uppercase;
    }

    .teacher-name {
        color: #666;
        font-style: italic;
    }

    /* Mobile Holiday Card */
    .holiday-card-mobile {
        text-align: center;
        padding: 40px 20px;
        background-color: #fff5f5;
        border: 2px dashed var(--news-red);
    }
    .holiday-icon { font-size: 3rem; display: block; margin-bottom: 10px; }
}

.editorial-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 20px;
}