/* ============================================
   Docsify Slide Navigation - Presentation Mode
   ============================================ */

/* Slide container */
.slide-nav-container {
    position: relative;
    min-height: 60vh;
}

/* Individual slide */
.slide-nav-page {
    display: none;
    animation: slideNavFadeIn 0.35s ease-out;
}

.slide-nav-page.slide-nav-active {
    display: block;
}

@keyframes slideNavFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Bottom bar: controls + progress ---- */
.slide-nav-bar {
    position: fixed;
    bottom: 0;
    left: 300px;
    /* docsify sidebar width */
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
    transition: left 0.25s ease-out, opacity 0.25s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body.close .slide-nav-bar {
    left: 0;
}

/* Navigation buttons */
.slide-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #f0f0f0;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    user-select: none;
    flex-shrink: 0;
}

.slide-nav-btn:hover {
    background: #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.slide-nav-btn:active {
    transform: scale(0.92);
}

.slide-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Slide counter text */
.slide-nav-counter {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    min-width: 60px;
    text-align: center;
    white-space: nowrap;
}

/* Progress bar wrapper */
.slide-nav-progress {
    flex: 1;
    max-width: 320px;
    height: 4px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.slide-nav-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #42b983, #3eaf7c);
    border-radius: 4px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Responsive: sidebar collapsed / mobile ---- */
@media screen and (max-width: 768px) {
    .slide-nav-bar {
        left: 0;
        padding: 8px 12px;
        gap: 10px;
    }

    .slide-nav-progress {
        max-width: 160px;
    }
}

/* Ensure content doesn't hide behind the bar */
.slide-nav-container {
    /* padding-bottom: 70px; */
}

/* Hide top-level h1 if the page is in presentation mode */
#main:has(.slide-nav-container)>h1 {
    display: none !important;
}