

/* ====== Extrahované štýly z VLS_diamant.html ====== */



/* PATCH: readable inputs in lesson meta */
#keg-lesson-meta input,
#keg-lesson-meta textarea {
  color: #000 !important;
  background: #fff !important;
}
#keg-lesson-meta input::placeholder,
#keg-lesson-meta textarea::placeholder {
  color: #666 !important;
}


        body {
            font-family: 'Inter', sans-serif;
            background-color: #121212;
            color: #e0e0e0;
        }
        .gold-border {
            border: 4px solid #D4AF37;
            box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
        }
        .placeholder-text::placeholder {
            color: #a0a0a0;
        }
        .nav-button {
            background-color: #f0f0f0;
            border: 1px solid #ccc;
            color: #333;
            text-align: center;
            transition: background-color 0.2s, transform 0.1s;
        }
        .nav-button:hover {
            background-color: #e0e0e0;
        }
        .nav-button:active {
            transform: scale(0.98);
        }
        #chapter-content ul {
            list-style-position: inside;
        }
        #chapter-content li {
            padding-left: 1rem;
            position: relative;
        }
         #chapter-content li::before {
            content: '•';
            color: #D4AF37;
            font-weight: bold;
            display: inline-block;
            width: 1em;
            margin-left: -1.25em;
            position: absolute;
            left: 1rem;
         }
        .chat-bubble {
            max-width: 80%;
            padding: 0.75rem 1rem;
            word-wrap: break-word;
            line-height: 1.5;
            white-space: pre-wrap;
        }
        .user-message {
            align-self: flex-end;
            background-color: #D4AF37;
            color: #121212;
            border-radius: 1.2rem 1.2rem 0.25rem 1.2rem;
        }
        .ai-message {
            align-self: flex-start;
            background-color: #374151;
            color: #e0e0e0;
            border-radius: 1.2rem 1.2rem 1.2rem 0.25rem;
        }
        .typing-indicator span {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #9ca3af;
            animation: typing 1s infinite;
        }
        .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }
        .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }
        @keyframes typing {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }
        .suggested-question-btn {
            background-color: #4A5568;
            color: #E2E8F0;
            border: 1px solid #718096;
            padding: 6px 12px;
            border-radius: 9999px;
            font-size: 0.875rem;
            transition: all 0.2s ease-in-out;
            cursor: pointer;
        }
        .suggested-question-btn:hover {
            background-color: #2D3748;
            border-color: #D4AF37;
            color: #D4AF37;
        }
        /* Štýly pre ovládanie rýchlosti a posunu */
        .playback-control-button {
             background-color: #4A5568; color: #E2E8F0; border: 1px solid #718096;
             padding: 4px 10px; border-radius: 9999px; font-size: 0.75rem;
             transition: all 0.2s ease-in-out; cursor: pointer; margin: 0 2px;
        }
        .playback-control-button:hover { background-color: #2D3748; border-color: #D4AF37; color: #D4AF37; }
        .playback-control-button.active-speed { background-color: #D4AF37; color: #121212; border-color: #D4AF37; font-weight: bold; }
        /* NOVÝ ŠTÝL: Zlaté tlačidlo kvízu */
        .quiz-button-gold {
            background-color: #D4AF37; /* Zlatá */
            color: #121212; /* Tmavé písmo */
            border-color: #b89b34; /* Tmavší zlatý okraj */
            font-weight: bold;
        }
        .quiz-button-gold:hover {
            background-color: #b89b34; /* Tmavšia zlatá pri hover */
            border-color: #D4AF37;
            color: #121212;
        }

        /* --- ŠTÝLY PRE MASTER KVÍZ (DIAMANTOVÁ DIAGNOSTIKA) --- */
        #master-quiz-container {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.97);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            backdrop-filter: blur(8px);
            transition: opacity 0.3s ease;
        }
        #master-quiz-container.hidden {
            opacity: 0;
            pointer-events: none;
        }
        .master-quiz-card {
            background: #1f2937;
            border-radius: 16px;
            padding: 2.5rem;
            max-width: 600px;
            width: 90%;
            border: 2px solid #D4AF37;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
            color: #e0e0e0;
        }
        .master-quiz-title {
            font-size: 1.75rem; /* 28px */
            font-weight: 700;
            color: #D4AF37;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        .master-quiz-progress-bar {
            height: 8px;
            background: #374151;
            border-radius: 4px;
            margin-bottom: 1.5rem;
            overflow: hidden;
        }
        .master-quiz-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #D4AF37, #f0c450);
            transition: width 0.4s ease;
            width: 0%; /* Default width */
        }
        .master-quiz-question {
            font-size: 1.25rem; /* 20px */
            font-weight: 600;
            margin-bottom: 1.5rem;
        }
        .master-quiz-option {
            display: block;
            width: 100%;
            background: #374151;
            border: 2px solid #4B5563;
            padding: 1rem;
            border-radius: 12px;
            color: #E5E7EB;
            cursor: pointer;
            transition: all 0.3s;
            text-align: left;
            margin-bottom: 0.75rem;
            font-weight: 500;
        }
        .master-quiz-option:hover {
            background: #4B5563;
            border-color: #D4AF37;
        }
        .master-quiz-option.selected {
            background: #D4AF37;
            color: #1F2937;
            border-color: #D4AF37;
            font-weight: 600;
        }
        /* Stavy po odpovedi */
        .master-quiz-option.correct {
            background: #10B981; /* Zelená */
            border-color: #10B981;
            color: white;
        }
        .master-quiz-option.incorrect {
            background: #EF4444; /* Červená */
            border-color: #EF4444;
            color: white;
        }
        .master-quiz-option.disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }
        .master-quiz-btn {
            width: 100%;
            padding: 1rem;
            border: none;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 1rem;
        }
        .master-quiz-btn-primary {
            background: #D4AF37;
            color: #1F2937;
        }
        .master-quiz-btn-primary:hover:not(:disabled) {
            background: #f0c450;
        }
        .master-quiz-btn-secondary {
            background: #4B5563;
            color: #E5E7EB;
        }
        .master-quiz-btn-secondary:hover {
            background: #5a6678;
        }
        .master-quiz-btn:disabled {
            background: #374151;
            color: #9CA3AF;
            cursor: not-allowed;
        }
        .master-quiz-feedback {
            margin-top: 1.5rem;
            padding: 1rem;
            border-radius: 8px;
            font-weight: 500;
        }
        .master-quiz-feedback.correct {
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid #10B981;
            color: #10B981;
        }
        .master-quiz-feedback.incorrect {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid #EF4444;
            color: #EF4444;
        }
        /* --- KONIEC ŠTÝLOV PRE MASTER KVÍZ --- */

        /* PATCH 1 START: Štýly pre Onboarding */
        #keg-onboarding {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            backdrop-filter: blur(5px);
            transition: opacity 0.3s ease;
        }
        #keg-onboarding.hidden {
            opacity: 0;
            pointer-events: none;
        }
        #keg-onboarding .intro-card {
            background: #1f2937;
            border-radius: 16px;
            padding: 2.5rem;
            max-width: 500px;
            width: 90%;
            border: 2px solid #D4AF37;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        }
        #keg-onboarding .progress-bar {
            height: 6px;
            background: #374151;
            border-radius: 3px;
            margin-bottom: 2rem;
            overflow: hidden;
        }
        #keg-onboarding .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #D4AF37, #f0c450);
            transition: width 0.4s ease;
        }
        #keg-onboarding .level-btn {
            background: #374151;
            border: 2px solid #4B5563;
            padding: 1rem;
            border-radius: 12px;
            color: #E5E7EB;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
            font-weight: 500;
        }
        #keg-onboarding .level-btn:hover {
            background: #4B5563;
            border-color: #D4AF37;
            transform: translateY(-2px);
        }
        #keg-onboarding .level-btn.active {
            background: #D4AF37;
            color: #1F2937;
            border-color: #D4AF37;
            font-weight: 600;
            transform: translateY(-2px);
        }
        #keg-onboarding .intro-input {
            width: 100%;
            padding: 1rem;
            background: #374151;
            border: 2px solid #4B5563;
            border-radius: 12px;
            color: white;
            font-size: 1rem;
            transition: all 0.3s;
        }
        #keg-onboarding .intro-input:focus {
            outline: none;
            border-color: #D4AF37;
            box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
        }
        #keg-onboarding .intro-btn {
            width: 100%;
            padding: 1rem;
            background: #D4AF37;
            color: #1F2937;
            border: none;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }
        #keg-onboarding .intro-btn:hover:not(:disabled) {
            background: #f0c450;
            transform: translateY(-2px);
        }
        #keg-onboarding .intro-btn:disabled {
            background: #4B5563;
            color: #9CA3AF;
            cursor: not-allowed;
            transform: none;
        }
        #keg-onboarding .data-controls {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }
        #keg-onboarding .data-btn {
            flex: 1;
            padding: 0.75rem;
            background: #374151;
            border: 2px solid #4B5563;
            border-radius: 8px;
            color: #E5E7EB;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
            font-weight: 500;
        }
        #keg-onboarding .data-btn:hover {
            background: #4B5563;
            border-color: #D4AF37;
        }
        #keg-onboarding .step-content.hidden {
            display: none;
        }
        /* PATCH 3: Štýly pre Import/Export a Hlásenia */
        #keg-profile-controls {
            display: flex;
            gap: 0.5rem; /* Menšia medzera */
            margin-top: 1rem;
            justify-content: center;
        }
        .keg-control-btn {
            background-color: #374151;
            color: #E5E7EB;
            border: 1px solid #4B5563;
            padding: 6px 12px;
            border-radius: 9999px;
            font-size: 0.8rem; /* Menšie písmo */
            transition: all 0.2s ease-in-out;
            cursor: pointer;
        }
        .keg-control-btn:hover {
            background-color: #4B5563;
            border-color: #D4AF37;
            color: #D4AF37;
        }
        #keg-onboarding-messages {
            margin-top: 1rem;
            padding: 0.75rem 1rem;
            border-radius: 8px;
            font-size: 0.9rem;
            text-align: center;
            display: block; /* Zmena z none */
            opacity: 0;
            height: 0;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        #keg-onboarding-messages.success {
            background-color: #10B981; /* Zelená */
            color: #FFFFFF;
            opacity: 1;
            height: auto;
        }
        #keg-onboarding-messages.error {
            background-color: #EF4444; /* Červená */
            color: #FFFFFF;
            opacity: 1;
            height: auto;
        }
        /* Štýly pre nové pole krstného mena */
        #keg-onb-step-1 label {
            display: block;
            font-size: 1rem;
            font-weight: 600;
            color: white;
            margin-bottom: 0.5rem;
        }
        #keg-onb-step-1 small {
            display: block;
            font-size: 0.8rem;
            color: #9CA3AF;
            margin-top: 0.5rem;
            margin-bottom: 1rem;
        }
        /* PATCH 1 END */
		
		/* --- NOVÉ ŠTÝLY: Finálne tlačidlo pre poslednú kapitolu --- */
        .diamond-retest-btn {
            display: inline-block;
            width: 100%;
            padding: 0.75rem 1.5rem; /* py-3 px-6 */
            font-size: 1.125rem; /* text-lg */
            font-weight: 600;
            color: white;
            text-align: center;
            background: linear-gradient(145deg, #3B82F6, #2563EB); /* Modrý prechod */
            border: none;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 1.5rem; /* odsadí ho od odrážok */
        }
        .diamond-retest-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
            background: linear-gradient(145deg, #2563EB, #3B82F6);
        }
        .diamond-retest-btn:active {
            transform: translateY(0);
        }
    


  #keg-lesson-meta { display:none !important; }



  #kegi-extra-notes-section { margin-top: 50px !important; }

/* --- KEGI NOTES: collapse/expand toggle button --- */
.kegi-toggle-btn{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.5rem .875rem;border:1px solid #D4AF37;border-radius:9999px;
  background:transparent;color:#E9C74D;cursor:pointer;
  font-weight:600; transition:all .2s ease;
}
.kegi-toggle-btn:hover{background:rgba(212,175,55,.08)}

/* KROK 3: CSS (Tréningový plán – dni v týždni) */

/* Štýl pre tlačidlá dní v pláne */
.kegi-plan-day-btn {
  padding: 0.5rem;
  border-radius: 0.5rem; /* rounded-lg */
  border: 1px solid #4a5568; /* border-gray-600 */
  background-color: #1f2937; /* bg-gray-800 */
  color: #e0e0e0; /* text-gray-200 */
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kegi-plan-day-btn:hover {
  background-color: #2d3748; /* bg-gray-700 */
}

/* Aktívny (vybraný) stav pre deň */
.kegi-plan-day-btn.active {
  background-color: #E1BE48; /* bg-yellow-500 */
  color: #121212; /* text-black */
  border-color: #D4AF37; /* border-yellow-400 */
  font-weight: 700;
}





        /* --- Štýly pre Video Slučku --- */
        .loop-button-start.active, 
        .loop-button-end.active, 
        .loop-button-play.active, 
        .loop-button-set.active { 
            background-color: #15803d !important; /* Tmavá zelená */
            color: white !important;
            border-color: #15803d !important;
        }
        
        /* Čitateľné inputy pre slučku (v tmavom VLS dizajne) */
        #loopStartInput, #loopEndInput {
            color: #000 !important; /* Čierny text */
            background-color: #fff !important; /* Biele pozadie */
            border-color: #9ca3af !important; /* Sivý okraj */
            padding: 6px 8px; /* Trochu paddingu */
            border-radius: 6px; /* Zaoblenie */
        }
        #loopStartInput::placeholder, #loopEndInput::placeholder {
            color: #6b7280 !important; /* Tmavší placeholder */
        }
    


        /* Štýl pre animované bodky v názve */
        #chapter-title .loading-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #D4AF37; /* Zlatá farba */
            animation: typing 1s infinite;
            margin-left: 2px;
            /* Musíme pridať toto, aby sa vo Firefoxe správne zarovnali */
            margin-bottom: -1px; 
        }
        /* Definciujeme meškanie pre každú bodku */
        #chapter-title .loading-dot:nth-of-type(1) { animation-delay: 0s; }
        #chapter-title .loading-dot:nth-of-type(2) { animation-delay: 0.2s; }
        #chapter-title .loading-dot:nth-of-type(3) { animation-delay: 0.4s; }
    

