html, body {
        color-scheme: light dark;
    }

@media (max-width: 480px) {
    .practice-inputs { flex-direction: column !important; }
    .practice-inputs input { width: 100% !important; margin-bottom: 10px; }
}
    /* --- Dashboard Reminder Stylish CSS --- */
    .dashboard-reminder-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
    .d-reminder-card { display: flex; align-items: center; justify-content: space-between; background: var(--bg-card); padding: 15px; border-radius: 15px; border-left: 6px solid var(--warning); box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; overflow: hidden; animation: slideUpFade 0.4s ease-out; }
    @keyframes slideUpFade { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
    .d-reminder-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
    .d-rem-content { display: flex; align-items: center; gap: 15px; flex: 1; }
    .d-rem-icon { background: rgba(245, 158, 11, 0.15); color: var(--warning); width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
    .d-rem-text { font-size: 15px; font-weight: 600; color: var(--text-main); line-height: 1.4; }
    .d-rem-btn { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all 0.3s; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); flex-shrink: 0; margin-left: 10px; }
    .d-rem-btn:hover { transform: scale(1.1) rotate(10deg); box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4); }
    [data-theme="dark"] .d-rem-icon { background: rgba(251, 191, 36, 0.2); }
    /* SweetAlert Global Theme Sync */
.swal2-popup {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
}

.swal2-title, .swal2-html-container {
    color: var(--text-main) !important;
}

.swal2-input, .swal2-select, .swal2-textarea {
    background-color: var(--bg-input) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
}
/* =========================================
       🎨 APP THEMES CSS (ALL COLORS)
       ========================================= */

    /* 🌊 Ocean Blue Theme */
    [data-theme="blue"] {
        --primary: #0ea5e9; --primary-dark: #0284c7; --secondary: #94a3b8;
        --bg-body: #f0f9ff; --bg-card: #ffffff; --bg-input: #e0f2fe;
        --text-main: #0f172a; --text-muted: #475569; --border-color: #bae6fd;
    }

    /* 🍃 Nature Green Theme */
    [data-theme="green"] {
        --primary: #10b981; --primary-dark: #059669; --secondary: #9ca3af;
        --bg-body: #f0fdf4; --bg-card: #ffffff; --bg-input: #dcfce7;
        --text-main: #064e3b; --text-muted: #166534; --border-color: #bbf7d0;
    }

    /* 🌌 Purple Night Theme */
    [data-theme="purple-dark"] {
        --primary: #a855f7; --primary-dark: #9333ea; --secondary: #a1a1aa;
        --bg-body: #2e1065; --bg-card: #3b0764; --bg-input: #4c1d95;
        --text-main: #f3e8ff; --text-muted: #d8b4fe; --border-color: #5b21b6;
    }

/* Yellow-এর পরিবর্তে নতুন Magenta থিম */
[data-theme="magenta"] {
    --primary: #d946ef; 
    --primary-dark: #c026d3; 
    --secondary: #e879f9;
    --bg-body: #fdf4ff; 
    --bg-card: #ffffff; 
    --bg-input: #fae8ff;
    --text-main: #701a75; 
    --text-muted: #86198f; 
    --border-color: #f5d0fe;
}

