/* ===== PRESENTATION BODY ===== */
.presentation-body {
    background: #0d1b12;
    overflow: hidden;
    height: 100vh;
}

/* ===== PROGRESS BAR ===== */
.progress-bar-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.15);
    z-index: 1000;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), #f4d35e);
    transition: width 0.35s ease;
}

/* ===== TOP BAR ===== */
.pres-topbar {
    position: fixed;
    top: 5px; left: 0;
    width: 100%;
    height: 54px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 900;
    color: #fff;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-indicator {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.slide-counter { font-size: 0.9rem; opacity: 0.85; }

.timer {
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold);
    background: rgba(0,0,0,0.4);
    padding: 4px 12px;
    border-radius: 6px;
    min-width: 90px;
    text-align: center;
}

.btn-icon {
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0;
    font-family: inherit;
}
.btn-icon:hover { background: rgba(255,255,255,0.28); }
.btn-icon:active { transform: scale(0.95); }

.btn-icon.bookmarked {
    background: var(--gold);
    color: var(--green-dark);
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0; left: -360px;
    width: 340px;
    height: 100vh;
    background: #10261a;
    color: #fff;
    z-index: 1100;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.sidebar.open { left: 0; }

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-header h3 { color: var(--gold); font-size: 1.1rem; }

.sidebar-filter {
    display: flex;
    gap: 6px;
    padding: 12px 20px 0;
}
.sidebar-filter-btn {
    flex: 1;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #ccc;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}
.sidebar-filter-btn.active {
    background: var(--gold);
    color: var(--green-dark);
    font-weight: 700;
}

.sidebar-search { padding: 12px 20px; }
.sidebar-search input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
}
.sidebar-search input::placeholder { color: rgba(255,255,255,0.5); }
.sidebar-search input:focus { outline: none; border-color: var(--gold); }

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px 30px;
}

.sidebar-section { margin-bottom: 14px; }

.sidebar-section-title {
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 10px;
    opacity: 0.85;
}

.sidebar-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #ddd;
    text-decoration: none;
    font-size: 0.92rem;
    transition: background 0.15s;
    align-items: center;
}
.sidebar-item:hover { background: rgba(255,255,255,0.1); }
.sidebar-item.active { background: var(--green); color: #fff; font-weight: 600; }
.sidebar-num {
    min-width: 26px;
    text-align: center;
    color: var(--gold);
    font-weight: 700;
}
.sidebar-item.active .sidebar-num { color: #fff; }

.sidebar-item .bookmark-star {
    margin-left: auto;
    color: var(--gold);
    font-size: 1rem;
}

.sidebar-empty {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    font-style: italic;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    display: none;
}
.sidebar-overlay.show { display: block; }

/* ===== SLIDE AREA ===== */
.slide-area {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px 60px;
    background: radial-gradient(circle at 50% 30%, #17351f 0%, #0a150d 100%);
}

.slide {
    width: 100%;
    max-width: 1100px;
    background: var(--white);
    border-radius: 24px;
    padding: 55px 60px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: fadeIn 0.35s ease;
    position: relative;
}

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

.slide-section-label {
    display: inline-block;
    background: var(--green-soft);
    color: var(--green-dark);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.slide-title {
    font-size: 2.2rem;
    color: var(--green-dark);
    margin-bottom: 24px;
    line-height: 1.25;
}

.slide-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.slide-list li {
    position: relative;
    padding-left: 34px;
    font-size: 1.15rem;
    color: var(--text);
}
.slide-list li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.9rem;
    top: 4px;
}

/* ===== COVER SLIDE ===== */
.slide-type-cover .slide-cover {
    text-align: center;
    padding: 40px 20px;
}
.cover-title {
    font-size: 2.8rem;
    color: var(--green-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}
.cover-line {
    font-size: 1.25rem;
    color: var(--text-soft);
    margin-top: 8px;
}

/* ===== WARNING SLIDE ===== */
.slide-type-warning {
    border-left: 8px solid var(--danger);
}
.warning-badge {
    display: inline-block;
    background: var(--danger);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 18px;
}
.slide-type-warning .slide-list li::before {
    content: "⚠";
    color: var(--danger);
}

/* ===== QUOTE SLIDE ===== */
.slide-type-quote blockquote {
    border-left: 6px solid var(--gold);
    padding-left: 24px;
    font-style: italic;
    color: var(--text-soft);
    font-size: 1.2rem;
}
.slide-type-quote blockquote p { margin-bottom: 14px; }

/* ===== COMPARISON SLIDE ===== */
.slide-type-comparison .comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}
.comparison-col {
    background: var(--green-soft);
    padding: 20px 22px;
    border-radius: 14px;
}
.comparison-col h4 {
    color: var(--green-dark);
    margin-bottom: 12px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}
.comparison-col ul { list-style: none; }
.comparison-col li {
    padding: 6px 0 6px 22px;
    position: relative;
    font-size: 1rem;
}
.comparison-col li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--gold);
    font-weight: 700;
}

/* ===== PROCESS SLIDE ===== */
.slide-type-process .process-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    counter-reset: step;
}
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 18px;
    background: #f4f8f5;
    border-radius: 12px;
    border-left: 4px solid var(--green);
}
.process-step::before {
    counter-increment: step;
    content: counter(step);
    min-width: 32px; height: 32px;
    background: var(--green-dark);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.process-step p { flex: 1; font-size: 1.05rem; }

/* ===== CHECKLIST SLIDE ===== */
.slide-type-checklist .checklist-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.checklist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #f4f8f5;
    border-radius: 10px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.15s;
}
.checklist-item:hover { background: var(--green-soft); }
.checklist-item input[type="checkbox"] {
    width: 22px; height: 22px;
    accent-color: var(--green);
    cursor: pointer;
}
.checklist-item.done { text-decoration: line-through; opacity: 0.6; }

