body { font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 1.6; margin: 0; padding: 20px; background-color: #fdfbf7; color: #4e342e; }
.container { max-width: 1100px; margin: auto; background: #fff; border-radius: 12px; box-shadow: 0 5px 25px rgba(139, 69, 19, 0.15); overflow: visible; position: relative; min-height: 500px;}
.header-bar { background-color: #1a252f; color: white; padding: 25px 40px; border-bottom: 5px solid #d35400; display: flex; align-items: center; gap: 20px; }
.logo-circle { width: 60px; height: 60px; background: white; border-radius: 50%; border: 3px solid #bdc3c7; flex-shrink: 0; object-fit: cover; }
.header-text { flex-grow: 1; }
.header-text h1 { margin: 0; font-size: 1.8em; color: white; letter-spacing: 1px; }
.header-text p { margin: 0; color: #bdc3c7; font-size: 0.9em; text-transform: uppercase; letter-spacing: 2px;}
.tools-bar { background: #f4f6f7; padding: 10px 40px; display: flex; gap: 10px; border-bottom: 1px solid #eee; align-items: center; }
.tool-btn { background: white; border: 1px solid #ccc; padding: 5px 15px; border-radius: 4px; cursor: pointer; font-size: 0.85em; font-weight: 600; color: #555; transition: 0.2s; }
.tool-btn:hover { background: #eee; color: #333; }
.content-area { padding: 0 40px 40px 40px; }
h2.main-title { color: #d35400; text-align: center; border-bottom: 2px solid #ffe0b2; padding-bottom: 15px; margin: 40px 0 30px 0; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; font-size: 1.8em; }
.progress-container { width: 100%; background-color: #34495e; border-radius: 8px; margin-top: 10px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; background-color: #2ecc71; width: 0%; transition: width 0.5s ease; }
.progress-text { font-size: 0.8em; color: #bdc3c7; margin-top: 4px; text-align: right; font-weight: bold; }

/* OBLIKOVANJE ZA POJAVNO OKNO O ZAKLEPU */
#custom-alert-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.custom-alert-box { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); text-align: center; max-width: 450px; width: 90%; border-top: 5px solid #c0392b; position: relative;}
.custom-alert-box h3 { color: #c0392b; margin-top: 0; font-size: 1.5em; }
.custom-alert-box p { color: #333; margin-bottom: 25px; font-size: 1.1em;}
.btn-alert-primary { background: #d35400; color: white; border: none; padding: 12px 20px; font-size: 1.05em; font-weight: bold; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-block; transition: 0.2s; margin: 5px;}
.btn-alert-primary:hover { background: #bf360c; }
.btn-alert-close { background: #7f8c8d; color: white; border: none; padding: 12px 20px; font-size: 1.05em; font-weight: bold; border-radius: 6px; cursor: pointer; transition: 0.2s; margin: 5px;}
.btn-alert-close:hover { background: #34495e; }

.hidden { display: none !important; }
#app-content { opacity: 0; pointer-events: none; transition: opacity 0.5s; }
#app-content.unlocked { opacity: 1; pointer-events: auto; }
.user-info { font-size: 0.8em; color: #f39c12; margin-top: 5px; text-transform: none; font-weight: bold;}

.accordion-header { cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s ease; margin-bottom: 6px; user-select: none; position: relative; box-sizing: border-box; }
.accordion-content { display: none; overflow: hidden; animation: slideDown 0.3s ease-out; }
.accordion-content.open-visible { overflow: visible !important; }

/* NOVO: Če je filter skril vse znotraj kontejnerja, tudi kontejner izgine, da ni praznih robov */
.accordion-content.empty-filtered { display: none !important; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.icon-indicator { font-size: 1em; transition: transform 0.3s; opacity: 0.7; font-weight: bold; }
.active > .icon-arrow { transform: rotate(180deg); opacity: 1; }
.icon-crown { color: #f1c40f; text-shadow: 0 1px 2px rgba(0,0,0,0.3); font-size: 1.3em; animation: pulseCrown 3s infinite; }
@keyframes pulseCrown { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

.level-1-header { background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%); border: 1px solid #ffb74d; color: #e65100; padding: 18px 25px; margin-top: 20px; font-weight: 700; font-size: 1.3em; border-radius: 6px; }
.level-1-header.crown-mode { border: 3px solid #e65100 !important; box-shadow: 0 4px 10px rgba(230, 81, 0, 0.2); }
.level-1-content { border-left: 4px solid #ffcc80; margin-left: 10px; padding-left: 10px; padding-bottom: 15px; }

.level-2-header { background-color: #efebe9; border: 1px solid #d7ccc8; color: #5d4037; padding: 14px 20px; margin-top: 10px; font-weight: 600; font-size: 1.15em; border-radius: 5px; }
.level-2-header.crown-mode { border: 3px solid #5d4037 !important; }
.level-2-content { border-left: 3px solid #d7ccc8; margin-left: 15px; padding-left: 15px; padding-bottom: 10px; }

.level-3-header { background: linear-gradient(to right, #fdedec, #fff); border-left: 6px solid #c0392b; border: 1px solid #fadbd8; color: #922b21; padding: 12px 18px; margin-top: 8px; font-weight: 700; font-size: 1.05em; border-radius: 0 6px 6px 0; }
.level-3-header.crown-mode { border: 3px solid #c0392b !important; border-left-width: 8px !important; }
.level-3-content { margin-left: 10px; padding-top: 5px; padding-left: 12px; border-left: 2px dotted #e6b0aa; }

.level-4-header { background: #eaf2f8; border-left: 5px solid #2980b9; border: 1px solid #d4e6f1; border-left-width: 5px; color: #154360; padding: 10px 15px; margin-top: 8px; font-weight: 600; font-size: 1em; border-radius: 0 5px 5px 0; }
.level-4-header.crown-mode { border: 3px solid #154360 !important; border-left-width: 6px !important; }
.level-4-content { margin-left: 12px; padding-left: 12px; border-left: 2px solid #a9cce3; padding-bottom: 5px;}

.crown-mode:hover { transform: translateX(4px); }

[data-tooltip] { position: relative; }
[data-tooltip]:hover::after { content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background-color: #3e2723; color: #fff; padding: 8px 14px; border-radius: 4px; font-size: 0.85rem; white-space: nowrap; z-index: 9999; box-shadow: 0 4px 10px rgba(0,0,0,0.25); opacity: 0; animation: fadeInTooltip 0.2s forwards; pointer-events: none; margin-bottom: 10px; }
[data-tooltip]:hover::before { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border-width: 6px; border-style: solid; border-color: #3e2723 transparent transparent transparent; opacity: 0; animation: fadeInTooltip 0.2s forwards; margin-bottom: -2px; z-index: 9999; }
@keyframes fadeInTooltip { to { opacity: 1; } }

.prereq-box { background-color: #f4f6f7; border-left: 4px solid #85c1e9; padding: 15px; margin: 10px 0 20px 0; border-radius: 0 4px 4px 0; }
.prereq-title { color: #2e86c1; font-weight: bold; font-size: 0.9em; margin-bottom: 10px; text-transform: uppercase; border-bottom: 1px solid #d6eaf8; padding-bottom: 5px; display: inline-block;}
.prereq-row { margin-bottom: 8px; display: flex; align-items: flex-start;}
.prereq-label { font-weight: bold; font-size: 0.85em; color: #5d6d7e; width: 60px; flex-shrink: 0; padding-top: 5px; }
.prereq-items { display: flex; flex-direction: column; gap: 8px; }

.lesson-row { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-bottom: 1px solid #eee; background: white; margin-bottom: 4px; border-radius: 4px; border: 1px solid transparent; border-left: 5px solid #ccc; position: relative; transition: all 0.2s; }
.lesson-row:hover { background-color: #fff1d1 !important; border-color: #ffb74d !important; z-index: 10; box-shadow: 0 2px 8px rgba(211, 84, 0, 0.15); }

.prereq-lesson-row { padding: 4px 8px; border-bottom: none; margin-bottom: 0; border-left: 4px solid #ccc; border-radius: 4px; background: transparent; display: flex; align-items: center; transition: all 0.2s; }
.prereq-lesson-row:hover { background-color: #fff1d1 !important; border-color: #ffb74d !important; }

.status-0 { border-left-color: #ccc !important; }
.status-1 { border-left-color: #f1c40f !important; background-color: #fffceb !important; }
.status-2 { border-left-color: #2ecc71 !important; background-color: #f4fcf7 !important; }

.progress-select { margin-right: 15px; padding: 4px 8px; border-radius: 4px; border: 1px solid #ccc; background: white; cursor: pointer; font-size: 0.9em; outline: none; font-weight: bold; color: #555; }
.lesson-title { font-weight: 700; color: #333; font-size: 1em; }
.time-badge { background-color: #fff9c4; color: #333; padding: 4px 10px; border-radius: 4px; font-size: 0.85em; font-weight: 600; margin-right: 15px; border: 1px solid #fbc02d; display: flex; align-items: center; gap: 5px; white-space: nowrap; }

.quiz-box { background-color: #eafaf1; border-left: 4px solid #2ecc71; padding: 15px; margin: 15px 0; border-radius: 0 4px 4px 0; }

.btn, .cloud-btn, .cloud-btn-green { display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; cursor: pointer; text-decoration: none; font-weight: 600; transition: all 0.2s; position: relative; border: none; }
.cloud-btn { background: white; border: 1px solid #3498db; color: #3498db; padding: 6px 14px; border-radius: 15px; font-size: 0.85em; margin: 0; }
.cloud-btn:hover { background: #3498db; color: white; }
.cloud-btn-green { background: white; border: 1px solid #2ecc71; color: #2ecc71; padding: 6px 14px; border-radius: 15px; font-size: 0.85em; margin: 0; }
.cloud-btn-green:hover { background: #2ecc71; color: white; }
.btn-vid { background-color: #e65100; color: white; border: none; padding: 8px 16px; margin-left: 5px; font-size: 0.9em; } 
.btn-vid:hover { background-color: #bf360c; }
.btn-pdf { background-color: #2980b9; color: white; border: none; padding: 8px 16px; margin-left: 5px; font-size: 0.9em; } 
.btn-pdf:hover { background-color: #154360; }