/* Intro.js Custom Styling */
.introjs-tooltip {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--frs-accent1-color);
    font-family: inherit;
    max-width: 450px;
    position: relative;
    z-index: 10000;
}

.introjs-tooltip-header {
    background: linear-gradient(145deg, var(--frs-accent1-color), var(--frs-accent2-color));
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
}

.introjs-tooltip-text {
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    background: white;
}

.introjs-tooltipbuttons {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
    border-top: 1px solid #e9ecef;
}

.introjs-button {
    border-radius: 6px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: none;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
    text-shadow: none;
}

.introjs-nextbutton {
    background: linear-gradient(145deg, var(--frs-accent1-color), var(--frs-accent2-color));
    color: white;
    box-shadow: 0 2px 8px rgba(0, 167, 157, 0.3);
}

.introjs-nextbutton:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 167, 157, 0.4);
}

.introjs-prevbutton {
    background: #6c757d;
    color: white;
}

.introjs-prevbutton:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.introjs-skipbutton {
    background: transparent;
    color: #6c757d;
    margin: 5px;
}

.introjs-skipbutton:hover {
    background: transparent;
    color: white;
}

.introjs-progressbar {
    background: linear-gradient(90deg, var(--frs-accent1-color), var(--frs-accent2-color));
    border-radius: 3px;
    height: 6px;
}

.introjs-progress {
    background: #e9ecef;
    border-radius: 3px;
    height: 6px;
    margin: 0.5rem 1.5rem 1rem;
}

.introjs-overlay {
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.introjs-helperLayer {
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 167, 157, 0.5);
    border: 3px solid var(--frs-accent1-color);
    z-index: 10000;
}

.introjs-tooltipReferenceLayer {
    z-index: 10001;
}

/* Tutorial Button Styling */
.tutorial-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--frs-gradient1-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 167, 157, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 167, 157, 0.6);
}

.tutorial-button i {
    margin: 0;
}

/* Tutorial Badge */
.tutorial-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffc107;
    color: #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* First-time user welcome modal overlay */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-modal {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--frs-accent1-color);
}

.welcome-modal h2 {
    color: var(--frs-accent1-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.welcome-modal p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.welcome-modal .btn {
    margin: 0 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
}

.welcome-modal .btn-primary {
    background: linear-gradient(145deg, var(--frs-accent1-color), var(--frs-accent2-color));
    border: none;
    box-shadow: 0 3px 15px rgba(0, 167, 157, 0.3);
}

.welcome-modal .btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
}

/* Tutorial Error State */
.tutorial-error {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid #dc3545;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    text-align: center;
    max-width: 400px;
}

.tutorial-error h3 {
    color: #dc3545;
    margin-bottom: 1rem;
}

.tutorial-error p {
    color: #666;
    margin-bottom: 1.5rem;
}

.tutorial-error .btn {
    margin: 0 0.5rem;
}

/* Tutorial Loading State */
.tutorial-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    text-align: center;
}

.tutorial-loading .loading-spinner {
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
}

/* Hide tutorial button on mobile devices */
    @@media (max-width: 767.98px) {
        .tutorial-button {
            display: none !important;
        }
    }