/* ===================================================
   TV INFO - BROADCAST-STYLE PROFESSIONAL THEME
   Colors: White, Red, Blue (e.g., BBC, CNN style)
   ===================================================
*/

:root {
    /* Primary Colors - Broadcast Theme */
    --primary-red: #DC2626;
    --primary-blue: #1E40AF;
    --primary-white: #FFFFFF;

    /* Gradient Variants */
    --red-gradient: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    --blue-gradient: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
    --hero-gradient: linear-gradient(135deg, #74ebd5 0%, #9bc5f1 100%);

    /* Accent Colors */
    --accent-gold: #F59E0B;
    --accent-cyan: #06B6D4;

    /* Background Colors */
    --bg-dark: #0F172A;
    --bg-card: rgba(255, 255, 255, 0.98);
    --bg-overlay: rgba(15, 23, 42, 0.95);

    /* Text Colors */
    --text-dark: #1E293B;
    --text-light: #FFFFFF;
    --text-muted: #64748B;

    /* Border & Shadow */
    --card-border: rgba(255, 255, 255, 0.15);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow-red: 0 0 40px rgba(220, 38, 38, 0.4);
    --shadow-glow-blue: 0 0 40px rgba(30, 64, 175, 0.4);
}

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    background: var(--hero-gradient);
    color: var(--text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===== CONTAINER ===== */
.container {
    padding: 1rem 1.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: calc(100vh - 275px);
    /* 260px footers + ~10px gap */
    overflow: hidden;
}

/* ===== HEADER - BROADCAST STYLE ===== */
header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 0.8rem 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border-left: none;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.05));
    pointer-events: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
}

