@font-face {
    font-family: 'SuleymanFeyzullahoglu';
    src: url('../../SuleymanFeyzullahoglu.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root { 
    --primary: #0891b2;       
    --accent: #06b6d4;        
    --primary-dark: #083344;  
    --speed: #0ea5e9;         
    --pause: #e74c3c;
    --bg: #f8fafc;            
    --highlight: #0ea5e9;     
    --arabic-font: 'SuleymanFeyzullahoglu', serif;
}

body, html {
    margin: 0; padding: 0; width: 100%; height: 100vh;
    font-family: 'Poppins', sans-serif; background: var(--bg);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    overflow: hidden;
    user-select: none;
}

.header-container {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; padding: 12px 20px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 4px solid #000000;
    position: fixed; top: 0; left: 0; width: 100%; box-sizing: border-box; z-index: 1000;
}

.header-left { font-size: 1rem; font-weight: 500; line-height: 1.3; }
.header-left b { font-weight: 700; font-size: 1.3rem; color: #ffffff; letter-spacing: 0.5px; display: block; margin-top: 3px;}

.header-right .reciter-info {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 0.85rem;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-container {
    display: flex; justify-content: center; align-items: flex-start;
    height: 100vh; width: 100%;
    padding-top: max(85px, calc(75px + env(safe-area-inset-top)));
    padding-right: max(10px, env(safe-area-inset-right));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    padding-left: max(10px, env(safe-area-inset-left));
    box-sizing: border-box;
}

.main-wrapper {
    background: white; border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); max-width: 1500px; width: 100%;
    height: 100%; 
    display: flex; flex-direction: column;
    position: relative; overflow: hidden; margin: auto;
    transition: all 0.3s ease;
}

.content-grid { 
    display: flex; gap: 15px; flex: 1; min-height: 0; 
    padding: 12px;
}

.main-wrapper.full-screen-mode {
    max-width: 100% !important; border-radius: 0 !important; height: 100vh !important;
    background: #0f172a; margin: 0; padding-top: 0 !important;
}

.eba-fallback-fullscreen {
    position: fixed !important; top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    z-index: 999999 !important; padding: 0 !important;
}

.visual-section { 
    flex: 2.5; display: flex; flex-direction: column; 
    background: #ffffff; border-radius: 12px; 
    border: 2px solid #7dd3fc; overflow: hidden; position: relative;
    cursor: pointer;
}

.quran-text-container {
    padding: 20px 15px; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; 
    justify-content: center; align-content: center; gap: 10px 15px; 
    text-align: center; direction: rtl; flex-grow: 1; 
    overflow-x: hidden; 
    overflow-y: auto; 
}

.verse-row {
    width: auto; text-align: center; font-family: var(--arabic-font);
    font-size: clamp(1.6rem, min(4.8vh, 5.8vw), 4.2rem); 
    line-height: 1.8; 
    color: #1a1a1a; transition: all 0.3s ease; padding: 4px 8px;
    border-radius: 12px; cursor: pointer; 
    white-space: normal; 
    word-break: keep-all;
    margin: 0;
    display: inline-block;
}

.verse-row.active { 
    color: var(--highlight); 
    transform: scale(1.05);
    background: transparent !important;
    border: none !important;
}

.finished-reading .verse-row {
    color: #1a1a1a !important;
    transition: color 0.5s ease;
}
.finished-reading .verse-row .red-text,
.finished-reading .verse-row .secavent,
.finished-reading .verse-row .med-overlay-mark {
    color: #d32f2f !important;
}

.red-text { color: red !important; }
.secavent { color: red !important; font-size: 0.6em; position: relative; top: -0.4em; margin-right: 2px; display: inline-block; }
.dikey-esre { position: relative; top: 0.5em; display: inline; font-size: 0.85em; }

.ayah-flower {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.1em; height: 1.1em; margin: 0 8px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="none" stroke="%23b8860b" stroke-width="2" stroke-dasharray="2,2"/><circle cx="50" cy="50" r="38" fill="none" stroke="%23b8860b" stroke-width="4"/><circle cx="50" cy="50" r="28" fill="none" stroke="%23b8860b" stroke-width="1.5" opacity="0.6"/></svg>') no-repeat center;
    background-size: contain; vertical-align: middle; position: relative;
}
.ayah-number { font-family: Arial, sans-serif; font-size: 0.45em; font-weight: bold; color: #333; position: absolute; }

.med-overlay-container { position: relative; display: inline-block; direction: rtl; }
.med-overlay-mark { position: absolute; color: red !important; font-size: 1em; pointer-events: none; font-family: var(--arabic-font); z-index: 10; }
.fatha-overlay-mark { position: absolute; top: -0.85em; color: inherit !important; font-size: 1em; pointer-events: none; font-family: var(--arabic-font); z-index: 10; transform: translate(var(--x, 0px), var(--y, 0px)); }
.fatha-istiaze { right: 1.70em; top: -0.75em; }

.control-section {
    flex: 1; display: flex; flex-direction: column;
    justify-content: space-between; 
    background-color: #f0f9ff;
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><g stroke="%230891b2" fill="none" stroke-width="1.2" opacity="0.15"><path d="M20 2 L23 17 L38 20 L23 23 L20 38 L17 23 L2 20 L17 17 Z"/><path d="M7 7 L17 17 M33 7 L23 17 M7 33 L17 23 M33 33 L23 23"/><circle cx="20" cy="20" r="12"/></g></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><g stroke="%230891b2" fill="none" stroke-width="1.2" opacity="0.15"><path d="M20 2 L23 17 L38 20 L23 23 L20 38 L17 23 L2 20 L17 17 Z"/><path d="M7 7 L17 17 M33 7 L23 17 M7 33 L17 23 M33 33 L23 23"/><circle cx="20" cy="20" r="12"/></g></svg>');
    background-position: top left, bottom left;
    background-repeat: repeat-x, repeat-x;
    background-size: 40px 40px;
    padding: 25px 15px; 
    border-radius: 12px;
    gap: 6px; border: 1px solid #7dd3fc; overflow-y: auto;
    min-width: 300px; max-width: 400px;
    cursor: default;
}

.control-content {
    margin: auto 0; 
    display: flex; flex-direction: column; gap: 6px;
    width: 100%;
}

.hat-motif {
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); opacity: 0.6;
    user-select: none; margin: 5px 0;
}
.hat-motif::before, .hat-motif::after {
    content: ''; flex: 1; height: 1.5px;
    background: linear-gradient(to right, transparent, var(--primary) 50%, var(--primary) 100%);
    margin: 0 15px; border-radius: 2px;
}
.hat-motif::after {
    background: linear-gradient(to left, transparent, var(--primary) 50%, var(--primary) 100%);
}
.hat-motif span {
    font-family: var(--arabic-font), 'Amiri', serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.status-box { 
    background: white; padding: 10px; border-radius: 8px; 
    text-align: center; border-left: 4px solid var(--accent);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    flex-shrink: 0;
}
#status-text { font-weight: 700; color: var(--primary); font-size: 0.95rem; text-transform: uppercase; }
#status-detail { font-size: 0.75rem; color: #64748b; margin-top: 4px; font-weight: 600; }

.visual-section .verse-nav {
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
    background: #f0f9ff; padding: 12px; border-top: 1px solid #7dd3fc;
    flex-shrink: 0; z-index: 10; cursor: default;
}
.nav-btn {
    min-width: 36px; height: 36px; border-radius: 18px; border: 1px solid #7dd3fc;
    background: #ffffff; color: var(--primary); font-weight: 700; cursor: pointer;
    font-size: 0.8rem; display: flex; align-items: center; justify-content: center;
    transition: 0.2s; padding: 0 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.nav-btn:hover { background: #e0f2fe; }
.nav-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

#meal-box { 
    background: #fff; border: 1px solid #000000; border-radius: 8px; 
    padding: 10px; text-align: left; display: none; 
    border-left: 4px solid #000000; flex-grow: 1; 
    flex-direction: column; justify-content: center; align-items: flex-start;
}
#meal-box.show { display: flex; animation: fadeIn 0.3s; }
#meal-text { font-size: 0.9rem; color: #34495e; font-weight: 500; line-height: 1.4; text-align: left; width: 100%; display: block; }
.meal-icon { color: #000000; font-size: 1rem; margin-bottom: 5px; display: block; }

#mainMenu {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 8px !important;
    padding-top: 5px !important;
    position: relative !important;
    width: 100% !important;
}

#activityMenu {
    display: none !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 8px !important;
    position: relative !important;
    width: 100% !important;
}

.mode-btn {
    cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 10px 4px; 
    border-radius: 14px; background: #ffffff; border: 1px solid rgba(226, 232, 240, 0.8); 
    font-weight: 700; font-size: 0.65rem; color: #64748b; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    gap: 5px; 
    text-align: center;
    width: 100%; box-sizing: border-box; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    letter-spacing: 0.3px; position: relative; overflow: hidden;
}

.mode-btn::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0; transition: opacity 0.3s;
}

.mode-btn:hover { 
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(8, 145, 178, 0.15), 0 8px 10px -6px rgba(8, 145, 178, 0.1);
    color: var(--primary); border-color: rgba(125, 211, 252, 0.5); background: #f0f9ff;
}

.mode-btn i { font-size: 1.35rem; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); color: #94a3b8; }
.mode-btn:hover i { transform: scale(1.15); color: var(--primary); }

.mode-btn.active-play { background: linear-gradient(135deg, var(--accent), var(--primary)) !important; color: white !important; border: none !important; box-shadow: 0 8px 15px rgba(8, 145, 178, 0.35) !important; }
.mode-btn.active-play i { color: white !important; }

.mode-btn.active-auto { background: linear-gradient(135deg, #f97316, #c2410c) !important; color: white !important; border: none !important; box-shadow: 0 8px 15px rgba(234, 88, 12, 0.35) !important; }
.mode-btn.active-auto i { color: white !important; }

.mode-btn.active-ezber { background: linear-gradient(135deg, #0ea5e9, #0284c7) !important; color: white !important; border: none !important; box-shadow: 0 8px 15px rgba(14, 165, 233, 0.35) !important; }
.mode-btn.active-ezber i { color: white !important; }

.mode-btn.active-meal { background: linear-gradient(135deg, #334155, #0f172a) !important; color: white !important; border: none !important; box-shadow: 0 8px 15px rgba(15, 23, 42, 0.35) !important; }
.mode-btn.active-meal i { color: white !important; }

.mode-btn.active-etkinlik { background: linear-gradient(135deg, #22c55e, #16a34a) !important; color: white !important; border: none !important; box-shadow: 0 8px 15px rgba(34, 197, 94, 0.35) !important; }
.mode-btn.active-etkinlik i { color: white !important; }

.btn-etkinlik { background: linear-gradient(135deg, #22c55e, #16a34a) !important; color: white !important; border: none !important; box-shadow: 0 8px 15px rgba(34, 197, 94, 0.35) !important; }
.btn-etkinlik i { color: white !important; }

.btn-cevap { background: linear-gradient(135deg, #0ea5e9, #0284c7) !important; color: white !important; border: none !important; box-shadow: 0 8px 15px rgba(14, 165, 233, 0.35) !important; }
.btn-cevap i { color: white !important; }

.btn-cikis { background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important; color: white !important; border: none !important; box-shadow: 0 8px 15px rgba(8, 145, 178, 0.35) !important; }
.btn-cikis i { color: white !important; }

.btn-yenile { background: #f8fafc !important; color: #334155 !important; border: 1px solid #cbd5e1 !important; box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;}
.btn-yenile:hover { background: #f1f5f9 !important; border-color: #94a3b8 !important; color: #0f172a !important; }
.btn-yenile i { color: #64748b !important; }

.progress-wrapper { 
    background: #fff; padding: 12px 15px; border-top: 1px solid #7dd3fc; 
    flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; z-index: 10;
    cursor: default;
}
.progress-container { width: 100%; height: 8px; background: #e0f2fe; border-radius: 10px; overflow: hidden; cursor: pointer; }
.progress-bar { height: 100%; background: var(--accent); width: 0%; transition: width 0.1s linear; }

.popover-menu { 
    position: absolute; bottom: 100%; right: 0; background: white; 
    border-radius: 12px; border: 2px solid #7dd3fc; 
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15); display: none; 
    flex-direction: column; gap: 3px; padding: 8px; z-index: 1001; 
    min-width: 120px; margin-bottom: 10px; cursor: default;
}
.popover-menu.show { display: flex; animation: slideUp 0.2s ease-out; }
.menu-option { 
    padding: 8px 12px; border: none; background: #f0f9ff; 
    border-radius: 6px; font-weight: 700; font-size: 0.8rem; 
    color: var(--primary); cursor: pointer; display: flex; 
    justify-content: space-between; align-items: center;
}
.menu-option.active { background: var(--accent); color: white; }

#volumeMenu { padding: 15px 12px; min-width: 160px; }
.vol-slider-container { display: flex; align-items: center; gap: 10px; width: 100%; }
.vol-slider-container i { color: var(--primary); font-size: 1.1rem; width: 20px; text-align: center; }
.volume-slider { flex: 1; height: 5px; accent-color: var(--accent); cursor: pointer; }

.presentation-overlay, .activity-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #ffffff; z-index: 50; display: none; flex-direction: column;
    cursor: default;
}
.presentation-overlay { align-items: center; justify-content: center; }
.presentation-overlay.show { display: flex; animation: fadeIn 0.3s; }

.activity-overlay { align-items: flex-start; justify-content: flex-start; padding: 25px 35px; box-sizing: border-box; overflow-y: auto; }
.activity-overlay.show { display: flex; animation: fadeIn 0.3s; }

.slide-card {
    background: #f0f9ff; border: 2px solid var(--accent); border-radius: 20px;
    padding: 40px 30px; max-width: 85%; text-align: center;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.15); transition: transform 0.3s;
}
.slide-card i.main-icon { font-size: 3.5rem; color: var(--accent); margin-bottom: 20px; }
.slide-card h3 { font-size: 1.8rem; color: var(--primary-dark); margin: 0 0 15px 0; font-weight: 700; }
.slide-card p { font-size: 1.15rem; color: #475569; line-height: 1.6; margin: 0; font-weight: 500;}
.slide-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 30px; }
.slide-nav button {
    background: var(--primary); color: white; border: none; width: 45px; height: 45px;
    border-radius: 25px; cursor: pointer; font-size: 1.2rem; display: flex;
    align-items: center; justify-content: center; transition: 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.slide-nav button:hover { background: var(--accent); transform: scale(1.05); }
.slide-dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 6px; background: #7dd3fc; transition: 0.3s; cursor: pointer; }
.dot.active { background: var(--primary); transform: scale(1.3); width: 20px; }
.close-presentation {
    margin-top: 30px; background: white; border: 2px solid var(--primary);
    color: var(--primary); font-weight: 700; padding: 12px 30px; font-size: 1.1rem;
    border-radius: 30px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 10px;
}
.close-presentation:hover { background: var(--primary); color: white; }

.activity-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; width: 100%; }
.tab-btn { padding: 10px 18px; border-radius: 20px; border: 2px solid #7dd3fc; background: #fff; cursor: pointer; font-weight: 600; color: var(--primary); font-size: 0.85rem; transition: 0.2s; }
.tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

.activity-content { width: 100%; flex: 1; padding-bottom: 20px; }

.word-bank { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 20px; background: #f8fafc; border: 2px dashed #cbd5e1; border-radius: 16px; margin-bottom: 25px; }
.drag-word { background: var(--primary); color: white; padding: 8px 18px; border-radius: 20px; cursor: pointer; font-weight: 600; font-size: 1rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); user-select: none; transition: transform 0.2s, box-shadow 0.2s; }
.drag-word.selected { transform: scale(1.1); box-shadow: 0 0 0 3px #000; z-index: 10; }
.drag-word.dragging { opacity: 0.5; }

.sentence-box { background: #f0f9ff; padding: 20px 25px; border-radius: 16px; border: 1px solid #7dd3fc; line-height: 2.8; font-size: 1.1rem; color: #333; }

.drop-zone { 
    display: inline-flex; align-items: center; justify-content: center; min-width: 100px; height: 38px; 
    border-bottom: 3px solid #94a3b8; background: #f1f5f9; vertical-align: middle; margin: 0 8px; 
    cursor: pointer; border-radius: 6px 6px 0 0; transition: 0.2s; overflow: hidden; padding: 0; 
}
.drop-zone.correct { background: #22c55e; border-color: #16a34a; }
.drop-zone.wrong { background: #ef4444; border-color: #b91c1c; }

.drop-zone .drag-word { 
    margin: 0; padding: 0; width: 100%; height: 100%; display: flex; align-items: center; 
    justify-content: center; font-size: 1.05rem; box-shadow: none; border-radius: 0; 
    background: transparent; color: var(--primary); font-weight: 700; 
}
.drop-zone.correct .drag-word { color: white; background: #22c55e; }
.drop-zone.wrong .drag-word { color: white; background: #ef4444; }

.quiz-item { margin-bottom: 20px; background: #fff; padding: 18px; border-radius: 12px; border: 1px solid #e2e8f0; width: 100%; box-sizing: border-box; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.quiz-question { font-size: 1.05rem; color: var(--primary-dark); font-weight: 600; margin-bottom: 12px; display: block; }
.quiz-option { display: block; padding: 12px 15px; border: 2px solid #e2e8f0; margin-top: 8px; border-radius: 8px; cursor: pointer; transition: 0.2s; font-weight: 500; color: #475569; }
.quiz-option:hover { background: #f8fafc; border-color: #cbd5e1; }
.quiz-option.selected { background: #e0f2fe; border-color: var(--accent); color: var(--primary); }
.quiz-option.correct { background: #dcfce7 !important; border-color: #22c55e !important; color: #166534 !important;}
.quiz-option.wrong { background: #fee2e2 !important; border-color: #ef4444 !important; color: #991b1b !important;}

.sort-zone { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 10px; }
.sort-slot { 
    display: flex; align-items: center; justify-content: center; height: 55px; 
    background: #f1f5f9; border: 2px dashed #cbd5e1; border-radius: 12px; 
    position: relative; transition: 0.2s; font-family: var(--arabic-font); cursor: pointer;
    overflow: hidden;
}
.sort-slot::before {
    content: attr(data-index) '.'; position: absolute; left: -25px; font-family: 'Poppins', sans-serif;
    font-size: 1.1rem; color: #94a3b8; font-weight: 700;
}
.sort-slot.correct { background: #22c55e; border-color: #16a34a; border-style: solid; }
.sort-slot.wrong { background: #ef4444; border-color: #b91c1c; border-style: solid; }

.sort-slot .drag-word { 
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; 
    border-radius: 0; padding: 0 !important; box-shadow: none; font-size: 2.2rem; 
    background: transparent; font-family: var(--arabic-font); color: var(--primary);
}
.sort-slot.correct .drag-word { background: #22c55e; color: white; }
.sort-slot.wrong .drag-word { background: #ef4444; color: white; }

#wordBank4 .drag-word {
    font-family: var(--arabic-font) !important;
    font-size: 2.2rem !important;
    padding: 4px 20px !important; 
    border-radius: 12px !important;
    line-height: 1.4 !important;
}

.stats-container { background: #fff; padding: 25px; border-radius: 16px; border: 2px solid #e2e8f0; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.stat-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 1rem;}
.stat-table th, .stat-table td { padding: 12px; border: 1px solid #cbd5e1; text-align: center; }
.stat-table th { background: var(--primary); color: white; font-weight: 600; }
.stat-table tr:nth-child(even) { background: #f8fafc; }
.stat-total { background: #f1f5f9; padding: 15px; border-radius: 12px; border: 2px solid var(--accent); margin-top: 20px;}

.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.7); z-index: 9999; display: flex; 
    align-items: center; justify-content: center; backdrop-filter: blur(5px); 
}
.modal-overlay.hidden { display: none !important; }
.modal-box { 
    background: white; width: 95%; max-width: 600px; border-radius: 16px; 
    padding: 20px; text-align: left; box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; cursor: default;
}
.modal-scroll-area { overflow-y: auto; flex: 1; padding-right: 5px; margin-bottom: 10px; }
.guide-item { display: flex; gap: 12px; align-items: start; margin-bottom: 12px; border-bottom: 1px solid #f0f9ff; padding-bottom: 12px; }
.guide-item i { min-width: 30px; text-align: center; font-size: 1.2rem; color: var(--primary); }
.guide-content b { display: block; font-size: 0.85rem; color: var(--primary); text-transform: uppercase; }
.guide-content span { font-size: 0.75rem; color: #475569; line-height: 1.5; }
.btn-manual { background: var(--accent); color: white; padding: 14px; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; font-size: 1.1rem; width: 100%; flex-shrink: 0; transition: 0.2s;}
.btn-manual:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.15);}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media print {
    body { background: white !important; }
    .header-container, .control-section, .quran-text-container, .progress-wrapper, .verse-nav, .activity-tabs, .btn-manual, .hat-motif { display: none !important; }
    .main-container { padding: 0 !important; }
    .main-wrapper { box-shadow: none !important; height: auto !important; overflow: visible !important; }
    .visual-section { border: none !important; box-shadow: none !important; overflow: visible !important; display: block !important; }
    .activity-overlay { position: static !important; overflow: visible !important; display: block !important; padding: 0 !important; }
    #act1, #act2, #act3, #act4 { display: none !important; }
    #act5 { display: block !important; }
    .stats-container { border: none; box-shadow: none; padding: 0;}
    .student-info-form { border: none !important; box-shadow: none !important; padding: 0 !important; margin-bottom: 30px !important; }
    .student-info-form input { border: none !important; border-bottom: 1px solid #333 !important; border-radius: 0 !important; padding: 5px 0 !important; font-size: 1rem !important; background: transparent !important; }
}

@media screen and (max-width: 992px) {
    .content-grid { flex-direction: column-reverse; } 
    .visual-section { height: 45vh; min-height: 350px; }
    .control-section { min-width: 0; max-width: none; }
    .verse-row { font-size: clamp(1.4rem, 5.0vw, 3.5rem); line-height: 1.9; }
    .slide-card h3 { font-size: 1.4rem; }
    .slide-card p { font-size: 1rem; }
    .sentence-box { line-height: 2.2; font-size: 1rem; padding: 15px; }
    .activity-overlay { padding: 15px; }
    .sort-slot { margin-left: 25px; height: 50px; }
    .sort-slot .drag-word { font-size: 1.8rem; }
    #wordBank4 .drag-word { font-size: 1.8rem !important; padding: 6px 15px !important; }
}