/* Tutorial and Guide System Fixes */

/* Fix overlay backgrounds */
.tutorial-overlay,
.tour-overlay,
.feature-intro-overlay {
    background: rgba(0, 0, 0, 0.6) !important;
}

/* Fix spotlight shadows */
.tutorial-spotlight,
.tour-spotlight,
.feature-intro-spotlight {
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6) !important;
}

/* Ensure tutorial cards are properly positioned */
.tutorial-card {
    position: fixed !important;
    z-index: 10001 !important;
    max-width: 450px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
}

.tutorial-card.center {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .tutorial-card {
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 40px) !important;
        left: 10px !important;
        top: 10px !important;
        transform: none !important;
        width: calc(100vw - 20px) !important;
    }

    .tutorial-card.center {
        top: 10px !important;
        left: 10px !important;
        transform: none !important;
    }

    .tutorial-actions {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .tutorial-btn {
        width: 100% !important;
    }

    .tutorial-footer {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }
}

/* Fix tour tooltip positioning */
.tour-tooltip {
    max-width: 320px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
}

@media (max-width: 768px) {
    .tour-tooltip {
        max-width: calc(100vw - 40px) !important;
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
    }
}

/* Fix feature intro cards */
.feature-intro-card {
    max-width: 400px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
}

@media (max-width: 768px) {
    .feature-intro-card {
        max-width: calc(100vw - 40px) !important;
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
    }
}

/* Ensure buttons are always visible */
.tutorial-actions,
.intro-actions {
    position: sticky !important;
    bottom: 0 !important;
    background: white !important;
    padding-top: 1rem !important;
    margin-top: 1rem !important;
    border-top: 1px solid #e9ecef !important;
}

/* Fix z-index conflicts */
.navbar {
    z-index: 1030 !important;
}

.modal {
    z-index: 1040 !important;
}

.tutorial-overlay,
.tour-overlay,
.feature-intro-overlay {
    z-index: 9999 !important;
}

.tutorial-card,
.tour-tooltip,
.feature-intro-card {
    z-index: 10000 !important;
}