/* ==========================================================================
   1. FONTOVI I VARIJABLE
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Nunito:wght@400;500;600;700&display=swap');

:root {
    --primary: #145234;
    --bg-creamy: #fdfbf0;
    --text-main: #1e293b;
    --accent-yellow: #fff9c4;
    --accent-green: #f0fdf4;  
    --accent-border-y: #fde68a;
    --accent-border-g: #bbf7d0;
}

/* ==========================================================================
   2. GLOBALNI SETUP
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { 
    height: 100vh; 
    width: 100vw; 
    font-family: 'Nunito', sans-serif;
    overflow: hidden; 
}

/* Osnovni fontovi za knjige (bez agresivne zvjezdice koja kvari naslove) */
.ilmihal1-font {
    font-family: 'Nunito', sans-serif !important;
}

.ilmihal2-font,
.ilmihal3-font,
.quiz-font {
    font-family: 'Nunito', sans-serif !important;
}

/* FIKSNI FONT ZA SVE NASLOVE - Ovo osigurava da Kalam font ne nestane */
h1, h2, .ilmihal-header h2, .tab-btn, #naslov-knjige {
    font-family: 'Kalam', cursive !important;
}

/* RJEČNIK POJMOVI - Podešeno da nasljeđuje font u kojem se nalazi */
.pojam {
    border-bottom: 2px dashed #2e7d32 !important;
    cursor: help !important;
    display: inline !important;
    
    /* Nasljeđivanje fonta: ako je u h1 biće Kalam, ako je u tekstu biće Itim/Lato */
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    text-transform: inherit !important;
}

.pojam:hover {
    background-color: rgba(46, 125, 50, 0.1);
    color: #2e7d32 !important;
}

/* ==========================================================================
   3. LAYOUT SISTEM (Sidebar i Viewer) - OPTIMIZIRANO ZA SAFARI
   ========================================================================== */
/* ===== KARTIČNI LAYOUT ===== */
body {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    min-height: 100dvh;
}

/* #ilmihal-sustav je sada definiran u engine.js */

/* GORNJA TRAKA */
#ilmihal-toprow {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
    height: 72px;
    align-items: stretch;
}

#ilmihal-controls-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-radius: 16px;
    padding: 0 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    flex-shrink: 0;
    align-self: stretch;
    width: 280px;
    box-sizing: border-box;
}

.il-hamburger {
    background: #065f46;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
.il-hamburger:hover { background: #047857; }

#ilmihal-title-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-radius: 16px;
    padding: 0 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    overflow: hidden;
    align-self: stretch;
}

#naslov-knjige {
    font-family: 'Kalam', cursive;
    font-size: 1rem;
    color: #065f46;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

#naslov-lekcije {
    font-family: 'Kalam', cursive;
    font-size: 1.9rem;
    color: #065f46;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ab-sep-title {
    color: #9ca3af;
    flex-shrink: 0;
}

/* DONJI DIO */
#ilmihal-mainrow {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

#ilmihal-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin-left 0.3s ease;
}

#ilmihal-sidebar.closed {
    width: 0;
    opacity: 0;
    margin-left: -16px;
    pointer-events: none;
}

#meni-lista {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

#viewer-container {
    flex: 1;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    overflow: hidden;
    min-width: 0;
}

#ilmihal_frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Sakrij stare elemente */
.ilmihal-header { display: none !important; }
.sidebar-footer { display: none !important; }
.floating-hamburger { display: none !important; }

/* Mobile */
@media (max-width: 768px) {
    #ilmihal-sustav { padding: 10px; gap: 10px; }
    #ilmihal-toprow { height: 52px; }
    #ilmihal-sidebar {
        position: fixed;
        top: 114px; left: 10px;
        height: calc(100dvh - 124px);
        z-index: 1000;
        width: 270px;
    }
    #ilmihal-sidebar.closed { width: 0; opacity: 0; pointer-events: none; }
}
/* ==========================================================================
   4. NAVIGACIJA (Header, Tabovi, Hamburger, Dugmad)
   ========================================================================== */
