/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f1f5f9;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1e293b;
    overflow-x: hidden;
    padding: 15px;
}

.ch-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

/* 🌐 TOP BRANDING DOMAIN BAR */
.domain-top-bar {
    background: #0f172a;
    color: #ffffff;
    text-align: center;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid #1e293b;
}
.domain-top-bar span { color: #3b82f6; }

/* 🏷️ STYLISH BOARD FOR H1 HEADING (WITH BALANCED SIDE GAPS) */
.heading-board {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 22px 15px;
    text-align: center;
    margin: 0 auto 25px auto; 
    width: calc(100% - 24px); /* Left aur right side se unique professional gap */
    max-width: 1200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.main-page-heading {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    line-height: 1.2;
}

.main-page-heading span {
    color: #1e40af;
    background: linear-gradient(to right, #1e40af, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-top: 2px;
}

/* 📊 CENTERED LIVE RESULT STATUS BOARD */
.live-status-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: #ffffff;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 25px auto;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    border: 1px solid #1e293b;
}

.status-student-name {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #38bdf8;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.status-time-slot {
    font-size: 1rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.status-data-display {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.status-data-display .soon-text {
    color: #facc15;
    font-style: italic;
    font-weight: 700;
}

.status-data-display .value-text {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 4px 20px;
    border-radius: 8px;
    display: inline-block;
}

.status-next-timer {
    display: inline-block;
    background: #1e293b;
    color: #cbd5e1;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #334155;
}

/* Filter Wrapper */
.filter-wrapper {
    text-align: center;
    margin-bottom: 25px;
    background: #f8fafc;
    padding: 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #e2e8f0;
    width: 100%;
}

.filter-label { 
    font-size: 0.95rem; 
    font-weight: 700; 
    color: #334155; 
}

.filter-select {
    padding: 8px 24px 8px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e3a8a;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
}

/* Responsive Table Container */
.ch-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; 
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    margin-bottom: 40px;
}

table { 
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 0;
    text-align: center; 
    min-width: 1100px;
}

th { 
    background: #1e3a8a; 
    color: #ffffff; 
    font-size: 0.75rem; 
    font-weight: 700; 
    padding: 14px 6px; 
    border-bottom: 2px solid #cbd5e1;
    text-transform: uppercase; 
}

th.ch-date-th { 
    background: #0f172a; 
    width: 90px; 
    min-width: 90px; 
    max-width: 90px;
    position: sticky;
    left: 0;
    z-index: 3;
}

td { 
    padding: 12px 6px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    color: #334155; 
    border-bottom: 1px solid #e2e8f0; 
    background: #ffffff;
}

.ch-date-td { 
    background: #f8fafc !important; 
    position: sticky;
    left: 0;
    z-index: 2;
    border-right: 2px solid #cbd5e1;
    padding: 8px 4px !important;
    width: 90px;
    min-width: 90px;
    max-width: 90px;
    line-height: 1.2;
}

.date-main {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    display: block;
}

.date-year {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 700;
    display: block;
    margin-top: 1px;
}

.date-day {
    font-size: 0.68rem;
    color: #2563eb;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
    background: #e0f2fe;
    padding: 1px 2px;
    border-radius: 4px;
}

tr:last-child td {
    border-bottom: none;
}

/* Absent States */
.ch-row-absent td { background-color: #fff1f2 !important; color: #e11d48 !important; }
.ch-row-absent .ch-date-td { background-color: #ffe4e6 !important; }
.ch-row-absent .date-main { color: #b91c1c; }
.ch-row-absent .date-day { background: #fecdd3; color: #be123c; }

/* SEO SECTION BOARDS */
.seo-board-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px dashed #e2e8f0;
}

.seo-section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.seo-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.seo-card:hover {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.04);
}

.seo-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.seo-card p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

/* 🌐 ULTRA PROFESSIONAL FOOTER SECTION */
.ch-footer-box { 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 30px; 
    padding-top: 20px;
    border-top: 1px dashed #cbd5e1;
    gap: 10px;
    text-align: center;
    width: 100%;
}

.ch-back-btn {
    display: inline-block; 
    padding: 12px 40px; 
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: #ffffff; 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 700; 
    border-radius: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
    transition: all 0.2s ease;
}

.ch-back-btn:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
    background: linear-gradient(135deg, #2563eb 0%, #0f172a 100%);
}

.footer-credits-wrap {
    width: 100%;
    margin-top: 10px;
    padding: 15px 10px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.footer-system-title {
    font-size: 0.85rem; 
    color: #475569; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.footer-copyright-text {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    display: block;
}

/* 📱 MOBILE SCREEN FULL-WIDTH OPTIMIZATION OVERRIDES */
@media (max-width: 768px) {
    body { 
        padding: 0px !important; 
        background-color: #ffffff; 
    }
    .ch-container { 
        padding: 10px 8px !important; 
        border-radius: 0px !important; 
        box-shadow: none !important;
    }
    .domain-top-bar {
        font-size: 1.85rem;
        padding: 10px;
        border-radius: 6px;
        margin-bottom: 15px;
    }
    .heading-board {
        width: calc(100% - 16px); /* Mobile friendly margin */
        padding: 18px 10px;
        margin-bottom: 20px;
    }
    .main-page-heading { 
        font-size: 1.35rem; 
    }
    .live-status-card { 
        padding: 20px 12px; 
        border-radius: 12px;
        margin-bottom: 20px;
    }
    .status-student-name { font-size: 1.4rem; }
    .status-data-display { font-size: 1.8rem; }
    
    .ch-table-responsive {
        border-radius: 8px;
        margin-bottom: 30px;
    }
    .footer-credits-wrap {
        background: transparent;
        border: none;
        padding: 0;
    }
}