.elementor-6147 .elementor-element.elementor-element-ad056a5{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--background-transition:0.3s;}/* Start custom CSS for html, class: .elementor-element-b79acb7 *//* --- VYLEPŠENÝ CHECKLIST A UI --- */

/* Kontejner pro úkoly - přidán lepší scrollbar */
.task-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    overflow-y: auto;
    padding-right: 10px;
}

.task-list::-webkit-scrollbar {
    width: 6px;
}

.task-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Karta úkolu */
.task-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 22px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--apple-ease);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    user-select: none;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Skrytí nativního checkboxu */
.task-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    margin-right: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Stav "Checked" - barva a ikonka */
.task-item input[type="checkbox"]:checked {
    background-color: white;
    border-color: white;
}

/* Vytvoření fajfky pomocí pseudo-elementu */
.task-item input[type="checkbox"]:checked::after {
    content: "\f00c"; /* FontAwesome check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--barva-pozadi);
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Vizuální potlačení hotového úkolu */
.task-item.completed {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.03);
}

.task-item.completed span {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.6);
}

/* --- DROBNÉ ÚPRAVY OSTATNÍCH PRVKŮ --- */

/* Hlavička sekce úkolů */
#check-section .header {
    background: rgba(0, 0, 0, 0.1);
    padding: 15px 25px;
    border-radius: 25px;
    margin-bottom: 25px;
}

/* Lepší zobrazení info boxů ve fakturaci */
.info-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.info-box:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.15);
}

.info-box h3 {
    margin-top: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.info-box p {
    margin: 5px 0;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Animace pro přepínání úrovní */
@keyframes fadeInTask {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.task-item {
    animation: fadeInTask 0.4s ease forwards;
}

/* Layout pro fakturaci - 2 nahoře, 1 dole */
.faktura-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dva sloupce */
    gap: 20px;
    width: 100%;
}

/* Styl pro karty ve fakturaci */
.glass-card {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px !important;
    border-radius: 35px !important;
    transition: transform 0.3s var(--apple-ease), background 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.18) !important;
}

/* Tenhle řádek zajistí, že třetí box bude přes celou šířku */
.glass-card.wide {
    grid-column: 1 / span 2;
}

.info-box h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.sub-info {
    font-size: 0.9rem !important;
    opacity: 0.6;
    font-weight: 400 !important;
    margin-top: 5px !important;
}/* End custom CSS */
/* Start custom CSS for container, class: .elementor-element-ad056a5 *//* Glass hover s vnitřním boderem (inset) */
.entry-btn:hover, 
.btn-large:hover, 
.btn-small:hover, 
.search-result-card:hover, 
.task-item:hover,
.close-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Vnitřní linka (border), která nemění velikost prvku */
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4) !important;
    border: none !important; 
    
    transition: all 0.3s ease;
}

/* Bílé ikony při hoveru */
.btn-large:hover i, 
.search-result-card:hover i {
    color: white !important;
}