.school-logo {
    width: clamp(55px, 8vw, 85px);
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.school-logo:hover {
    transform: scale(1.05);
}

.header-titles {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

h1 {
    margin: 0;
    font-size: clamp(1.3rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
}

.school-name {
    margin: 0;
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    color: var(--primary-red);
    font-weight: 700;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
    background: #000;
    /* Black background */
    padding: 0.8rem 1.5rem;
    border-radius: 0.8rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.date {
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    /* Semi-transparent white */
    font-weight: 600;
    text-transform: capitalize;
}

.clock {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.fullscreen-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF !important;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1;
}

.fullscreen-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

/* ===== HEADER CARETAKERS PANEL ===== */
.header-caretakers-panel {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(30, 64, 175, 0.04);
    padding: 0.6rem 2rem;
    border-radius: 3rem;
    border: 1px solid rgba(30, 64, 175, 0.08);
    cursor: default;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 45%;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.edit-mode-active .header-caretakers-panel {
    cursor: pointer;
}

.edit-mode-active .header-caretakers-panel:hover {
    background: rgba(30, 64, 175, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    border-color: rgba(30, 64, 175, 0.2);
}

.header-caretaker-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: guardFloat 4s infinite ease-in-out;
}

@keyframes guardFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

.header-caretaker-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-caretaker-label {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--primary-red);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.header-caretaker-names {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}

/* ===== MAIN LAYOUT ===== */
main {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 1.5rem;
    flex: 1;
    min-height: 0;
}

/* ===== CARD STYLES ===== */
.card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--blue-gradient);
}

/* ===== CARD HEADERS ===== */
.card-header {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    border-bottom: 2px solid rgba(30, 64, 175, 0.1);
    padding-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alert-header {
    color: var(--primary-red) !important;
}

.alert-header::after {
    content: '⚡';
    margin-left: 0.5rem;
}

.info-header {
    color: var(--primary-blue) !important;
}

/* ===== MAIN SCHEDULE HEADER ===== */
.main-schedule-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    background: var(--red-gradient);
    margin: -1.2rem -1.5rem 1rem -1.5rem;
    padding: 1rem 1.5rem;
    width: calc(100% + 3rem);
    border-radius: 1rem 1rem 0 0;
}

.main-schedule-header::before {
    display: none;
}

.card::before {
    z-index: 10;
}

.current-classes::before {
    display: none;
}

.header-section-left {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.header-section-center {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: var(--text-light);
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-section-center::before {
    content: '📺';
    font-size: 1.5em;
}

.header-section-right {
    display: flex;
    justify-content: flex-end;
}

/* ===== ORA BADGE ===== */
.ora-badge {
    background: white;
    color: var(--primary-blue);
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 800;
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    animation: badgePulse 2.5s infinite ease-in-out;
    text-transform: uppercase;
}

.ora-badge::before {
    content: '🔴';
    animation: liveBlink 1s infinite;
}

@keyframes liveBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 25px rgba(220, 38, 38, 0.7);
    }
}

/* ===== CURRENT CLASSES CARD ===== */
.current-classes {
    flex: 1;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid white;
}

.current-classes:hover {
    transform: scale(1.005);
}

#schedule-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* ===== SCHEDULE LIST (AIRPORT STYLE - COMPACT) ===== */
.schedule-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
    /* Reduced gap */
    padding: 0.5rem;
    overflow-y: hidden;
    height: 100%;
    align-content: start;
}

.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111827;
    border: 1px solid #374151;
    border-left: 5px solid var(--accent-gold);
    padding: 0.6rem 1rem;
    /* Compact padding */
    border-radius: 0.4rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    height: auto;
    min-height: 55px;
    /* Reduced min-height */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    background: #1f2937;
}

.class-name {
    color: var(--accent-gold);
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 900;
    font-size: clamp(1.4rem, 1.8vw, 2rem);
    /* Reduced font size */
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(245, 158, 11, 0.3);
    min-width: 90px;
}

.separator {
    color: #4b5563;
    margin: 0 0.8rem;
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.5;
}

.prof-name {
    font-weight: 700;
    font-size: clamp(1.1rem, 1.4vw, 1.6rem);
    /* Reduced font size */
    color: #f3f4f6;
    text-transform: uppercase;
    text-align: right;
    letter-spacing: 0.5px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-prof {
    color: #6b7280;
    font-style: italic;
    font-weight: 400;
    font-size: 0.9em;
}

.current-highlight {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
    border-left-color: #fff !important;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

.current-highlight .class-name {
    color: #ffffff;
    text-shadow: none;
}

.current-highlight .prof-name {
    color: #ffffff;
}

/* ===== SIDEBAR ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    overflow: hidden;
    /* Ensure nothing escapes the sidebar */
}

.sidebar .news-card {
    flex: 7;
}

.sidebar .announcements-card {
    flex: 3;
}

.sidebar .card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar .card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 0 2px rgba(30, 64, 175, 0.2);
}

/* ===== CARETAKERS ===== */
.caretakers-header {
    background: var(--blue-gradient) !important;
    color: white !important;
    margin: -1.2rem -1.5rem 1rem -1.5rem !important;
    padding: 1rem 1.5rem !important;
    width: calc(100% + 3rem) !important;
    border-radius: 1rem 1rem 0 0 !important;
    position: relative;
    overflow: hidden;
    border-bottom: none !important;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.caretakers-header::before {
    content: '💂';
    /* Guard Icon */
    font-size: 1.2rem;
}

.caretakers-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 15%;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    pointer-events: none;
}

.caretakers-card::before {
    display: none;
    /* Remove default blue line since we have a full header */
}

.caretakers-card {
    flex: none !important;
    height: 160px !important;
    /* Increased height to be seen completely (1) */
    overflow: hidden;
    border: 2px solid white;
}

.announcements-card {
    border: 2px solid white;
}

.caretaker-list {
    font-size: 1.6rem;
    line-height: 1.3;
    /* Better for multiple rows */
    color: var(--text-dark);
    font-weight: 700;
    padding-left: 1rem;
}

/* ===== CHANGES ===== */
.changes-header {
    background: var(--red-gradient) !important;
    color: white !important;
    margin: -1.2rem -1.5rem 1rem -1.5rem !important;
    padding: 1rem 1.5rem !important;
    width: calc(100% + 3rem) !important;
    border-radius: 1rem 1rem 0 0 !important;
    position: relative;
    overflow: hidden;
    border-bottom: none !important;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.changes-header::before {
    content: '⚡';
    /* Change/Warning Icon */
    font-size: 1.2rem;
}

.changes-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 15%;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    pointer-events: none;
}

.changes-card::before {
    display: none;
}

.changes-list {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-dark);
    margin-top: 1rem;
    padding: 0 0.5rem;
}

.change-entry {
    margin-bottom: 0.8rem;
    padding: 1rem 1.5rem;
    border-left: 6px solid var(--primary-red);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-radius: 0 0.8rem 0.8rem 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    color: var(--primary-blue);
    font-weight: 600;
}

.change-entry:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
    transform: translateX(6px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.change-entry strong {
    color: var(--primary-red);
    text-transform: uppercase;
}

.entry-delete-overlay {
    display: none;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-red);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
}

.change-entry:hover .entry-delete-overlay {
    display: block;
}

/* ===== ANNOUNCEMENTS ===== */
/* ===== NEWS SECTION ===== */
.news-header {
    background: #1E40AF !important;
    /* Specific dark blue from screenshot */
    color: white !important;
    margin: -1.2rem -1.5rem 1rem -1.5rem !important;
    padding: 0.8rem 1.5rem !important;
    width: calc(100% + 3rem) !important;
    border-radius: 1rem 1rem 0 0 !important;
    position: relative;
    overflow: hidden;
    border-bottom: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4rem;
}

.news-header::before {
    content: '📰';
    font-size: 1.2rem;
}

.news-header::after {
    content: '';
}

.news-card {
    /* flex and height will be controlled by .sidebar container */
    overflow: hidden;
    background: #FFFFFF !important;
    border-radius: 1rem;
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.news-list {
    display: grid;
    grid-template-columns: 1fr;
    height: 100%;
    position: relative;
}

.news-entry {
    grid-area: 1 / 1;
    display: none;
    /* Hide by default, JS will toggle */
    gap: 2.5rem;
    padding: 2rem;
    height: 100%;
    box-sizing: border-box;
    align-items: center;
    text-decoration: none;
    background: white;
}

.news-entry.active {
    display: block;
    padding: clamp(1rem, 2vh, 2rem);
    height: 100%;
    box-sizing: border-box;
    animation: newsFadeIn 0.5s ease-out forwards;
    overflow-y: auto;
    /* Handle overflow if text is too long for small height */
}

@keyframes newsFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-entry:hover {
    background: rgba(30, 64, 175, 0.02);
}

.news-thumb {
    float: left;
    width: clamp(180px, 35%, 450px);
    margin-right: 1.5rem;
    margin-bottom: 0.8rem;
    border-radius: 1rem;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-thumb img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.news-title {
    color: #1E293B;
    font-weight: 800;
    font-size: clamp(1.2rem, 3vh, 1.8rem);
    line-height: 1.1;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.news-description-full {
    color: #475569;
    font-size: clamp(1rem, 2.5vh, 1.4rem);
    line-height: 1.3;
    text-align: left;
}

.news-description {
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    /* More lines for description */
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: none;
    /* Hide badges for cleaner single-item look */
}

.news-meta {
    display: none;
    /* Hide badges for cleaner single-item look */
}

.news-label-badge {
    font-size: 0.8rem;
    font-weight: 900;
    padding: 0.2rem 0.6rem;
    border-radius: 0.3rem;
    text-transform: uppercase;
    color: white;
}

.label-top {
    background: var(--primary-red);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.label-trend {
    background: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.news-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== NEWS SOURCE BADGES ===== */
.news-source-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #fff;
}

.source-telegrafi {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.source-indexonline {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.announcements-header {
    background: var(--blue-gradient) !important;
    color: white !important;
    margin: -1.2rem -1.5rem 1rem -1.5rem !important;
    padding: 1rem 1.5rem !important;
    width: calc(100% + 3rem) !important;
    border-radius: 1rem 1rem 0 0 !important;
    position: relative;
    overflow: hidden;
    border-bottom: none !important;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.announcements-header::before {
    content: '📢';
    /* Announcement Icon */
    font-size: 1.2rem;
}

.announcements-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 15%;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    pointer-events: none;
}

.announcements-card::before {
    display: none;
}

.announcements-list-static {
    font-size: 2.2rem;
    /* Increased size */
    color: #FFFFFF !important;
    /* Force White */
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Text shadow for clarity */
    overflow-y: hidden;
}

/* ===== ANNOUNCEMENTS BANNER (Fixed above Bell) ===== */
.announcements-banner {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 50%, #2563EB 100%);
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.3rem;
    /* Reduced from 1.6rem */
    /* Scaled down for narrower height */
    border-top: none;
    position: fixed;
    bottom: 50px;
    /* Sit on weather footer (50px) */
    left: 0;
    width: 100%;
    height: 40px;
    /* Further reduced height */
    z-index: 1000;
    /* Ensure it stays above */
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.announcements-banner::before {
    content: '💂 KUJDESTARËT:';
    color: #FFFFFF;
    background: #1E3A8A;
    /* Matching first gradient color */
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 900;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    /* Above ticker */
    box-shadow: 10px 0 20px rgba(30, 58, 138, 0.9);
    /* Masking effect with blue theme */
    border-right: 2px solid rgba(255, 255, 255, 0.1);
}

.announcement-banner-item {
    display: inline-block;
    padding: 0 1.5rem;
    box-sizing: border-box;
    text-align: center;
    color: #FFFFFF !important;
    text-transform: none !important;
    font-weight: 500 !important;
    font-size: clamp(1rem, 1.4vw, 1.4rem) !important;
    line-height: 1;
    white-space: nowrap;
    /* Prevent text from wrapping internally */
}

.announcements-list-static {
    padding-left: 0;
    display: flex;
    justify-content: center;
    /* Center the static text */
    gap: 1.5rem;
    white-space: nowrap;
    width: 100%;
    will-change: transform;
}

@keyframes announcementTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.container {
    height: calc(100vh - 150px) !important;
    /* Adjusted for total height: 50(weather) + 45(admin) + ~55(bell) */
}

.announcement-entry {
    margin-bottom: 0.8rem;
    padding: 0.8rem 1rem;
    border-left: 4px solid var(--primary-blue);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(30, 64, 175, 0.05) 100%);
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.announcement-entry:hover {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.2) 0%, rgba(30, 64, 175, 0.1) 100%);
    transform: translateX(4px);
}

/* Delete Overlay */
.entry-delete-overlay {
    background: var(--primary-red);
    color: white;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    padding: 0.4rem 0.8rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.change-entry:hover .entry-delete-overlay,
.announcement-entry:hover .entry-delete-overlay {
    visibility: visible;
    opacity: 1;
}

/* ===== WEEKEND CONTAINER ===== */
.weekend-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.weekend-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(30, 64, 175, 0.05) 100%);
    border-radius: 1.5rem;
    border: 2px dashed rgba(30, 64, 175, 0.3);
}

.weekend-icon {
    font-size: 5rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.weekend-text {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.2;
}

/* ===== ADMINISTRATION PANEL ===== */
.administration-card {
    background: var(--primary-white);
    border: none;
    border-radius: 0;
    padding: 0 3rem;
    /* Removed vertical padding to let flex center it */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: fixed;
    bottom: 50px;
    /* Directly on weather footer (50px) */
    /* Directly above announcements */
    left: 0;
    height: 45px;
    /* Further reduced height */
    z-index: 110;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
    border-top: none;
    overflow: hidden;
    /* Hide overflow for ticker */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.administration-card::before {
    display: none;
}

.administration-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: var(--primary-blue);
}

.admin-items-wrapper {
    display: flex;
    white-space: nowrap;
    width: fit-content;
}

.admin-list {
    display: flex;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
    width: fit-content;
    will-change: transform;
}

.admin-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0 2rem;
    /* Reduced gap between items in ticker */
    white-space: nowrap;
}

/* Subtle separator between admin items */
.admin-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -2rem;
    top: 20%;
    height: 60%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(30, 64, 175, 0.2), transparent);
}

.admin-role {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(0.85rem, 1.1vw, 1.1rem);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-name {
    color: var(--primary-blue);
    font-weight: 900;
    font-size: clamp(1rem, 1.6vw, 1.6rem);
    line-height: 1;
    white-space: nowrap;
}

/* ===== BELL SCHEDULE BANNER ===== */
.bell-schedule-banner {
    background: var(--primary-white);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    /* Prevent items from wrapping */
    gap: clamp(0.3rem, 1vw, 1rem);
    padding: 0.2rem 1rem;
    position: fixed;
    bottom: 50px;
    /* Directly on weather footer (50px) */
    left: 0;
    width: 100%;
    height: auto;
    min-height: 50px;
    /* Reduced height */
    z-index: 100;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    border-top: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bell-schedule-banner:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.bell-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(30, 64, 175, 0.1) 100%);
    padding: 0.1rem 0.5rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(30, 64, 175, 0.1);
    flex-shrink: 0;
    /* Prevent boxes from squishing */
    white-space: nowrap;
    /* Prevent text from wrapping internally */
}

.bell-ora {
    color: var(--primary-red);
    font-weight: 800;
    font-size: clamp(0.7rem, 1.1vw, 1.1rem);
}

.bell-time {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: clamp(0.8rem, 1.2vw, 1.2rem);
    /* Increased */
}

/* Modals for Bell Schedule */
.bell-edit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.bell-edit-row {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    align-items: center;
    gap: 1rem;
    background: rgba(30, 64, 175, 0.05);
    padding: 0.8rem;
    border-radius: 0.6rem;
}

.bell-label {
    font-weight: 800;
    color: var(--primary-blue);
}

/* Add Responsive for Bell Banner */
@media (max-width: 768px) {
    .administration-card {
        bottom: 60px;
    }

    .bell-schedule-banner {
        bottom: 110px;
        height: auto;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
        gap: clamp(0.3rem, 1vw, 0.8rem);
        padding: 0.5rem;
    }
}

/* ===== WEATHER FOOTER ===== */
.weather-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 50%, #2563EB 100%);
    border-top: none;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.weather-ticker {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.ticker-content {
    display: inline-block;
    padding-left: 0;
    animation: ticker 60s linear infinite;
    width: fit-content;
    will-change: transform;
}



.weather-item {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    margin-right: 5rem;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 1rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(5px);
}

.city-name {
    color: var(--primary-white);
    font-weight: 800;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weather-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.weather-temp {
    color: var(--accent-gold);
    font-weight: 900;
    font-size: 1.7rem;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Author Signature */
.author-signature {
    position: absolute;
    bottom: 0.5rem;
    right: 0.8rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary-red);
    opacity: 0.5;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 1000;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}


@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--primary-white);
    /* Solid white */
    color: var(--text-dark);
    /* Ensure all text is dark by default */
    margin: 3% auto;
    padding: 2.5rem;
    border: none;
    border-radius: 1.2rem;
    width: 95%;
    max-width: 800px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-top: 5px solid var(--primary-blue);
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(30, 64, 175, 0.1);
    padding-bottom: 1rem;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-blue);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-btn {
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--primary-red);
    background: rgba(220, 38, 38, 0.1);
}

/* ===== FORM STYLES ===== */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

input,
textarea {
    background: rgba(30, 64, 175, 0.05);
    border: 2px solid rgba(30, 64, 175, 0.2);
    border-radius: 0.6rem;
    padding: 1rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    outline: none;
    transition: all 0.2s;
}

input:focus,
textarea:focus {
    border-color: var(--primary-blue);
    background: rgba(30, 64, 175, 0.08);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

select {
    background: var(--bg-card);
    border: 2px solid rgba(30, 64, 175, 0.2);
    border-radius: 0.6rem;
    padding: 1rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
}

select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

select option {
    background-color: var(--bg-card);
    color: var(--text-dark);
}

.submit-btn {
    background: var(--blue-gradient);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 0.6rem;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: var(--red-gradient);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* ===== SCHEDULE EDITOR ===== */
.class-schedule-editor {
    margin-top: 1rem;
    background: rgba(30, 64, 175, 0.03);
    border-radius: 0.8rem;
    padding: 1.2rem;
    border: 2px solid rgba(30, 64, 175, 0.1);
}

.schedule-edit-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.schedule-edit-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem;
    background: rgba(30, 64, 175, 0.05);
    border-radius: 0.6rem;
    transition: all 0.2s;
}

.schedule-edit-row:hover {
    background: rgba(30, 64, 175, 0.1);
}

.ora-label {
    font-weight: 800;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.large-select {
    font-size: 1.1rem !important;
    padding: 0.8rem !important;
}

/* ===== DATE INPUTS ===== */
.date-inputs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.date-input-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    animation: fadeIn 0.3s ease-out;
}

.remove-date-btn {
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary-red);
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: 0.4rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}

.remove-date-btn:hover {
    background: var(--primary-red);
    color: white;
}

.add-date-btn {
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary-blue);
    border: 2px dashed var(--primary-blue);
    padding: 0.6rem 1rem;
    border-radius: 0.6rem;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
    margin-top: 0.4rem;
}

