/* ===== Login Tutorial Overlay Styles ===== */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

.tutorial-spotlight {
    position: relative;
    z-index: 10001 !important;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65), 0 0 0 4px rgba(53, 119, 241, 0.9), 0 0 30px 8px rgba(53, 119, 241, 0.35) !important;
    border-radius: 8px;
    pointer-events: auto;
    transition: box-shadow 0.4s ease;
    animation: tutorialPulse 2s infinite;
    background: #fff !important;
    padding: 8px 10px !important;
}

.tutorial-tooltip {
    position: fixed;
    z-index: 10002;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border-radius: 16px;
    padding: 24px 28px;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(53, 119, 241, 0.1);
    animation: tutorialFadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 3px solid #3577f1;
}

.tutorial-tooltip::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    transform: rotate(45deg);
    box-shadow: -1px -1px 0 rgba(53, 119, 241, 0.1);
}

.tutorial-tooltip.arrow-top::before {
    top: -8px;
    left: 32px;
    border-top: 3px solid #3577f1;
    border-left: 3px solid #3577f1;
}

.tutorial-tooltip.arrow-bottom::before {
    bottom: -8px;
    left: 32px;
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.05);
}

.tutorial-tooltip.arrow-left::before {
    left: -8px;
    top: 24px;
    border-top: 3px solid #3577f1;
    border-left: 3px solid #3577f1;
}

.tutorial-tooltip.arrow-right::before {
    right: -8px;
    top: 24px;
    box-shadow: 1px -1px 0 rgba(0, 0, 0, 0.05);
}

.tutorial-tooltip-icon {
    font-size: 18px;
    margin-right: 6px;
    color: #3577f1;
}

.tutorial-tooltip-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.tutorial-tooltip-desc {
    font-size: 14px;
    color: #555d70;
    margin-bottom: 20px;
    line-height: 1.6;
    padding-left: 2px;
}

.tutorial-tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.tutorial-step-indicator {
    font-size: 12px;
    color: #8b95a5;
    font-weight: 500;
}

.tutorial-btn-group {
    display: flex;
    gap: 10px;
}

.tutorial-btn-skip {
    background: none;
    border: 1px solid #e2e8f0;
    color: #8b95a5;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tutorial-btn-skip:hover {
    background: #f8f9fa;
    color: #555d70;
    border-color: #cbd5e0;
}

.tutorial-btn-next {
    background: linear-gradient(135deg, #3577f1 0%, #2563eb 100%);
    border: none;
    color: #fff;
    padding: 8px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(53, 119, 241, 0.3);
}

.tutorial-btn-next:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 16px rgba(53, 119, 241, 0.4);
    transform: translateY(-1px);
}

.tutorial-btn-prev {
    background: none;
    border: 1px solid #3577f1;
    color: #3577f1;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tutorial-btn-prev:hover {
    background: #eef4ff;
    border-color: #2563eb;
    color: #2563eb;
}

.tutorial-replay-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3577f1 0%, #2563eb 100%);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 6px 20px rgba(53, 119, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tutorial-replay-btn:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 8px 25px rgba(53, 119, 241, 0.5);
}

.tutorial-replay-btn .replay-tooltip {
    display: none;
    position: absolute;
    bottom: 52px;
    right: 0;
    background: #1a1f36;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tutorial-replay-btn:hover .replay-tooltip {
    display: block;
}

.tutorial-dots {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

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

.tutorial-dot.active {
    background: linear-gradient(135deg, #3577f1, #2563eb);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(53, 119, 241, 0.4);
}

.tutorial-dot.completed {
    background: #10b981;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

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

@keyframes tutorialPulse {
    0%, 100% { box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65), 0 0 0 4px rgba(53, 119, 241, 0.9), 0 0 30px 8px rgba(53, 119, 241, 0.35); }
    50% { box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65), 0 0 0 6px rgba(53, 119, 241, 0.7), 0 0 40px 12px rgba(53, 119, 241, 0.25); }
}

@media (max-width: 576px) {
    .tutorial-tooltip {
        min-width: 260px;
        max-width: 320px;
        padding: 18px 20px;
    }
    .tutorial-replay-btn {
        bottom: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}