${styles}


  #keg-lesson-meta { display:none !important; }

/* ====== ŠTÝLY PRE HLAVNÝ ISTIČ (Fókus Banner) ====== */
#focus-banner {
    background-color: #1f2937; /* Tmavý podklad */
    border: 1px solid #D4AF37; /* Zlatý okraj */
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

#focus-banner-loading {
    font-size: 1.125rem; /* text-lg */
    font-weight: 500;
    color: #e0e0e0;
}

/* Štýl pre hlavné "Fókus" tlačidlo */
.focus-button {
    background-color: #D4AF37;
    color: #121212;
    border: none;
    border-radius: 9999px; /* Pilulka */
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

.focus-button:hover {
    background-color: #e6c66a; /* Svetlejšia zlatá */
    transform: scale(1.03);
}

.focus-button:active {
    transform: scale(0.98);
}


/* ====== ŠTÝLY PRE SKRYTÝ REŽIM (Tlačidlo Zbaliť) ====== */
.collapse-button {
    background-color: #374151; /* Tmavšia sivá */
    color: #E5E7EB; /* Svetlé písmo */
    border: 1px solid #4B5563; /* Sivý okraj */
    padding: 6px 16px; /* Menšie ako focus button */
    border-radius: 9999px; /* Pilulka */
    font-size: 0.875rem; /* text-sm */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.collapse-button:hover {
    background-color: #4B5563;
    border-color: #D4AF37;
    color: #D4AF37;
}

/* Štýl pre zlatý rám Video Slučky */
#loop-controls-container .gold-border {
    border: 1px solid #D4AF37 !important;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
    border-radius: 10px !important;
}


/* === VLS Kapitoly – veľké biele tlačidlá === */
.vls-chapter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.vls-chapter-btn:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.vls-chapter-btn-active {
  background: #111827;
  color: #f9fafb;
  border-color: #111827;
}

.vls-chapter-btn-number {
  font-weight: 700;
  margin-right: 6px;
}
