  /* --- SAME CSS AS BEFORE --- */
        /* --- STYLISH HELP BUTTONS CSS --- */
.setup-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    border-left: 5px solid #3498db;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.help-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Stylish Video Button */
.video-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%); /* YouTube Gradient */
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 75, 43, 0.6);
}

.video-btn span {
    font-size: 18px;
}
/* Add this to your existing CSS styles */

.pdf-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%); /* Purple Gradient */
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(142, 45, 226, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 45, 226, 0.6);
}

.pdf-btn span {
    font-size: 18px;
}
/* Stylish Audio Button */
.audio-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    position: relative;
    z-index: 1;
    outline: none;
}

.audio-btn:hover {
    transform: scale(1.1);
}

/* The Sound Frequency Effect (Multi-layer Ripple) */
.audio-btn.playing {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); /* Green for playing */
    animation: pulse-audio 2s infinite;
}

.audio-btn.playing::before,
.audio-btn.playing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(56, 239, 125, 0.6);
    z-index: -1;
    animation: sound-wave 2s infinite;
}

.audio-btn.playing::after {
    animation-delay: 1s; /* Offset for continuous wave effect */
    background: rgba(56, 239, 125, 0.4);
}

@keyframes sound-wave {
    0% { width: 100%; height: 100%; opacity: 0.8; }
    100% { width: 300%; height: 300%; opacity: 0; }
}