.add-date-btn:hover {
    background: var(--primary-blue);
    color: white;
}

/* ===== CONFIRMATION DIALOG ===== */
.confirm-overlay {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.confirm-card {
    background: var(--bg-card);
    border-top: 4px solid var(--primary-red);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.2s ease-out;
    color: var(--text-dark);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirm-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-cancel,
.btn-confirm {
    flex: 1;
    padding: 0.8rem;
    border-radius: 0.6rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-cancel {
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary-blue);
    border: 2px solid rgba(30, 64, 175, 0.2);
}

.btn-cancel:hover {
    background: rgba(30, 64, 175, 0.2);
}

.btn-confirm {
    background: var(--primary-red);
    color: white;
}

.btn-confirm:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.schedule-item,
.change-entry,
.announcement-entry {
    animation: fadeIn 0.4s ease-out forwards;
}

/* ===== FULLSCREEN PROMPT OVERLAY ===== */
.fullscreen-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: fadeIn 0.5s ease;
}

.prompt-content {
    text-align: center;
    color: white;
}

.prompt-icon {
    font-size: 8rem;
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

/* ===== TV SCREEN OPTIMIZATION (Large screens) ===== */
@media (min-width: 1200px) {
    body {
        height: 100vh;
        overflow: hidden;
    }

    .container {
        height: calc(100vh - 275px);
        overflow: hidden;
    }

    main {
        min-height: 0;
    }

    .schedule-list {
        overflow-y: auto;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 64, 175, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(30, 64, 175, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 64, 175, 0.5);
}

/* ===== RESPONSIVE ===== */
/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        /* Enable vertical scrolling */
    }

    .container {
        height: auto;
        overflow: visible;
        padding-bottom: 20px;
        /* Space before footer elements start */
    }

    main {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .schedule-list {
        grid-template-columns: 1fr;
        /* Single column for schedule items */
        gap: 0.8rem;
        overflow-y: visible;
        height: auto;
    }

    .current-classes {
        height: auto;
        flex: none;
        overflow: visible;
    }

    /* Unfix bottom elements so they flow naturally */
    .announcements-banner,
    .bell-schedule-banner,
    .administration-card,
    .weather-footer {
        position: static;
        /* Remove fixed positioning */
        width: 100%;
        box-shadow: none;
        margin-top: 1rem;
        height: auto;
        padding: 1rem;
    }

    .administration-card {
        border-radius: 1rem;
        border: none;
        background: var(--bg-card);
        box-shadow: var(--shadow-lg);
        margin-bottom: 1rem;
    }

    .bell-schedule-banner {
        border-radius: 1rem;
        background: var(--bg-card);
        box-shadow: var(--shadow-lg);
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
        gap: clamp(0.3rem, 1vw, 1rem);
        margin-bottom: 1rem;
    }

    .weather-footer {
        border-radius: 1rem 1rem 0 0;
        margin-top: 2rem;
        background: var(--hero-gradient);
        margin-bottom: 0;
    }

    .ticker-duplicate {
        display: none !important;
    }

    .admin-list {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        animation: none !important;
        white-space: normal !important;
    }

    .admin-items-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .admin-item {
        justify-content: flex-start;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 0.5rem !important;
    }

    .admin-item::after {
        display: none;
    }
}

@media (max-width: 768px) {

    /* Global Mobile Adjustments */
    :root {
        /* Reduce gap scale */
        --gap-md: 0.5rem;
    }

    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .container {
        padding: 0.5rem;
        height: auto !important;
        /* Allow natural height on mobile */
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        overflow: visible;
        /* Allow page scroll */
    }

    /* Header - Compact */
    header {
        flex-direction: row;
        /* Keep side-by-side but compact */
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.5rem 0.8rem;
        border-left-width: 4px;
    }

    .header-left {
        gap: 0.5rem;
    }

    .school-logo {
        width: 40px;
        /* Smaller logo */
    }

    h1 {
        font-size: clamp(1rem, 4vw, 1.4rem);
        /* Responsive scaling */
    }

    .school-name {
        font-size: clamp(0.7rem, 3vw, 0.9rem);
    }

    .header-right {
        gap: 0.5rem;
    }

    .clock {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .date {
        font-size: 0.8rem;
    }

    .fullscreen-btn {
        padding: 0.4rem;
    }

    /* Main Content */
    main {
        gap: 0.8rem;
    }

    /* Cards - Compact */
    .card {
        padding: 0.8rem;
        border-radius: 0.8rem;
    }

    .card-header {
        font-size: 1rem;
        margin-bottom: 0.6rem;
        padding-bottom: 0.5rem;
    }

    /* Schedule Header - Flexible */
    .main-schedule-header {
        margin: -0.8rem -0.8rem 0.6rem -0.8rem;
        padding: 0.6rem 0.8rem;
        width: calc(100% + 1.6rem);
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .header-section-center {
        font-size: 1.4rem;
    }

    .ora-badge {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }

    /* Schedule List - Dense */
    .schedule-list {
        gap: 0.5rem;
    }

    .schedule-item {
        padding: 0.5rem;
        flex-direction: row;
        /* Try to keep row if possible, or wrap */
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.4rem;
    }

    .class-name {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .prof-name {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
        color: var(--text-dark);
        /* Ensure visibility */
    }

    .separator {
        display: inline-block;
        /* Show separator if it fits, text will wrap if not */
        margin: 0 0.2rem;
        font-size: 1rem;
    }

    /* Sidebar Items */
    .sidebar {
        gap: 0.8rem;
    }

    .caretaker-list,
    .changes-list,
    .announcements-list {
        font-size: 0.95rem;
        /* readable but smaller */
    }

    /* Bottom Elements - Flow */
    .bell-schedule-banner {
        padding: 0.5rem;
        gap: 0.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        /* Allow horizontal scroll if needed */
        flex-wrap: nowrap;
        /* Keep items in one line for bell schedule? Or wrap? User said 'orari i ziles poashtu njejte' */
    }

    .bell-item {
        flex-shrink: 0;
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .bell-ora,
    .bell-time {
        font-size: 0.8rem;
    }

    .administration-card {
        padding: 0.8rem;
    }

    .admin-list {
        gap: 0.8rem;
    }

    .admin-name {
        font-size: 1rem;
    }

    .admin-role {
        font-size: 0.7rem;
    }

    /* Weather */
    .weather-footer {
        height: 60px;
        /* Smaller footer */
        margin-top: 1rem;
    }

    .weather-item {
        margin-right: 1.5rem;
        padding: 0.3rem 0.8rem;
    }

    .city-name {
        font-size: 1rem;
    }

    .weather-icon {
        font-size: 1.2rem;
    }

    .weather-temp {
        font-size: 1.1rem;
    }

    /* Ensure forms fit */
    .form-row {
        grid-template-columns: 1fr;
    }

    .weekend-text {
        font-size: 1.5rem;
    }

    .weekend-icon {
        font-size: 2.5rem;
    }
}

.weekend-icon {
    font-size: 3rem;
}

.news-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== NIGHT SKY MODE ===== */
body.night-sky {
    background: #050b16 !important;
    /* Solid dark base */
    transition: background 2s ease-in-out;
    position: relative;
}

body.night-sky::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1B2735 0%, #050b16 100%);
    z-index: -2;
}

body.night-sky .card,
body.night-sky header,
body.night-sky .administration-card,
body.night-sky .announcements-banner,
body.night-sky .weather-footer {
    background: rgba(15, 23, 42, 0.6) !important;
    /* Darker glassmorphism for contrast */
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

body.night-sky .news-card {
    background: rgba(15, 23, 42, 0.5) !important;
}

/* Comprehensive White Font Override for Night Mode */
body.night-sky,
body.night-sky div,
body.night-sky span,
body.night-sky h1,
body.night-sky h2,
body.night-sky h3,
body.night-sky p,
body.night-sky a,
body.night-sky i {
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
}

body.night-sky .news-entry,
body.night-sky .news-entry.active {
    background: transparent !important;
    color: white !important;
}

body.night-sky .admin-role {
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
}

body.night-sky .header-caretaker-label {
    color: #FFFFFF !important;
    /* Overriding the red color from light mode */
}

body.night-sky .weekend-message {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

body.night-sky .weekend-text {
    color: #FFFFFF;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 40px rgba(30, 64, 175, 0.6);
}

#schedule-container {
    position: relative;
    overflow: hidden;
}

/* Stars Container */
#stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: transparent;
    /* Removed dark background */
    border-radius: 0.5rem;
}

.star-layer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: transparent;
}

.weekend-container {
    position: relative;
    z-index: 2;
    background: transparent !important;
}

/* Bright Stars */
.layer1 {
    width: 3px;
    height: 3px;
    box-shadow: 100px 100px #fff, 300px 200px #fff, 500px 50px #fff, 700px 400px #fff, 150px 600px #fff, 400px 100px #fff, 850px 150px #fff, 600px 300px #fff;
    animation: starsRotate 200s linear infinite, twinkling 4s ease-in-out infinite;
}

.layer2 {
    width: 4px;
    height: 4px;
    box-shadow: 200px 300px #fff, 450px 100px #fff, 700px 500px #fff, 50px 500px #fff, 900px 200px #fff, 300px 450px #fff;
    animation: starsRotate 150s linear infinite, twinkling 6s ease-in-out infinite;
}

.layer3 {
    width: 5px;
    height: 5px;
    box-shadow: 400px 400px #fff, 100px 150px #fff, 800px 100px #fff, 600px 400px #fff;
    animation: starsRotate 100s linear infinite, twinkling 3s ease-in-out infinite;
}

@keyframes starsRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes twinkling {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}