/* === TUTORIAL SPOTLIGHT ONBOARDING === */

.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    pointer-events: auto;
}

.tutorial-spotlight {
    position: fixed;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75);
    z-index: 2001;
    transition: all 0.35s ease;
    pointer-events: none;
}

.tutorial-tooltip {
    position: fixed;
    z-index: 2002;
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    max-width: 90vw;
    width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: tutorialFadeIn 0.3s ease;
}

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

.tutorial-tooltip__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(27, 94, 32, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.tutorial-tooltip__icon .material-symbols-outlined {
    font-size: 1.5rem;
    color: #1b5e20;
}

.tutorial-tooltip__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.375rem;
    text-align: center;
}

.tutorial-tooltip__text {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 1rem;
}

.tutorial-tooltip__counter {
    font-size: 0.7rem;
    color: #999;
    text-align: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tutorial-tooltip__progress {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 1rem;
}

.tutorial-tooltip__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.tutorial-tooltip__dot--active {
    background: #1b5e20;
    transform: scale(1.2);
}

.tutorial-tooltip__dot--done {
    background: #4caf50;
}

.tutorial-tooltip__actions {
    display: flex;
    gap: 0.5rem;
}

.tutorial-btn {
    flex: 1;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.tutorial-btn--skip {
    background: #f5f5f5;
    color: #777;
}

.tutorial-btn--skip:active {
    background: #eee;
}

.tutorial-btn--next {
    background: #1b5e20;
    color: white;
}

.tutorial-btn--next:active {
    background: #003300;
}

.tutorial-btn--finish {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: white;
    flex: 1;
}

.tutorial-btn--finish:active {
    background: #003300;
}

/* Arrow pointing to element */
.tutorial-tooltip__arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

.tutorial-tooltip__arrow--up {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom: 10px solid white;
}

.tutorial-tooltip__arrow--down {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-top: 10px solid white;
}

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

.tutorial-tooltip--center {
    animation-name: tutorialFadeInCenter;
}

@keyframes tutorialFadeInCenter {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