/* Red-এর পরিবর্তে নতুন Orange Red থিম */
[data-theme="orange-red"] {
    --primary: #ff4500; 
    --primary-dark: #cc3700; 
    --secondary: #ff7340;
    --bg-body: #fff5f2; 
    --bg-card: #ffffff; 
    --bg-input: #ffe8e0;
    --text-main: #802300; 
    --text-muted: #a62d00; 
    --border-color: #ffc3b3;
}

    /* ☀️ Default Light Theme (Root) */
    :root {
        --primary: #4f46e5; --primary-dark: #4338ca; --secondary: #64748b;
        --success: #10b981; --danger: #ef4444; --warning: #f59e0b;
        --info: #3b82f6; --pink: #ec4899; 
        --bg-body: #f3f4f6; --bg-card: #ffffff; --bg-input: #f9fafb;
        --text-main: #1f2937; --text-muted: #6b7280; --border-color: #e2e8f0;
        --radius: 12px; --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        --nav-height: 70px;
    }

    /* 🌙 Dark Mode Theme */
    [data-theme="dark"] {
        --primary: #6366f1; --primary-dark: #4f46e5; --secondary: #94a3b8;
        --bg-body: #0f172a; --bg-card: #1e293b; --bg-input: #334155;
        --text-main: #f1f5f9; --text-muted: #cbd5e1; --border-color: #334155;
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    }
    
    :root {
        --primary: #4f46e5; --primary-dark: #4338ca; --secondary: #64748b;
        --success: #10b981; --danger: #ef4444; --warning: #f59e0b;
        --info: #3b82f6; --pink: #ec4899; 
        --bg-body: #f3f4f6; --bg-card: #ffffff; --bg-input: #f9fafb;
        --text-main: #1f2937; --text-muted: #6b7280; --border-color: #e2e8f0;
        --radius: 12px; --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        --nav-height: 70px;
    }

    [data-theme="dark"] {
        --primary: #6366f1; --primary-dark: #4f46e5; --secondary: #94a3b8;
        --bg-body: #0f172a; --bg-card: #1e293b; --bg-input: #334155;
        --text-main: #f1f5f9; --text-muted: #cbd5e1; --border-color: #334155;
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    }