.ilmihal-header { 
    background: #065f46; /* Umjesto var(--primary) */
    padding: 1rem 1.2rem; /* Simetrično */
    color: white; 
    display: flex; 
    flex-direction: column;
    justify-content: center;
    height: 120px;
}

/* TABOVI ZA IZBOR KNJIGE I, II, III */
.knjiga-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.tab-btn {
    background: #e8f5f0;
    border: 2px solid #065f46;
    color: #065f46;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-family: 'Kalam', cursive;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-btn.active {
    background: #065f46;
    color: white;
    border-color: #065f46;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.ilmihal-header h2 { 
    font-family: 'Kalam', cursive; 
    font-size: 24px;
    text-align: center;
}

/* FLOATING HAMBURGER BUTTON - LEBDI GORE LIJEVO */
.floating-hamburger {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 200000; /* Iznad svega */
    background: var(--primary);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.floating-hamburger:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.floating-hamburger:active {
    transform: scale(0.95);
}

/* accordion stilovi su u engine.js */

/* OZNAKA NAUČENIH LEKCIJA U MENIJU */
.ilmihal-btn.completed {
    color: #2e7d32 !important;
    background-color: #f0fdf4;
    border-left: 6px solid #2e7d32;
}

/* ==========================================================================
   5. LEKCIJA (Body, Text, Hero Image)
   ========================================================================== */
.lesson-body { 
    font-family: 'Nunito', sans-serif !important; 
    background: #fdfbf0 !important; 
    padding: 1rem;
    line-height: 1.8;
    height: 100vh;
    overflow-y: auto !important; 
}

.lesson-container {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: 25px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

@media (max-width: 600px) {
    .lesson-container {
        border-radius: 12px;
        padding: 1rem;
    }
    .lesson-body {
        padding: 0.5rem !important;
    }
}

/* Naslov lekcije — iznad slike */
.lesson-container > h1 {
    font-family: 'Kalam', cursive;
    color: #065f46;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #e5e7eb;
}

h1 { 
    font-family: 'Kalam', cursive; 
    color: var(--primary); 
    font-size: 2.2rem; 
    text-align: center; 
    margin-bottom: 1rem; 
}

.hero-box {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-box img {
    display: block;
    max-width: 756px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.lesson-text { 
    font-family: 'Nunito', sans-serif; 
    font-size: 1.6rem; 
    color: var(--text-main); 
    margin-bottom: 25px; 
}

/* ==========================================================================
   6. UNUTRAŠNJI ACCORDION LEKCIJE
   ========================================================================== */
.lesson-accordion {
    margin-top: 20px;
    border-radius: 20px; 
    margin-bottom: 20px;
    background: white;
}

.lesson-section-btn {
    width: 100%;
    padding: 16px 20px;
    background: #f0fdf4;
    border: 2px solid #059669;
    border-radius: 10px;
    font-family: 'Kalam', cursive;
    font-size: 1.8rem;
    color: #065f46;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
    box-shadow: none;
    margin-bottom: 0;
}

.lesson-section-btn:hover {
    background: #dcfce7;
    border-color: #047857;
}

.lesson-content {
    display: none; 
    padding: 24px;
    background: white;
    border-left: 2px solid #059669;
    border-right: 2px solid #059669;
    border-bottom: 2px solid #059669;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-top: 0; 
}

.lesson-content.active {
    display: block;
}

.section-icon { 
    font-size: 1.2rem; 
    transition: transform 0.3s;
}

/* ==========================================================================
   7. MULTIMEDIJA I BOXOVI (Play, Info, Arabic)
   ========================================================================== */
.audio-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.play-main-btn, .pause-btn, .stop-btn {
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Kalam', cursive;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    font-size: 1.1rem;
}

.play-main-btn { background: var(--primary); }
.pause-btn { background: #d97706; }
.stop-btn { background: #dc2626; }

.info-box, .arabic-card { 
    font-family: 'Nunito', sans-serif; 
    padding: 20px; 
    border-radius: 25px; 
    margin: 20px 0; 
    font-size: 1.5rem; 
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.info-box { background: var(--accent-yellow); border: 3px solid var(--accent-border-y); color: #854d0e; }
.arabic-card {
    background-color: var(--accent-green); /* Tvoja varijabla za svijetlo zelenu */
    border: 2px solid var(--accent-border-g);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center; /* DODANO: Centriranje teksta */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Osiguraj da i arapski tekst unutar boxa bude centriran */
.arabic-text {
    display: block;
    text-align: center;
    font-size: 32px; /* Smanjeno prema prethodnom zahtjevu */
    line-height: 1.8;
    margin: 10px 0;
    direction: rtl; /* Arapski se piše s desna na lijevo */
}
.trans-text { font-size: 1.4rem; font-style: italic; display: block; margin-top: 10px; }

/* ==========================================================================
   8. RESPONZIVNOST (Prilagođavanje za mobitele)
   ========================================================================== */

#mobile-hamburger { display: block; }
.btn-wow, .group-container { display: none; }
.group-container.show { display: block !important; }

@media (max-width: 768px) {
    /* KLJUČNO: Forsiramo skrol na nivou cijele stranice */
    html, body {
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .lesson-body { 
        padding: 20px 15px !important; 
        height: auto !important; 
        min-height: 100vh;
        overflow: visible !important; 
        display: block !important;
        position: relative !important;
    }

    h1 { font-size: 28px; margin-bottom: 15px; }
    .lesson-text { font-size: 1.25rem; line-height: 1.5; margin-bottom: 20px; }
    .info-box, .arabic-card { padding: 20px; margin: 20px 0; font-size: 1.2rem; border-radius: 15px; }
    .lesson-section-btn { padding: 15px; font-size: 1.4rem; }
    .arabic-text { font-size: 34px; }
    .trans-text { font-size: 1.1rem; }

    /* Sidebar postavke na mobitelu */
    /* sidebar mobilni - riješeno gore */

    /* PRILAGOĐENI KVIZ ZA MOBITELE */
    .quiz-container {
        max-height: none !important;    
        overflow: visible !important;   
        padding: 20px 15px;
        border-width: 3px;
        margin-top: 15px;
        margin-bottom: 100px !important; /* Smanjeno jer sada imamo popup feedback */
        background: white;
        display: block !important;      
    }

    .quiz-title { font-size: 1.6rem; border-bottom-width: 2px; }
    .quiz-question { font-size: 1.3rem; margin-bottom: 15px; line-height: 1.4; }
    
    .quiz-option { 
        padding: 12px; 
        font-size: 1.1rem; 
        line-height: 1.3;
        margin-bottom: 8px;
    }

    #quiz-controls {
        margin-top: 20px;
        padding-bottom: 20px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .quiz-btn {
        width: 100%;      
        margin: 5px 0;
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .lesson-footer-nav {
        position: relative !important;
        margin-top: 20px;
        bottom: 0 !important;
    }
}

/* ==========================================================================
   9. KVIZ SISTEM (Desktop & Zajednički stilovi)
   ========================================================================== */

.quiz-container { 
    background: white; 
    padding: 25px; 
    border-radius: 25px; 
    border: 4px solid var(--primary); 
    margin: 20px 0; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

.quiz-title { 
    font-family: 'Kalam', cursive; 
    color: var(--primary); 
    font-size: 2.2rem; 
    text-align: center; 
    margin-bottom: 20px; 
    border-bottom: 3px dashed var(--accent-yellow); 
    padding-bottom: 10px; 
}

.quiz-question { 
    font-weight: bold; 
    margin-bottom: 20px; 
    color: var(--primary); 
    font-size: 1.6rem; 
    line-height: 1.4; 
}

.quiz-options { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.quiz-option { 
    padding: 16px; 
    border: 2px solid #e2e8f0; 
    border-radius: 15px; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    font-size: 1.3rem; 
    background: #f8fafc;
    position: relative;
}

.quiz-option:hover { 
    background: var(--accent-green); 
    border-color: var(--primary); 
    transform: translateY(-2px);
}

/* Stanja opcija */
.quiz-option.correct { 
    background: #dcfce7 !important; 
    border-color: #22c55e !important; 
    color: #166534 !important; 
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.quiz-option.wrong { 
    background: #fee2e2 !important; 
    border-color: #ef4444 !important; 
    color: #991b1b !important;
}

/* Dugmad u kvizu */
.quiz-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 10px;
}

.quiz-btn:hover {
    background: #2d8659;
    transform: translateY(-2px);
}

.retry-btn { 
    margin-top: 15px; 
    background: #dc2626; 
    color: white; 
    border: none; 
    padding: 12px 30px; 
    border-radius: 50px; 
    cursor: pointer; 
    font-family: 'Nunito', sans-serif; 
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.quiz-results { 
    margin-top: 25px; 
    text-align: center; 
    font-size: 1.8rem; 
    font-family: 'Kalam', cursive;
    color: var(--primary);
    padding: 15px;
    border-radius: 15px;
    background: var(--accent-yellow);
    display: none; 
}

#quiz-controls {
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
    padding: 20px 0 0 0;
}

/* ==========================================================================
   10. MODAL SISTEMI (Rječnik i Feedback)
   ========================================================================== */

/* Zajednički stil za pozadinu modala */
#pojam-modal, #quiz-feedback-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Sadržaj modala */
.modal-sadrzaj, .feedback-sadrzaj {
    background: #fdfbf0;
    padding: 30px;
    border-radius: 25px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    border: 6px solid #145234;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    animation: iskoci 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Specifično za Feedback Popup */
.feedback-naslov {
    font-family: 'Kalam', cursive;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.feedback-tekst {
    font-size: 1.3rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.feedback-close-btn {
    background: #145234;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
}

@keyframes iskoci {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Rječnik pojmovi */
.pojam {
    /* Linija ispod pojma */
    border-bottom: 2px dashed #2e7d32 !important;
    
    /* NASLJEĐIVANJE - Ovo popravlja font i veličinu */
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important; /* Boja ostaje ista kao okolina (npr. crna u naslovu) */
    
    cursor: help !important;
    display: inline !important;
}

.pojam:hover {
    background-color: rgba(46, 125, 50, 0.1);
    color: #2e7d32 !important; /* Tek na hover može postati zelen ako želiš */
}
/* ==========================================================================
   11. TABELE, LISTE I POMOĆNI ELEMENTI
   ========================================================================== */

/* Tabele (Zekat, Namaz) */
.zekat-table, .sorting-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #ffffff;
}

.zekat-table th, .zekat-table td, 
.sorting-table th, .sorting-table td {
    border: 2px solid #2e7d32;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
}

.zekat-table th, .sorting-table th {
    background-color: #fff9c4;
    color: #000;
    text-transform: uppercase;
}

.zekat-table td { text-align: left; }

/* Liste */
.lesson-content ol, .lesson-content ul {
    padding-left: 50px; 
    margin-right: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.lesson-content li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Podnaslovi unutar akordiona */
.section-subtitle {
    background-color: #fff9c4;
    text-transform: uppercase;
    display: inline-block;
    padding: 2px 8px;
    margin: 10px 0;
}

/* Arapski tekst i transkripcija */
.arabic-text-large {
    text-align: center;
    font-size: 1.8rem;
    line-height: 2.2;
    direction: rtl;
}

.transliteration {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-top: 15px;
    color: #333;
}

/* ==========================================================================
   12. SIDEBAR FOOTER
   ========================================================================== */

.sidebar-footer {
    flex-shrink: 0;
    background: white;
    padding: 15px;
    text-align: center;
    border-top: 2px solid #e5e7eb;
}

.footer-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 5px;
}

.footer-text {
    color: #145234;
    font-family: 'Kalam', cursive;
    font-size: 1.1rem;
    margin: 0;
    font-weight: bold;
}

@media (max-width: 768px) {
    .sidebar-footer { padding: 15px; }
    .footer-logo { width: 60px; height: 60px; }
    .footer-text { font-size: 1.2rem; }
}
/* ==========================================================================
   13. EDU INDEX STRANICA (/edu/index.html) - DODATO
   ========================================================================== */

/* Pozadina za edu/index.html */
body.edu-index {
    font-family: 'Lora', 'Georgia', serif;
    background: linear-gradient(135deg, #065f46, #0f766e);
    min-height: 100vh;
    padding: 2rem;
    overflow: auto !important;
}

.edu-container {
    max-width: 1200px;
    margin: 0 auto;
}

.edu-header {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.edu-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.edu-header p {
    font-size: 1.3rem;
    opacity: 0.95;
}

.user-info {
    background: rgba(255,255,255,0.2);
    padding: 1rem 2rem;
    border-radius: 15px;
    display: inline-block;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
}

.user-info strong {
    color: #fbbf24;
}

.nivoi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.nivo-card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.nivo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.nivo-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
}

.nivo-title {
    font-size: 2rem;
    color: #065f46;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.nivo-description {
    text-align: center;
    color: #374151;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.nivo-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #065f46;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.3rem;
}

.quick-links {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.quick-links h2 {
    color: #065f46;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-link-btn {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    transition: all 0.3s;
    font-weight: 600;
    justify-content: center;
}

.quick-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Mobilna optimizacija za EDU index */
@media (max-width: 768px) {
    body.edu-index {
        padding: 1rem;
    }

    .edu-header h1 {
        font-size: 2rem;
    }
    
    .nivoi-grid {
        grid-template-columns: 1fr;
    }

    .nav-top {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* ==========================================================================
   15. AUTOMATSKA NAVIGACIJA U LEKCIJAMA (direktan pristup)
   ========================================================================== */

/* Glavni kontejner navigacije */
.lesson-direct-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.8rem 1.5rem 0.8rem 70px; /* Lijevi padding za hamburger */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100000; /* Mora biti veći od sidebara (99999) */
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

/* Breadcrumb navigacija */
.lesson-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.lesson-breadcrumb a {
    color: #059669;
    text-decoration: none;
    transition: all 0.2s;
}

.lesson-breadcrumb a:hover {
    color: #047857;
    text-decoration: underline;
}

.lesson-breadcrumb-separator {
    color: #6b7280;
}

.lesson-breadcrumb-current {
    color: #374151;
    font-weight: 600;
}

/* Navigaciona dugmad */
.lesson-nav-buttons {
    display: flex;
    gap: 0.5rem;
}

.lesson-nav-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.lesson-nav-btn:hover {
    background: #047857;
    transform: translateY(-2px);
}

.lesson-btn-secondary {
    background: #6b7280;
}

.lesson-btn-secondary:hover {
    background: #4b5563;
}

/* Mobilna verzija */
@media (max-width: 768px) {
    .lesson-direct-nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem;
    }
    
    .lesson-nav-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .lesson-breadcrumb {
        font-size: 0.85rem;
    }
}
/* ============================================================================
   NOVI STILOVI - Container za akordione i Footer
   ============================================================================ */

/* Container za liste lekcija unutar akordiona */
.group-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-bottom: 0;
    background: #f0fdf4;
    border-radius: 0;
    border-left: 6px solid #fbbf24;
    border-bottom: 3px solid #fbbf24;
}

.group-container.show {
    max-height: 1000px;
}

/* Footer u lekciji */
.lesson-footer {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #065f46;
    text-align: center;
}

.lesson-footer-text {
    color: #065f46;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 3rem; /* DODAJ - odvoji od dna */

}
/* Ilustracije — ne šire od 756px */
.lesson-container img,
.lesson-image,
.lesson-illustration { max-width: 756px !important; width: 100%; height: auto; }