@keyframes pulse-audio {
    0% { box-shadow: 0 0 0 0 rgba(56, 239, 125, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(56, 239, 125, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 239, 125, 0); }
}
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; padding: 20px; }
        .container { max-width: 1400px; margin: 0 auto; background: white; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); overflow: hidden; display: flex; flex-direction: column; min-height: 90vh; }
        .header { background: linear-gradient(135deg, #3498db, #2980b9); color: white; padding: 25px; text-align: center; }
        .header h1 { font-size: 28px; margin-bottom: 5px; }
        .tabs { display: flex; background: #34495e; overflow-x: auto; flex-wrap: wrap; }
        .tab { padding: 15px 20px; color: white; cursor: pointer; border: none; background: transparent; font-size: 14px; transition: background 0.3s; }
        .tab:hover { background: rgba(255,255,255,0.1); }
        .tab.active { background: white; color: #34495e; }
        .content { padding: 30px; flex: 1; }
        .tab-content { display: none; }
        .tab-content.active { display: block; }
        .year-selector { display: flex; gap: 15px; margin-bottom: 25px; justify-content: center; flex-wrap: wrap; }
        .year-btn { padding: 15px 40px; background: white; border: 3px solid #3498db; border-radius: 8px; cursor: pointer; font-size: 18px; font-weight: 600; color: #3498db; transition: all 0.3s; }
        .year-btn.active { background: #3498db; color: white; }
        .form-group { margin-bottom: 20px; }
        label { display: block; margin-bottom: 8px; font-weight: 600; color: #2c3e50; }
        input, select { width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 6px; font-size: 14px; }
        .btn { padding: 12px 30px; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; transition: all 0.3s; font-weight: 600; }
        .btn-primary { background: #3498db; color: white; }
        .btn-success { background: #27ae60; color: white; }
        .btn-danger { background: #e74c3c; color: white; padding: 8px 15px; font-size: 14px; }
        .btn-edit { background: #f39c12; color: white; padding: 8px 15px; font-size: 14px; }
        .btn-secondary { background: #7f8c8d; color: white; }
        .teacher-module { background: #f8f9fa; padding: 25px; border-radius: 8px; margin-bottom: 30px; }
        .teacher-input-section { display: flex; gap: 10px; margin-bottom: 20px; }
        .teacher-list-container { background: white; border-radius: 8px; padding: 20px; min-height: 100px; max-height: 400px; overflow-y: auto; }
        .teacher-item { display: flex; justify-content: space-between; align-items: center; background: #f8f9fa; padding: 15px; border-radius: 6px; margin-bottom: 10px; border-left: 4px solid #3498db; }
        .stream-btn { padding: 15px 30px; background: white; border: 2px solid #e74c3c; color: #c0392b; border-radius: 8px; cursor: pointer; font-size: 16px; font-weight: 600; min-width: 150px; transition: all 0.3s; }
        .stream-btn.active { background: #e74c3c; border-color: #e74c3c; color: white; }
        .stream-btn.completed { background: #27ae60; border-color: #219150; color: white; }
        .combination-btn { padding: 12px 15px; background: white; border: 2px solid #e74c3c; color: #c0392b; border-radius: 6px; cursor: pointer; font-size: 13px; display: flex; gap: 10px; transition: all 0.2s; }
        .combination-btn:hover { background: #fdeea2; }
        .combination-btn.selected { background: #27ae60; border-color: #219150; color: white; }
        .combination-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-top: 10px; }
        .info-message { background: #e8f4f8; padding: 15px; border-radius: 6px; border-left: 4px solid #3498db; margin-bottom: 20px; }
        .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 30px; }
        .stat-card { background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 20px; border-radius: 8px; text-align: center; }
        .stat-card .number { font-size: 32px; font-weight: bold; }
        table { width: 100%; border-collapse: collapse; margin-top: 15px; background: white; }
        th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; font-size: 13px; }
        th { background: #34495e; color: white; font-weight: 600; position: sticky; top: 0; }
        .duty-table-container { overflow-x: auto; margin-top: 20px; max-height: 600px; overflow-y: auto; }
        .duty-table th { background: #2c3e50; }
        .duty-table .date-cell { background: #ecf0f1; font-weight: bold; }
        .duty-table .session-cell { background: #bdc3c7; font-weight: 600; }
        .duty-table .teacher-cell { background: #e8f4f8; font-size: 11px; text-align: center; }
        .duty-table .teacher-cell.on-duty { background: #d4edda; color: #155724; font-weight: 600; cursor: pointer; transition: background 0.2s; }
        .duty-table .teacher-cell.on-duty:hover { background: #c3e6cb; text-decoration: underline; }
        .duty-action-footer { display: flex; justify-content: flex-end; align-items: center; gap: 15px; margin-top: 20px; padding-top: 15px; border-top: 1px solid #eee; }
        .stream-buttons { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }
        .card { padding: 20px; border-radius: 10px; color: white; cursor: pointer; transition: all 0.3s; background: linear-gradient(135deg, #00d2ff, #3a7bd5); margin-bottom: 10px; position: relative;}
        .cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
        .schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
        .schedule-card { background: #f8f9fa; padding: 15px; border-radius: 6px; border-left: 4px solid #3498db; position: relative; }
        .schedule-card h4 { color: #2c3e50; margin-bottom: 5px; }
        .schedule-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 5px; }
        .subject-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: 200px; overflow-y: auto; background: #f9f9f9; padding: 10px; border: 1px solid #ddd; border-radius: 6px; }
        .subject-checkbox-item { display: flex; align-items: center; gap: 8px; font-size: 13px; background: white; padding: 5px; border-radius: 4px; border: 1px solid #eee; }
        .subject-checkbox-item input { width: auto; }
        .seating-controls { display: flex; flex-wrap: wrap; gap: 15px; align-items: flex-end; margin-bottom: 20px; background: #f8f9fa; padding: 20px; border-radius: 8px; }
        .seating-controls .control-item { flex: 1; min-width: 200px; }
        .seating-controls .btn-group { display: flex; gap: 10px; padding-bottom: 2px; }
        .visual-seating-container { margin-top: 30px; border-top: 2px dashed #bdc3c7; padding-top: 20px; background: #f0f2f5; padding: 20px; }
        .room-layout { background: white; border: 2px solid #0000ff; margin-bottom: 30px; padding: 15px; page-break-inside: avoid; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
        .room-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #0000ff; padding-bottom: 10px; margin-bottom: 15px; color: #0000ff; font-weight: bold; }
        .room-header-center { text-align: center; }
        .invigilator-box { border: 1px solid #0000ff; padding: 5px 15px; font-size: 14px; background: #eef1f6; min-width: 200px; text-align: center; }
        .room-columns-wrapper { display: flex; gap: 30px; }
        .room-column { flex: 1; border: 1px dashed #bdc3c7; padding: 10px; background: #fafafa; }
        .room-column h4 { text-align: center; color: #7f8c8d; font-size: 12px; text-transform: uppercase; margin-bottom: 10px; letter-spacing: 1px; }
        .desks-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
        .desk-container { display: flex; align-items: stretch; border: 1px solid #ccc; margin-bottom: 5px; }
        .desk-label { background: #e9ecef; padding: 10px; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #555; border-right: 1px solid #ccc; width: 60px; }
        .seat-pair { flex: 1; display: flex; }
        .seat-item { flex: 1; padding: 8px; background: #fff; font-size: 11px; position: relative; }
        .seat-item.left-seat { border-right: 1px solid #eee; }
        .seat-item.middle-seat { border-right: 1px solid #eee; border-left: 1px solid #eee; }
        .desk-container.three-seater .seat-item { width: 33.33%; flex: none; }
        .seat-regno { font-weight: bold; font-size: 12px; color: #0000ff; }
        .seat-name { margin-top: 2px; color: #333; word-wrap: break-word; font-weight: 600; }
        .seat-subject { font-size: 10px; color: #555; font-style: italic; margin-top: 1px; }
        .stream-tag { font-size: 9px; padding: 1px 4px; border-radius: 4px; color: white; display: inline-block; margin-top: 2px; }
        .group-science .stream-tag { background: #3498db; }
        .group-commerce .stream-tag { background: #e67e22; }
        .group-humanities .stream-tag { background: #9b59b6; }
        .empty-seat { color: #ccc; font-style: italic; padding: 10px; }
        @media print { body * { visibility: hidden; height: 0; overflow: hidden; } }
        .reports-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
        .report-card { background: white; border: 1px solid #e0e0e0; border-radius: 10px; padding: 25px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
        .report-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: #3498db; }
        .report-icon { font-size: 40px; margin-bottom: 15px; }
        .report-title { font-size: 18px; font-weight: 600; color: #2c3e50; margin-bottom: 10px; }
        .report-desc { font-size: 13px; color: #7f8c8d; }
        .main-footer { background: #f1f2f6; padding: 20px; border-top: 1px solid #ddd; display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: auto; }
        .footer-action-group { display: flex; gap: 15px; }
        .student-filter-buttons { display: flex; gap: 10px; margin-bottom: 15px; }
        .filter-btn { padding: 8px 15px; border: 2px solid #3498db; color: #3498db; background: white; border-radius: 5px; cursor: pointer; transition: all 0.2s; font-weight: 600; }
        .filter-btn.active { background: #3498db; color: white; }
        .action-btns { display: flex; gap: 5px; }
        .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); overflow: auto;}
        .modal-content { background-color: #fff; margin: 5% auto; padding: 30px; border-radius: 10px; width: 90%; max-width: 600px; position: relative; animation: slideDown 0.3s; }
        .close-modal { position: absolute; right: 20px; top: 15px; font-size: 28px; font-weight: bold; cursor: pointer; color: #aaa; }
        .close-modal:hover { color: #000; }
        @keyframes slideDown { from { top: -50px; opacity: 0; } to { top: 0; opacity: 1; } }
        .dev-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(18, 18, 30, 0.95); z-index: 99999; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; transition: opacity 0.5s ease-out, visibility 0.5s; }
        .dev-img-container { width: 180px; height: 180px; border-radius: 50%; padding: 5px; background: linear-gradient(45deg, #00d2ff, #3a7bd5); margin-bottom: 25px; box-shadow: 0 0 30px rgba(52, 152, 219, 0.6); animation: pulse-glow 2s infinite; }
        .dev-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #fff; background: #fff url('https://ui-avatars.com/api/?name=Nikhil+Vinayak&background=random&size=256') no-repeat center center; }
        .dev-text { text-align: center; font-family: 'Segoe UI', sans-serif; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
        .dev-title { font-size: 18px; color: #aaa; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
        .dev-name { font-size: 32px; font-weight: 800; background: linear-gradient(to right, #fff, #3498db); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; }
        .dev-school { font-size: 20px; color: #ddd; font-weight: 300; }
        .click-hint { margin-top: 40px; font-size: 14px; color: #777; animation: blink 1.5s infinite; }
        @keyframes pulse-glow { 0% { transform: scale(1); box-shadow: 0 0 30px rgba(52, 152, 219, 0.6); } 50% { transform: scale(1.05); box-shadow: 0 0 50px rgba(52, 152, 219, 0.9); } 100% { transform: scale(1); box-shadow: 0 0 30px rgba(52, 152, 219, 0.6); } }
        @keyframes blink { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
        .hidden-overlay { opacity: 0; visibility: hidden; pointer-events: none; }