<script>
    const levelData = {
        1: { title: "Lvl 1: Technické základy", tasks: ["Podepsat NDA", "Mail Setup & Gmail podpis", "Kalendář a dovolené", "Basecamp projekty", "Dropbox složky", "Fakturace deadline", "WhatsApp skupiny"] },
        2: { title: "Lvl 2: Social & Vibe", tasks: ["Socialtalk představení", "Buddy a kancl tour", "Oběd s týmem", "Studio tour", "Poslední 3 kampaně"] },
        3: { title: "Lvl 3: Deep Dive", tasks: ["TikTok Trend-spotting", "Vlastní realizace", "Analýza kanálů značek"] }
    };

    let currentLevel = 1;

    // --- PŘEPÍNÁNÍ STRÁNEK ---
    function showSection(id) {
        const target = document.getElementById(id);
        if (!target) return; // Ochrana, pokud sekce na jiné stránce neexistuje
        
        document.querySelectorAll('.section').forEach(s => s.classList.remove('active-section'));
        target.classList.add('active-section');
        
        if (id === 'check-section') loadLevel(currentLevel); 
    }

    // --- NAČÍTÁNÍ CHECKLISTU ---
    function loadLevel(level) {
        currentLevel = level;
        const titleEl = document.getElementById('lvl-main-title');
        if (titleEl) titleEl.innerText = levelData[level].title;
        
        const list = document.getElementById('taskList');
        if (!list) return;

        list.innerHTML = '';
        levelData[level].tasks.forEach((task, index) => {
            const taskId = `task-${level}-${index}`;
            const isDone = localStorage.getItem(taskId) === 'true';
            const div = document.createElement('div');
            div.className = `task-item ${isDone ? 'completed' : ''}`;
            div.innerHTML = `<input type="checkbox" ${isDone ? 'checked' : ''}><span>${task}</span>`;
            div.onclick = () => {
                const check = div.querySelector('input');
                check.checked = !check.checked;
                div.classList.toggle('completed', check.checked);
                localStorage.setItem(taskId, check.checked);
            };
            list.appendChild(div);
        });
    }

    // --- UNIVERZÁLNÍ SMART VYHLEDÁVAČ ---
    function handleSearch(val) {
        const resultsDiv = document.getElementById('searchResults');
        const query = val.toLowerCase().trim();
        
        if (query.length < 2) {
            resultsDiv.style.display = 'none';
            return;
        }

        // 1. Najdeme všechny prvky, které obsahují text (tlačítka, boxy, nadpisy, úkoly)
        const targets = document.querySelectorAll('.btn-large, .info-box h3, .info-box p, .task-item span, h2, .btn-small');
        let matches = [];

        targets.forEach(el => {
            const text = el.innerText.trim();
            if (!text || el.closest('.search-area')) return; // Ignorujeme prázdné a samotný vyhledávač

            if (text.toLowerCase().includes(query)) {
                // Najdeme ID sekce, ve které se text nachází
                const parentSection = el.closest('.section');
                const sectionId = parentSection ? parentSection.id : 'menu-section';
                
                // Určíme název kategorie podle ID sekce
                let category = "Info";
                if (sectionId === 'check-section') category = "Checklist";
                if (sectionId === 'faktura-section') category = "Fakturace";
                if (sectionId === 'menu-section') category = "Hlavní Menu";

                matches.push({
                    title: text,
                    section: sectionId,
                    cat: category
                });
            }
        });

        // 2. Odstraníme duplicity (pokud je stejný text ve stejné sekci)
        const uniqueResults = matches.filter((item, index, self) =>
            index === self.findIndex((t) => (
                t.title === item.title && t.section === item.section
            ))
        );

        // 3. Vykreslíme výsledky
        if (uniqueResults.length > 0) {
            resultsDiv.style.display = 'grid';
            resultsDiv.innerHTML = uniqueResults.map(item => `
                <div class="search-result-card" onclick="goTo('${item.section}')">
                    <span class="category">${item.cat}</span>
                    <span class="title">${item.title}</span>
                </div>
            `).join('');
        } else {
            // Pokud nic nenajdeme přímo, zkusíme prohledat synonyma (např. mail -> fakturace)
            const synonyms = { "mail": "faktura", "peníze": "faktura", "úkol": "check" };
            resultsDiv.style.display = 'grid';
            resultsDiv.innerHTML = `<div style="padding:20px; color:var(--barva-textu-tla); text-align:center; grid-column: 1/-1; opacity:0.5;">Nic jsem nenašel... 🔍</div>`;
        }
    }

    function goTo(sectionId) {
        showSection(sectionId);
        document.getElementById('searchResults').style.display = 'none';
        document.getElementById('globalSearch').value = '';
    }

    function closeSearch(e) {
        const searchResults = document.getElementById('searchResults');
        if (!e.target.closest('.search-area') && searchResults) {
            searchResults.style.display = 'none';
        }
    }

    // Spustit při načtení (pokud checklist existuje)
    if(document.getElementById('taskList')) loadLevel(1);
</script>/* End custom CSS */