/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
    --primary-red: #b71c1c;
    --primary-red-dark: #7f0000;
    --primary-red-light: #f05545;
    --accent-gold: #ffeb3b;
    --bg-cream: #fffdf9;
    --border-light: rgba(183, 28, 28, 0.15);
    --text-dark: #212121;
    --text-muted: #666666;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Red Administrative Gradient Header */
.admin-header {
    background: linear-gradient(135deg, var(--primary-red-dark) 0%, var(--primary-red) 60%, var(--primary-red-light) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
    padding: 0.5rem 1.5rem;
    position: relative;
    border-bottom: 4px solid var(--accent-gold);
}

.emblem-left {
    max-height: 55px;
    width: auto;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.3));
}

.unit-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.15rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin: 0;
}

.schedule-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 2rem;
    margin: 0.1rem 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.week-badge {
    background-color: rgba(255, 235, 59, 0.15);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Main Container Layout */
.main-wrapper {
    background-color: var(--bg-cream);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    margin: 0.75rem;
    flex-grow: 1;
    border: 1px solid var(--border-light);
}

/* Sections Styling */
.schedule-section {
    margin-bottom: 1.5rem;
}

.section-banner {
    background: linear-gradient(90deg, var(--primary-red-dark) 0%, var(--primary-red) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--accent-gold);
}

.section-banner i {
    margin-right: 0.5rem;
    color: var(--accent-gold);
}

/* Table Layout Wrapper (Section 1 wrapper) */
.table-container {
    border: 2px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 8px 8px;
    background-color: #fff;
    overflow: hidden;
}

/* Table Style */
.table-custom {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse !important;
    border: none !important; /* Remove outer border from table */
    background-color: #fff;
}

.table-custom th {
    background-color: var(--primary-red);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 10px 12px;
    text-align: center;
    border: 1px solid var(--primary-red-dark) !important;
    border-top: none !important; /* No top border to connect with banner */
}

.table-custom td {
    padding: 8px 12px;
    border: 1px solid var(--border-light) !important;
    vertical-align: middle;
    font-size: 1.05rem;
    line-height: 1.45;
}

.table-custom tbody tr:hover {
    background-color: rgba(183, 28, 28, 0.02);
}

/* Remove outer borders from table rows/cells so the wrapper border stands out */
.table-custom tr td:first-child, .table-custom tr th:first-child {
    border-left: none !important;
}

.table-custom tr td:last-child, .table-custom tr th:last-child {
    border-right: none !important;
}

.table-custom tr:last-child td {
    border-bottom: none !important;
}

/* Spacing between icons and text */
.session-cell {
    font-weight: 800;
    text-align: center;
    color: var(--primary-red);
    width: 100px;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.session-cell i {
    margin-bottom: 12px !important; /* Increased spacing to prevent icon touching text */
    font-size: 1.6rem !important; /* Larger icon size for premium look */
    display: block !important;
}

.weekday-cell {
    width: 12%;
    text-align: center;
    font-size: 1rem;
}

.weekday-cell i {
    margin-bottom: 12px !important; /* Increased spacing to prevent icon touching text */
    font-size: 1.6rem !important; /* Larger icon size for premium look */
    display: block !important;
}

.weekday-cell span {
    font-weight: 800;
    letter-spacing: 0.5px;
}

.time-cell {
    font-weight: 600;
    text-align: center;
    color: var(--primary-red-dark);
    width: 130px;
}

/* Make content text bolder */
.content-text {
    font-weight: 800; /* Increased to 800 for extra boldness */
    color: #000000; /* Darker black for higher contrast and readability */
    font-size: 1.1rem; /* Slightly larger size */
}

.icon-text-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.icon-text-wrapper i {
    color: var(--primary-red);
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

/* Scrolling Container for TV (Borders Alignment) */
.scroll-container {
    max-height: 380px;
    overflow-y: hidden;
    position: relative;
    border: 2px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 8px 8px;
    background-color: #fff;
}

.scroll-content {
    position: relative;
    transition: transform 0.1s linear;
}

/* week-table border consistency overrides */
.week-table {
    border: none !important;
    border-collapse: collapse !important;
}

.week-table th {
    border-top: none !important;
}

.week-table td, .week-table th {
    border: 1px solid var(--border-light) !important;
}

.week-table tr td:first-child, .week-table tr th:first-child {
    border-left: none !important;
}

.week-table tr td:last-child, .week-table tr th:last-child {
    border-right: none !important;
}

.week-table tr:last-child td {
    border-bottom: none !important;
}

/* Controls & filters */
.controls-bar {
    background-color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--border-light);
}

/* Footer Slogan */
.admin-footer {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 0.8rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    border-top: 4px solid var(--accent-gold);
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.footer-star {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

/* Responsive Cards for Mobile */
.mobile-card-container {
    display: none;
}

.schedule-card {
    background-color: #fff;
    border-left: 5px solid var(--primary-red);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border-top: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.schedule-card .card-day {
    font-weight: 800;
    color: var(--primary-red-dark);
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.schedule-card .card-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.schedule-card .card-content {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.schedule-card .card-detail-item {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.schedule-card .card-detail-item i {
    color: var(--primary-red);
    margin-top: 0.25rem;
    width: 16px;
    text-align: center;
}

/* Fullscreen Mode override */
:fullscreen .main-wrapper {
    margin: 0;
    border-radius: 0;
    padding: 1.5rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .table-custom th, .table-custom td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .table-custom, .scroll-container, .today-header {
        display: none !important;
    }
    
    .mobile-card-container {
        display: block;
    }
    
    .admin-header {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    .schedule-title {
        font-size: 1.6rem;
    }
    
    .admin-footer {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
}

/* Sticky Header for Scrolling Week Table */
.scroll-container thead th {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--primary-red) !important;
}
