/* Tutorial Feature Styles */

/* =====================================================
   Floating Tutorial Button
   ===================================================== */
.tutorial-btn {
    position: fixed;
    top: 185px;
    left: 20px;
    z-index: 900;
    background-color: rgba(40, 167, 69, 0.85);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    -ms-border-radius: 25px;
    -o-border-radius: 25px;
}

.tutorial-btn:hover {
    background-color: rgba(40, 167, 69, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.25);
}

.tutorial-btn:active {
    transform: translateY(0);
}

.tutorial-btn i {
    font-size: 1.1rem;
}

.tutorial-btn.hidden {
    display: none;
}

/* =====================================================
   Modal Overlay
   ===================================================== */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tutorial-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   Modal Container
   ===================================================== */
.tutorial-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 1101;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.tutorial-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* =====================================================
   Modal Header / Close Button
   ===================================================== */
.tutorial-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tutorial-close-btn:hover {
    background-color: #fff;
    color: #dc3545;
}

/* =====================================================
   Carousel Container
   ===================================================== */
.tutorial-carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80vw;
    padding: 0 30px;
    box-sizing: border-box;
}

.tutorial-carousel-inner {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* =====================================================
   Carousel Image
   ===================================================== */
.tutorial-slide {
    display: none;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
}

.tutorial-slide.active {
    display: block;
}

/* =====================================================
   Navigation Arrows
   ===================================================== */
.tutorial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.85);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tutorial-nav-btn:hover {
    background-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.tutorial-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tutorial-nav-btn:disabled:hover {
    transform: translateY(-50%) scale(1);
}

.tutorial-nav-prev {
    left: 15px;
}

.tutorial-nav-next {
    right: 15px;
}

/* =====================================================
   Slide Indicator (Dots + Counter)
   ===================================================== */
.tutorial-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.tutorial-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tutorial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tutorial-dot:hover {
    background-color: #999;
}

.tutorial-dot.active {
    width: 14px;
    height: 14px;
    background-color: #28a745;
}

.tutorial-counter {
    margin-left: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    background-color: #e9ecef;
    padding: 4px 12px;
    border-radius: 12px;
}

.tutorial-counter-current {
    color: #28a745;
    font-weight: 700;
}

/* =====================================================
   Responsive Adjustments
   ===================================================== */
@media (max-width: 768px) {
    .tutorial-btn {
        top: auto;
        bottom: 20px;
        left: 20px;
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .tutorial-modal {
        max-width: 95vw;
        max-height: 85vh;
    }

    .tutorial-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .tutorial-nav-prev {
        left: 8px;
    }

    .tutorial-nav-next {
        right: 8px;
    }

    .tutorial-slide {
        max-height: 65vh;
    }

    .tutorial-indicator {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .tutorial-dot {
        width: 8px;
        height: 8px;
    }

    .tutorial-dot.active {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .tutorial-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 6px;
    }

    .tutorial-btn span {
        display: none;
    }

    .tutorial-btn i {
        font-size: 1.2rem;
    }

    .tutorial-close-btn {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
        top: 8px;
        right: 8px;
    }

    .tutorial-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}
