/* ============================================================
   SSC CGL 2026 Notification Portal - Style Guide & Theme
   ============================================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&display=swap');

/* CSS Variables for Retro Light Theme */
:root {
    --bg-primary: #F4F1EA;
    --bg-secondary: #EBE5D9;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFDF8;
    --border: #1A1A1A;
    --border-hover: #000000;
    
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #6B6B6B;
    
    --accent: #D25A24; /* Rust Orange */
    --accent-light: #E06C38;
    --accent-glow: transparent;
    
    --secondary: #1A1A1A; /* Charcoal */
    --secondary-light: #333333;
    
    --success: #1E5631; /* Forest Green */
    --warning: #D98310; /* Amber/Mustard */
    --danger: #B52C18; /* Brick Red */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Space Grotesk', sans-serif;
    
    --glass-blur: none;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    --glow-indigo: none;
    --glow-sky: none;
    --shadow-solid: 4px 4px 0px #1A1A1A;
    --shadow-solid-hover: 2px 2px 0px #1A1A1A;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary-light);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Custom Header Badge */
.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    box-shadow: 2px 2px 0px var(--border);
}

.header-badge .pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent-light);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px var(--accent-light); }
    100% { transform: scale(0.9); opacity: 0.8; }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 3px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-solid);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero p.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.exam-meta-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.meta-pill {
    background: var(--bg-card);
    border: 2px solid var(--border);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    box-shadow: 2px 2px 0px var(--border);
}

.meta-pill:hover {
    background: var(--bg-card-hover);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--border);
}

.meta-pill strong {
    color: var(--text-primary);
}

/* Solid Border Cards */
.card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-solid);
}

.card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--border);
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    background: transparent;
    padding: 0;
    border: none;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 2px 2px 0px var(--border);
}

.tab-btn:hover {
    background: var(--bg-card-hover);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--border);
}

.tab-btn.active {
    color: #FFFFFF;
    background: var(--accent);
    border-color: var(--border);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    transform: translate(2px, 2px);
}

/* Tab Panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-icon {
    font-size: 20px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.stat-value.gradient-accent,
.stat-value.gradient-secondary,
.stat-value.gradient-warning {
    background: none;
    -webkit-text-fill-color: var(--accent);
    color: var(--accent);
}

.stat-sub {
    font-size: 13px;
    color: var(--text-muted);
}

/* Countdown Widget */
.countdown-container {
    background: var(--bg-card);
    border: 3px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-solid);
}

.countdown-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.countdown-digits {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.countdown-item {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 6px;
    min-width: 90px;
    padding: 14px 10px;
    box-shadow: 2px 2px 0px var(--border);
}

.countdown-val {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.countdown-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 700;
}

/* Controls / Filters */
.controls-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-wrapper {
    flex: 2;
    min-width: 250px;
    position: relative;
}

.search-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border);
    padding: 12px 16px 12px 44px;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 2px 2px 0px var(--accent);
    background: var(--bg-card);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}

.select-input {
    flex: 1;
    min-width: 160px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    padding: 12px 16px;
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.select-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 2px 2px 0px var(--accent);
}

.select-input option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

/* Custom Table Design */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-solid);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
    background: var(--bg-card);
}

th {
    background-color: var(--border);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 16px;
    border-bottom: 2px solid var(--border);
    letter-spacing: 0.02em;
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: middle;
    transition: background-color var(--transition-fast);
    font-weight: 500;
}

tr {
    background-color: var(--bg-card);
}

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

tr:hover td {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.clickable-row {
    cursor: pointer;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge-level {
    background: #EBE5D9;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.badge-group {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.badge-age {
    background: var(--warning);
    color: #FFFFFF;
    border: 1px solid var(--border);
}

.badge-yes {
    background: var(--danger);
    color: #FFFFFF;
    border: 1px solid var(--border);
}

.badge-no {
    background: var(--success);
    color: #FFFFFF;
    border: 1px solid var(--border);
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.form-control {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border);
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Buttons */
.btn {
    background: var(--accent);
    border: 2px solid var(--border);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 2px 2px 0px var(--border);
}

.btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--border);
    background: var(--accent-light);
}

.btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--border);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-card);
}

/* Calculator Results */
.results-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
    display: none; /* toggled by JS */
    box-shadow: var(--shadow-solid);
}