html, body {
        overflow-x: hidden; /* সাইড স্ক্রল পুরোপুরি বন্ধ করে দেবে */
        max-width: 100%;
    }
    
    body { 
        font-family: 'Poppins', sans-serif; background-color: var(--bg-body); 
        color: var(--text-main); margin: 0; padding: 0; 
        padding-bottom: calc(var(--nav-height) + 20px);
        -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    ul::-webkit-scrollbar { width: 4px; }
    ul::-webkit-scrollbar-track { background: var(--bg-body); }
    ul::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 4px; }

    /* Desktop Centering Fixes */
    header { 
        background: var(--bg-card); padding: 10px 20px;
        position: sticky; top: 0; z-index: 100;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        display: flex; align-items: center; justify-content: space-between;
        height: 60px; box-sizing: border-box;
        transition: background 0.3s ease;
        width: 100%; max-width: 100%; margin: 0; left: 0; right: 0;
    }
    .header-content { display: flex; align-items: center; gap: 12px; }
    #headerLogo { height: 40px; width: auto; border-radius: 6px; display: none; }
    header h1 { margin: 0; font-size: 16px; font-weight: 600; color: var(--primary); line-height: 1.2; }
    #liveClock { font-size: 10px; color: var(--text-muted); font-weight: 500; text-align: right; }

    .container { width: 98%; max-width: 100%; margin: 15px auto; }

    /* --- Bottom Nav Slider CSS --- */
    .bottom-nav {
        position: fixed; bottom: 0; 
        background: var(--bg-card); height: var(--nav-height); width: 100%;
        display: flex; align-items: center;
        box-shadow: 0 -2px 15px rgba(0,0,0,0.08);
        z-index: 990; border-top-left-radius: 15px; border-top-right-radius: 15px;
        transition: background 0.3s ease;
        left: 0; 
        
        /* Slider Properties */
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* Scrollbar লুকানোর জন্য */
    .bottom-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-item { 
        border: none; background: none; display: flex; flex-direction: column; align-items: center; 
        color: var(--text-muted); font-size: 9px; font-weight: 500; padding: 5px 0; 
        transition: 0.2s; cursor: pointer; 
        
       /*ঠিক ৬টি বাটন একসাথে দেখানোর জন্য (100% / 6 = 16.66%) */
        flex: 0 0 16.66%; 
        max-width: 16.66%;
        scroll-snap-align: start;
        box-sizing: border-box;
    }
    /* --- Bottom Nav Arrows CSS --- */
    .nav-arrow-container {
        position: fixed;
        bottom: 0;
        height: var(--nav-height);
        width: 100%;
        left: 0;
        z-index: 995;
        pointer-events: none;
    }
    .nav-arrow {
        position: absolute; /* 🟢 এটি অ্যারোকে জায়গা মতো লক করে রাখবে */
        top: 0;
        height: 100%;
        width: 40px;
        display: none;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        cursor: pointer;
        pointer-events: auto;
        transition: opacity 0.3s ease, transform 0.2s ease;
    }
    .nav-arrow-left {
        left: 0; /* 🟢 একদম বাঁ-দিকে ফিক্সড */
        background: linear-gradient(to right, var(--bg-card) 50%, transparent);
        border-top-left-radius: 15px;
    }
    .nav-arrow-right {
        right: 0; /* 🟢 একদম ডানদিকে ফিক্সড */
        background: linear-gradient(to left, var(--bg-card) 50%, transparent);
        border-top-right-radius: 15px;
    }
    .nav-arrow:active {
        transform: scale(1.1);
    }
    
    .nav-item i { font-size: 18px; margin-bottom: 4px; }
    .nav-item.active { color: var(--primary); }
    .nav-item.active i { transform: translateY(-3px); }
    .tab-buttons { display: none; } 
    .tab-content { display: none; animation: fadeIn 0.3s ease; overflow-x: auto; }
    .tab-content.active { display: block; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

    .dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin-top: 15px; }
    .dashboard-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border-top: 4px solid var(--primary); margin-bottom: 15px; transition: background 0.3s ease; }
    h3 { margin-top: 0; font-size: 16px; margin-bottom: 15px; color: var(--text-main); border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
    
    .summary-box { display: flex; justify-content: space-between; background: var(--bg-input); padding: 15px; border-radius: var(--radius); margin-top: 10px; gap: 10px; border: 1px solid var(--border-color); }
    .summary-box > div { flex: 1; text-align: center; border-right: 1px solid var(--border-color); cursor: pointer; }
    .summary-box > div:last-child { border-right: none; }
    .summary-box h4 { font-size: 11px; color: var(--text-muted); text-transform: uppercase; margin: 0 0 5px 0; }
    .summary-box p { font-size: 18px; font-weight: 700; margin: 0; color: var(--text-main); }
    .clickable-stat { cursor: pointer; } 
    .clickable-stat:active { opacity: 0.7; }
    .summary-collected { color: var(--success) !important; } .summary-due { color: var(--danger) !important; }

    .comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
    .comp-card { background: var(--bg-input); padding: 10px; border-radius: 8px; text-align: center; border: 1px solid var(--border-color); }
    .comp-card strong { color: var(--text-main); }
    .comp-diff { font-size: 12px; font-weight: bold; margin-top: 5px; }
    .diff-up { color: var(--success); } .diff-down { color: var(--danger); }

    .form-group { margin-bottom: 15px; }
    .form-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
    label { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; display: block; }
    input, select, textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 14px; background: var(--bg-input); color: var(--text-main); box-sizing: border-box; }
    input:focus { outline: none; border-color: var(--primary); }

    button, .btn-like { padding: 10px 16px; border-radius: 8px; border: none; font-size: 14px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: white; text-decoration: none; font-family: 'Poppins', sans-serif; }
    .btn-primary { background: var(--primary); } .btn-success { background: var(--success); }
    .btn-danger { background: var(--danger); } .btn-warning { background: var(--warning); color: white; }
    .btn-info { background: var(--info); } .btn-secondary { background: var(--secondary); }
    .btn-whatsapp, .btn-call, .btn-sms, .btn-mail, .btn-receipt, .btn-welcome { font-size: 11px !important; padding: 6px 10px !important; border-radius: 4px; margin: 2px; }
    .btn-whatsapp { background: #25D366; } .btn-call { background: #059669; }
    .btn-sms { background: #d97706; } .btn-mail { background: #2563eb; } .btn-receipt { background: #7c3aed; }
    .btn-welcome { background: #6a1b9a; }

    /* Tables Responsive Design */
    table { width: 100%; border-collapse: separate; border-spacing: 0; }
    
    @media (min-width: 769px) { 
        .dashboard-grid { grid-template-columns: repeat(2, 1fr); } 
        th { background: var(--bg-input); padding: 12px; text-align: left; color: var(--text-muted); font-size: 12px; border-bottom: 1px solid var(--border-color); } 
        td { padding: 12px; border-bottom: 1px solid var(--border-color); color: var(--text-main); vertical-align: middle;} 
        /* Action buttons for Desktop */
        td.action-buttons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
        td.action-buttons button { padding: 8px 12px; font-size: 13px; border-radius: 6px; }
    }
    
    @media (max-width: 768px) {
        thead { display: none; } 
        tr { display: block; background: var(--bg-card); border-radius: 12px; padding: 15px; margin-bottom: 12px; box-shadow: var(--shadow); border: 1px solid var(--border-color); }
        td { display: block; padding: 5px 0; border: none; text-align: left; color: var(--text-main); }
        td.action-buttons { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
        #attendanceTable tr { padding: 12px 12px; margin-bottom: 10px; min-height: auto; display: flex; flex-direction: column; justify-content: space-between; }
        #attendanceTable td { padding: 2px 0; }
        #attendanceTable td.action-buttons { margin-top: 8px; flex-wrap: nowrap; gap: 6px; }
        #attendanceTable td.action-buttons button { padding: 8px 0; font-size: 14px; font-weight: 600; flex: 1; border-radius: 6px; }
        #attendanceTable .student-thumb { width: 42px; height: 42px; }
        #attendanceTable .student-name-link { font-size: 15px; }
        .modal-content { padding: 15px !important; width: 95% !important; }
        .dashboard-card { padding: 15px !important; }

        /* --- Remind Tab Compact Mobile View --- */
        #reminders input:not([type="search"]), 
        #reminders select { padding: 8px 10px !important; font-size: 12px !important; height: 35px !important; }
        #reminders .search-bar input { padding: 8px 10px 8px 35px !important; font-size: 12px !important; height: 35px !important; }
        #reminders button { padding: 8px 10px !important; font-size: 12px !important; height: 35px !important; }
        #reminders .dashboard-card { padding: 12px !important; margin-bottom: 10px !important; }
        #reminders .form-group { margin-bottom: 10px !important; }
        #reminders > div[style*="background: var(--bg-input)"] { padding: 12px !important; margin-bottom: 10px !important; }
        #globalLibraryList > div { padding: 10px !important; gap: 6px !important; }
        #globalLibraryList > div button, #globalLibraryList > div a { height: 30px !important; padding: 5px !important; font-size: 11px !important; }
    }

    /* Status Colors */
    .paid { border-left: 5px solid var(--success) !important; background-color: rgba(16, 185, 129, 0.1) !important; }
    .unpaid { border-left: 5px solid var(--danger) !important; background-color: rgba(239, 68, 68, 0.1) !important; }
    .pending { border-left: 5px solid var(--warning) !important; }
    .has-dues-alert { background-color: rgba(220, 38, 38, 0.1) !important; border-left: 5px solid #dc2626 !important; }
    .inactive-student { opacity: 0.8; filter: grayscale(100%); background: var(--bg-input) !important; border: 1px solid var(--border-color); }
    
    .student-cell { display: flex; align-items: center; width: 100%; }
    .student-thumb { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; margin-right: 15px; border: 2px solid #000 !important; box-shadow: 0 2px 4px rgba(0,0,0,0.1); flex-shrink: 0; }
    .student-info { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
    .student-name-link { font-weight: 600; color: var(--text-main); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; cursor:pointer;}
    .student-phone-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
    .student-time-sub { font-size: 11px; color: var(--text-muted); display: block; }
    .status-present { color: var(--success); font-weight: bold; } .status-absent { color: var(--danger); font-weight: bold; }

    .reminder-item { background: var(--bg-card); padding: 12px; border-radius: 8px; margin-bottom: 8px; border-left: 4px solid var(--warning); display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 3px rgba(0,0,0,0.05); color: var(--text-main); }

    /* Modals - HIDDEN BY DEFAULT */
    .modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(15, 23, 42, 0.8); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
    .modal-content { background-color: var(--bg-card); width: 90%; max-width: 600px; padding: 25px; border-radius: 16px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); max-height: 90vh; overflow-y: auto; position: relative; animation: slideUp 0.3s ease; color: var(--text-main); border: 1px solid var(--border-color); }
    @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    .close-button { float: right; font-size: 28px; color: var(--text-muted); cursor: pointer; }

    .scrollable-list { list-style: none; padding: 5px; margin: 0; max-height: 120px; overflow-y: auto; border: 1px solid var(--border-color); background: var(--bg-input); border-radius: 8px; }
    .scrollable-list li { padding: 5px; border-bottom: 1px solid var(--border-color); font-size: 12px; color: var(--text-main); }
    .scrollable-list li:last-child { border-bottom: none; }

    .search-bar { position: relative; margin-bottom: 20px; }
    .search-bar input { padding-left: 40px; border-radius: 50px; }
    .search-bar::before { content: '\f002'; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
    
    #photoPreviewBox { width: 120px; height: 120px; border-radius: 50%; background: var(--bg-input); margin: 0 auto 15px auto; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 2px dashed var(--secondary); cursor: pointer; }
    
    /* Security Overlay - HIDDEN BY DEFAULT */
    #securityOverlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #e0f7fa; z-index: 9999; flex-direction: column; align-items: center; justify-content: center; color: var(--text-main); }  
    [data-theme="dark"] #securityOverlay { background: var(--bg-body); }
    .pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
    .pin-btn { width: 70px; height: 70px; border-radius: 50%; background: var(--bg-card); display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; border: 1px solid var(--border-color); color: var(--text-main); box-shadow: var(--shadow); transition: all 0.1s ease; }
    .pin-btn:active { background-color: var(--bg-input); transform: scale(0.95); }
    .pin-dots { display: flex; gap: 15px; height: 20px; margin-bottom: 20px; }
    .pin-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--primary); }
    .pin-dot.filled { background: var(--primary); box-shadow: 0 0 10px var(--primary); }

    /* Signature Modal - HIDDEN BY DEFAULT */
    #signatureModal { background: rgba(15, 23, 42, 0.8) !important; display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 3005 !important; }
    .sig-container-wrapper { position: relative; width: 100%; height: 80vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
    .sig-canvas-box { border: 2px dashed #333; background: #fff; position: relative; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
    .sig-toolbar { position: absolute; bottom: 20px; left: 0; width: 100%; display: flex; justify-content: center; gap: 15px; z-index: 2002; }

    /* Welcome Note CSS - HIDDEN BY DEFAULT */
    #welcomeNoteTemplate { display: none; position: absolute; z-index: -100; opacity: 0; top: 0; left: 0; width: 210mm; min-height: 297mm; background: #ffffff; color: #000; font-family: 'Hind Siliguri', sans-serif; padding: 40px; box-sizing: border-box; border: none; pointer-events: none;}
    .wn-watermark { display: none !important; }
    .wn-header { text-align: center; border-bottom: 3px solid #6a1b9a; padding-bottom: 15px; margin-bottom: 25px; position: relative; z-index: 2; }
    .wn-logo { height: 90px; width: auto; margin-bottom: 10px; }
    .wn-title { color: #6a1b9a; margin: 5px 0; font-size: 34px; font-weight: 800; font-family: 'Noto Serif Bengali', serif; text-transform: uppercase; line-height: 1.3; }
    .wn-phone { font-weight: bold; color: #000; margin: 5px 0 0 0; font-size: 22px; }
    .wn-details-box { background: rgba(255, 255, 255, 0.95); border: 2px solid #ddd; padding: 20px; border-radius: 12px; margin-bottom: 25px; display: flex; justify-content: space-between; align-items: flex-start; }
    .wn-info-col { flex: 1; }
    .wn-photo-col { width: 140px; padding-right: 15px; display: flex; justify-content: flex-end; }
    .wn-row { display: flex; margin-bottom: 12px; align-items: center; font-size: 26px; }
    .wn-label { width: 200px; font-weight: bold; color: #333; }
    .wn-val { flex: 1; border-bottom: 2px dotted #333; padding-left: 10px; font-weight: 600; color: #000; }
    #wnStudentPhoto { width: 110px; height: 130px; border: 3px solid #000 !important; object-fit: cover; background: #eee; }
    .wn-welcome-box { background: #fdf2ff; padding: 25px; border-radius: 12px; border-left: 8px solid #6a1b9a; margin-bottom: 30px; text-align: center; }
    .wn-welcome-title { color: #4a148c; margin-top: 0; font-size: 32px; font-weight: bold; }
    .wn-welcome-box p { font-size: 32px; line-height: 1.6; color: #333; margin: 0; font-weight: 500; }
    .wn-rules-box { margin-bottom: 30px; }
    .wn-rules-title { border-bottom: 2px solid #ddd; padding-bottom: 8px; color: #000; font-size: 28px; margin-top: 0; font-weight: bold; }
    .wn-rules-list { list-style: none; padding: 0; margin: 0; }
    .wn-rules-list li { margin-bottom: 15px; padding-left: 40px; position: relative; line-height: 1.5; font-size: 30px; color: #222; }
    .wn-rules-list li::before { content: '🎵'; position: absolute; left: 0; font-size: 24px; }
    .wn-footer { margin-top: 50px; display: flex; justify-content: space-between; align-items: flex-end; }
    .wn-sig-box { text-align: center; width: 280px; }
    .wn-sig-img { height: 70px; display: block; margin: 0 auto; }
    .wn-owner { font-weight: bold; border-top: 2px solid #333; padding-top: 5px; display: block; margin-top: 5px; font-size: 22px; }
    #wnStudentSig { max-height: 140px !important; width: auto; display: block; }

    /* SWEETALERT2 & QR Scanner */
    div:where(.swal2-container) .swal2-popup { background-color: var(--bg-card) !important; color: var(--text-main) !important; border: 1px solid var(--border-color); }
    div:where(.swal2-container) .swal2-title, div:where(.swal2-container) .swal2-html-container, div:where(.swal2-container) .swal2-content { color: var(--text-main) !important; }
    div:where(.swal2-container) .swal2-close { color: var(--text-muted) !important; }
    div:where(.swal2-container) .swal2-close:hover { color: var(--primary) !important; }
    div:where(.swal2-container) .swal2-input, div:where(.swal2-container) .swal2-textarea, div:where(.swal2-container) .swal2-select { background: var(--bg-input) !important; color: var(--text-main) !important; border: 1px solid var(--border-color) !important; }
    div:where(.swal2-container) .swal2-input:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 1px var(--primary) inset !important; }
    div:where(.swal2-container) .swal2-timer-progress-bar { background: var(--primary) !important; }
    div:where(.swal2-container) { z-index: 20000 !important; display: flex !important; align-items: center !important; justify-content: center !important; }
    div:where(.swal2-popup) { margin: auto !important; }
    
    #qr-reader-box { color: var(--text-main) !important; background: var(--bg-card) !important; border: 1px solid var(--border-color) !important; }
    #qr-reader-box span, #qr-reader-box a { color: var(--text-main) !important; }
    #qr-reader-box button { background-color: var(--primary) !important; color: white !important; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; margin: 5px; }
    #qr-reader-box select { background: var(--bg-input) !important; color: var(--text-main) !important; border: 1px solid var(--border-color) !important; padding: 5px; border-radius: 5px; }