/* ===== PRACTICE SLIDE ===== */
.slide-type-practice {
    border-top: 6px solid var(--gold);
}
.slide-type-practice .practice-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--green-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* ===== CASE SLIDE ===== */
.slide-type-case .case-box {
    background: #f9f4e8;
    border-left: 6px solid var(--gold);
    padding: 20px 24px;
    border-radius: 0 14px 14px 0;
    margin-bottom: 18px;
}
.case-box h4 {
    color: var(--green-dark);
    margin-bottom: 8px;
    font-size: 1rem;
    letter-spacing: 1px;
}
.case-box p { font-size: 1.05rem; color: var(--text); }

/* ===== SUMMARY SLIDE ===== */
.slide-type-summary {
    background: linear-gradient(135deg, #f4f8f5, #e8f3ec);
}
.slide-type-summary .slide-title { color: var(--green-dark); }
.slide-type-summary .slide-list li::before {
    content: "✓";
    color: var(--green);
    font-weight: 700;
}

/* ===== CLOSING SLIDE ===== */
.slide-type-closing {
    text-align: center;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: #fff;
}
.slide-type-closing .slide-title {
    color: #fff;
    font-size: 2.4rem;
}
.slide-type-closing .slide-list {
    align-items: center;
    text-align: center;
}
.slide-type-closing .slide-list li {
    color: #e8f3ec;
    padding-left: 0;
}
.slide-type-closing .slide-list li::before { content: ""; }

/* ===== IMAGE SLIDE ===== */
.slide-type-image .image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: repeating-linear-gradient(
        45deg,
        #eef3ef,
        #eef3ef 12px,
        #e3ece6 12px,
        #e3ece6 24px
    );
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 18px;
    border: 2px dashed #c2d4c8;
}

/* ===== Referensi (dalil) ===== */
.slide-reference {
    margin-top: 22px;
    padding: 12px 16px;
    background: #fff7e0;
    border-left: 4px solid var(--gold);
    border-radius: 0 10px 10px 0;
    font-size: 0.92rem;
    color: #6b5300;
}
.slide-reference strong { color: var(--green-dark); }

/* ===== SLIDE FOOTER ===== */
.slide-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* ===== NAV BUTTONS ===== */
.nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 800;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.nav-btn:hover { background: var(--green); }
.nav-btn:active { transform: translateY(-50%) scale(0.95); }
.nav-prev { left: 16px; }
.nav-next { right: 16px; }

/* ===== SPEAKER NOTES ===== */
.speaker-notes {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    max-height: 40vh;
    background: #10261a;
    color: #fff;
    z-index: 1200;
    transition: bottom 0.3s ease;
    border-top: 4px solid var(--gold);
    display: flex;
    flex-direction: column;
}
.speaker-notes.open { bottom: 0; }

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0,0,0,0.3);
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
.notes-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e8f0e8;
}

/* ===== FULLSCREEN MODE =====
   Prinsip: yang disembunyikan hanya sidebar, overlay, speaker notes.
   Topbar tetap tampil agar tombol keluar fullscreen (⛶) tetap bisa diklik. */
body.fullscreen-mode .sidebar,
body.fullscreen-mode .sidebar-overlay,
body.fullscreen-mode .speaker-notes {
    display: none !important;
}
body.fullscreen-mode .slide-area { padding: 60px 30px 30px; }
body.fullscreen-mode .slide { box-shadow: none; }
body.fullscreen-mode .progress-bar-wrapper { height: 3px; }

/* Sembunyikan tombol dashboard & notes saat fullscreen, sisakan timer + fullscreen + bookmark */
body.fullscreen-mode #btnMenu,
body.fullscreen-mode #btnNotes,
body.fullscreen-mode #btnCloseNotes,
body.fullscreen-mode .topbar-left,
body.fullscreen-mode .section-indicator {
    display: none !important;
}
body.fullscreen-mode .pres-topbar {
    background: transparent;
    justify-content: flex-end;
}
body.fullscreen-mode .topbar-center { display: none; }

/* ===== SEARCH HIGHLIGHT ===== */
mark.search-hl {
    background: #fff3b0;
    color: inherit;
    padding: 0 3px;
    border-radius: 3px;
}
/* ===== SLIDE LAYOUT 2 KOLOM (TEKS + GAMBAR) ===== */
.slide-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.slide-layout .slide-text {
    min-width: 0;
}

.slide-layout .slide-media {
    min-width: 0;
}

/* Gambar di kolom kanan */
.slide-layout .slide-media img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    display: block;
}

/* Kalau tidak ada gambar, teks pakai lebar penuh */
.slide-layout.no-media {
    grid-template-columns: 1fr;
}

/* ===== FALLBACK: slide-image lama (untuk slide yang masih pakai layout lama) ===== */
.slide-image {
    width: 100%;
    margin: 16px 0 22px;
    border-radius: 14px;
    overflow: hidden;
    background: #f4f8f5;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.slide-image img {
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: cover;
    display: block;
}

/* ===== RESPONSIVE: di mobile, tumpuk vertikal ===== */
@media (max-width: 900px) {
    .slide-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .slide-layout .slide-media img {
        max-height: 240px;
    }
}