.results-summary {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.summary-item {
    text-align: center;
}

.summary-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.summary-value {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
}

.summary-value.success { color: var(--success); }
.summary-value.info { color: var(--secondary-light); }
.summary-value.warning { color: var(--warning); }

/* Timeline UI */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 31px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 64px;
}

.timeline-dot {
    position: absolute;
    left: 20px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--border);
    z-index: 2;
    transition: var(--transition-fast);
}

.timeline-item.completed .timeline-dot {
    background: var(--success);
    border-color: var(--border);
}

.timeline-item.active .timeline-dot {
    background: var(--warning);
    border-color: var(--border);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.15);
}

.timeline-content {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    transition: var(--transition-fast);
    box-shadow: 4px 4px 0px var(--border);
}

.timeline-content:hover {
    background: var(--bg-card-hover);
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0px var(--border);
}

.timeline-date {
    display: inline-block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 18px;
    margin-bottom: 6px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Exam Pattern Cards */
.pattern-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .pattern-grid {
        grid-template-columns: 1fr;
    }
}

.pattern-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-solid);
}

.pattern-title {
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.subject-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
}

.subject-row:last-child {
    border-bottom: none;
}

.subject-info {
    flex: 1;
}

.subject-name {
    font-weight: 600;
    color: var(--text-primary);
}

.subject-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.subject-numbers {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.subject-q-m {
    font-weight: 700;
    color: var(--accent-light);
}

.subject-timer {
    font-size: 12px;
    color: var(--warning);
    font-weight: 500;
}

/* Accordion Syllabus & Helpdesk */
.accordion-item {
    border: 2px solid var(--border);
    background: var(--bg-card);
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition-fast);
    box-shadow: 2px 2px 0px var(--border);
}

.accordion-header {
    padding: 16px 20px;
    background: var(--bg-card);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.accordion-header:hover {
    background: var(--bg-secondary);
}

.accordion-icon {
    transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1), padding var(--transition-normal);
    color: var(--text-secondary);
    font-size: 14px;
}

.accordion-item.active .accordion-content {
    padding: 16px 20px 20px 20px;
    border-top: 1px solid var(--border);
    max-height: 1000px;
}

.syllabus-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.syllabus-list li {
    position: relative;
    padding-left: 18px;
}

.syllabus-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-light);
}

/* Footer styling */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

footer a {
    color: var(--text-secondary);
}

/* Responsive adjust */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .countdown-digits {
        gap: 8px;
    }
    .countdown-item {
        min-width: 70px;
        padding: 10px 6px;
    }
    .countdown-val {
        font-size: 28px;
    }
    .timeline::before {
        left: 21px;
    }
    .timeline-dot {
        left: 10px;
    }
    .timeline-item {
        padding-left: 44px;
    }
}

/* ============================================================
   Interactive Timer Visualizer CSS
   ============================================================ */
.timer-step-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 4px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 2px 2px 0px var(--border);
    margin-bottom: 8px;
}

.timer-step-item:hover {
    background: var(--bg-secondary);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--border);
}

.timer-step-item.active {
    background: var(--accent);
    color: #FFFFFF;
}

.timer-step-item.locked {
    background: #EBE5D9;
    color: var(--text-muted);
}

.timer-step-item.pending {
    background: #F4F1EA;
}

.timer-step-session-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-light);
    text-transform: uppercase;
    margin-top: 14px;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
    padding-left: 2px;
}

.timer-step-section-header {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 6px;
    margin-bottom: 6px;
    padding-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}


/* ============================================================
   Timer Visualizer Interactive Timeline
   ============================================================ */

.timer-step-session-header {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    margin-top: 12px;
    margin-bottom: 4px;
    box-shadow: 2px 2px 0px var(--border);
}

.timer-step-section-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 4px 12px;
    margin-bottom: 8px;
}

.timer-step-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border);
    border-radius: 0px;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-solid);
}

.timer-step-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--border);
}

.timer-step-item.active {
    border-color: var(--accent);
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 4px 4px 0px var(--accent);
}

.timer-step-item.locked {
    opacity: 0.6;
    background: var(--bg-secondary);
    border-style: dashed;
    cursor: not-allowed;
    box-shadow: none;
}

.timer-step-item.pending {
    opacity: 0.9;
}

