/* --- THEME VARIABLES AND BASE STYLES --- */
:root {
    --body-bg: #f8fafc; --card-bg: #ffffff; --text-primary: #111827; --text-secondary: #4b5563; --text-light: #6b7280;
    --border-color: #e5e7eb; --header-bg: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); --accent-color: #3b82f6;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.07); --glow-color: rgba(22, 163, 74, 0.7); --modal-overlay: rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] {
    --body-bg: #111827; --card-bg: #1f2937; --text-primary: #f9fafb; --text-secondary: #9ca3af; --text-light: #6b7280;
    --border-color: #374151; --header-bg: linear-gradient(135deg, #1f2937 0%, #374151 100%); --glow-color: rgba(74, 222, 128, 0.6);
    --modal-overlay: rgba(0, 0, 0, 0.7);
}
body { background-color: var(--body-bg); color: var(--text-secondary); transition: background-color 0.3s ease; }

/* --- DYNAMIC DARK BACKGROUNDS --- */
[data-theme="dark"] .dark-bg-1 { background: radial-gradient(ellipse at top, #374151, #111827); }
[data-theme="dark"] .dark-bg-2 { background: radial-gradient(ellipse at top, #3c2a4d, #1e1528); }
[data-theme="dark"] .dark-bg-3 { background: radial-gradient(ellipse at top, #1e40af, #111827); }
[data-theme="dark"] .dark-bg-4 { background: radial-gradient(ellipse at top, #064e3b, #0c2a23); }
[data-theme="dark"] .dark-bg-5 { background: radial-gradient(ellipse at top, #5c2c3b, #2a151b); }

/* --- MAIN LAYOUT & HEADER --- */
.batch-schedule-container { display: flex; flex-direction: column; padding: 20px; height: calc(100vh - 80px); box-sizing: border-box; }
.schedule-header { background: var(--header-bg); color: white; padding: 15px 25px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow); flex-shrink: 0; }
.header-right { display: flex; align-items: center; gap: 15px; }
.current-time { background: rgba(255, 255, 255, 0.1); padding: 8px 15px; border-radius: 20px; font-weight: 600; }
.fullscreen-btn { background: rgba(255, 255, 255, 0.1); color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; }
.fullscreen-btn:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.1); }

/* --- SLIDER STYLES (FADE & ZOOM ANIMATION) --- */
.batch-slider-wrapper { position: relative; margin-top: 20px; border-radius: 12px; flex-grow: 1; }
.batch-slider { position: relative; width: 100%; height: 100%; }
.batch-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--card-bg); border-radius: 12px; opacity: 0; transform: scale(0.95); transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out, box-shadow 0.5s ease; z-index: 0; }
.batch-slide.active { opacity: 1; transform: scale(1); z-index: 1; }
.current-running-glow { box-shadow: 0 0 35px var(--glow-color); border: 2px solid var(--glow-color); }
.slide-content { padding: 3vw 4vw; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; }

/* --- SPECIAL "ATTENTION" SLIDE --- */
.special-slide { display: flex; align-items: center; justify-content: center; text-align: center; }
.attention-title { font-size: 6rem; font-weight: 900; color: var(--text-primary); margin: 0; }
.attention-subtitle { font-size: 2rem; color: var(--text-secondary); }

/* --- SLIDE CONTENT STYLES (BIGGER & BOLDER) --- */
.slide-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--border-color); padding-bottom: 20px; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.batch-timing { font-size: 3.5rem; font-weight: 800; color: var(--text-primary); }
.status-badge { padding: 10px 25px; border-radius: 30px; font-size: 1.2rem; font-weight: 700; }
.request-topic-btn { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); border: 1px solid var(--border-color); padding: 10px 20px; border-radius: 30px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.request-topic-btn:hover { background: var(--accent-color); color: white; border-color: var(--accent-color); }
.slide-body { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.batch-title { font-size: 5rem; font-weight: 900; color: var(--text-primary); margin: 0; line-height: 1.1; }
.batch-subject { font-size: 3rem; font-weight: 600; color: var(--accent-color); margin: 10px 0 40px 0; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-item { display: flex; align-items: center; gap: 20px; }
.info-item i { font-size: 3rem; color: var(--accent-color); }
.info-item span { font-size: 1.2rem; color: var(--text-light); font-weight: 500; text-transform: uppercase; }
.info-item p { font-size: 2rem; color: var(--text-secondary); font-weight: 700; margin: 0; }
.slide-footer { border-top: 2px solid var(--border-color); padding-top: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.current-topic h4 { font-size: 1.2rem; color: var(--text-light); font-weight: 500; margin: 0 0 5px 0; text-transform: uppercase; }
.current-topic p { font-size: 2rem; color: var(--text-secondary); font-weight: 700; margin: 0; }
.progress-area { width: 50%; }
.progress-info { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; }
.progress-container { height: 20px; background-color: var(--border-color); border-radius: 10px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 10px; transition: width 1s ease-in-out; }

/* --- COUNTDOWN TIMER --- */
.countdown-timer { position: absolute; top: 20px; right: 20px; z-index: 5; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }
.timer-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-bg-circle { fill: none; stroke: var(--border-color); stroke-width: 8; }
.timer-progress-circle { fill: none; stroke: var(--accent-color); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 283; }
.timer-icon { font-size: 1.5rem; color: var(--text-secondary); }
@keyframes countdown { from { stroke-dashoffset: 283; } to { stroke-dashoffset: 0; } }

/* --- NAVIGATION & OTHER --- */
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.3); color: white; border: none; cursor: pointer; padding: 15px; font-size: 24px; z-index: 10; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.batch-slider-wrapper:hover .slider-nav { opacity: 1; }
.theme-switch-wrapper { display: flex; align-items: center; }
.theme-switch { position: relative; display: inline-block; width: 50px; height: 24px; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: #3742fa; } input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; } .slider.round:before { border-radius: 50%; }
.batch-schedule-container:fullscreen { width: 100%; height: 100%; padding: 20px; }
.status-running { background-color: #d1fae5; color: #065f46; } .status-upcoming { background-color: #dbeafe; color: #1e40af; } .status-completed { background-color: #f3f4f6; color: #374151; }
[data-theme="dark"] .status-running { background-color: #064e3b; color: #a7f3d0; } [data-theme="dark"] .status-upcoming { background-color: #1e3a8a; color: #bfdbfe; } [data-theme="dark"] .status-completed { background-color: #374151; color: #d1d5db; }
.progress-running { background: linear-gradient(90deg, #10b981, #34d399); } .progress-upcoming { background: linear-gradient(90deg, #3b82f6, #60a5fa); } .progress-completed { background: linear-gradient(90deg, #6b7280, #9ca3af); }
.slider-nav.prev { left: 20px; } .slider-nav.next { right: 20px; }

/* --- BEAUTIFUL MODAL --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--modal-overlay); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 16px; width: 90%; max-width: 500px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transform: scale(0.9); transition: transform 0.3s ease; }
.modal-overlay.visible .modal-content { transform: scale(1); }
.modal-header { padding: 20px 25px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 1.5rem; color: var(--text-primary); margin: 0; }
.close-btn { background: none; border: none; font-size: 2rem; color: var(--text-secondary); cursor: pointer; transition: color 0.2s ease; }
.close-btn:hover { color: var(--text-primary); }
.modal-body { padding: 25px; }
.modal-description { color: var(--text-secondary); margin-bottom: 25px; font-size: 1rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }
.form-group input { width: 100%; box-sizing: border-box; padding: 12px 15px; background: var(--body-bg); border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; color: var(--text-primary); transition: all 0.2s ease; }
.form-group input:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 20%, transparent); }
.submit-btn { width: 100%; background: var(--accent-color); color: white; border: none; padding: 15px; border-radius: 8px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 10px; }
.submit-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }