/* --- NoosAI Studio Onboarding CSS --- */

:root {
    --onboarding-glow: rgba(0, 210, 255, 0.4);
    --onboarding-glow-active: rgba(0, 210, 255, 0.8);
    --onboarding-card-bg: rgba(6, 14, 29, 0.85);
    --onboarding-text-muted: rgba(255, 255, 255, 0.6);
}

/* Onboarding Backdrop Mask */
.onboarding-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 3, 10, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999990;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.onboarding-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Spotlight Highlight */
.onboarding-highlight-box {
    position: absolute;
    border-radius: 16px;
    border: 2px solid var(--primary-neon-blue);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.5), inset 0 0 15px rgba(0, 210, 255, 0.2);
    z-index: 999995;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Pulsing effect on the highlighted target */
@keyframes spotlight-pulse {
    0% {
        box-shadow: 0 0 20px rgba(0, 210, 255, 0.4), inset 0 0 10px rgba(0, 210, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 35px rgba(0, 210, 255, 0.7), inset 0 0 20px rgba(0, 210, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 210, 255, 0.4), inset 0 0 10px rgba(0, 210, 255, 0.1);
    }
}

.onboarding-highlight-box.pulse {
    animation: spotlight-pulse 2s infinite ease-in-out;
}

/* Onboarding Tooltip Card */
.onboarding-tooltip {
    position: absolute;
    width: 360px;
    background: var(--onboarding-card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 
                inset 0 0 15px rgba(0, 210, 255, 0.05);
    z-index: 999998;
    color: #fff;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.onboarding-tooltip.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Tooltip Header */
.onboarding-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.onboarding-tooltip-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Google Sans', sans-serif;
    background: linear-gradient(135deg, #fff, #a5f3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.onboarding-step-indicator {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-neon-blue);
    background: rgba(0, 210, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0, 210, 255, 0.2);
    letter-spacing: 0.5px;
}

/* Tooltip Body */
.onboarding-tooltip-body {
    font-size: 0.925rem;
    line-height: 1.55;
    color: var(--onboarding-text-muted);
}

.onboarding-tooltip-body strong {
    color: #fff;
}

/* Progress Dots Row */
.onboarding-progress-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.onboarding-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.onboarding-dot.active {
    background: var(--primary-neon-blue);
    box-shadow: 0 0 8px var(--primary-neon-blue);
    width: 16px;
    border-radius: 4px;
}

/* Tooltip Footer */
.onboarding-tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

/* Buttons inside tooltip */
.onboarding-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #fff;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.onboarding-btn-skip {
    color: var(--onboarding-text-muted);
    border: none;
    padding-left: 0;
    padding-right: 0;
}

.onboarding-btn-skip:hover {
    color: #fff;
    text-decoration: underline;
}

.onboarding-btn-back {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.onboarding-btn-back:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.onboarding-btn-next {
    background: linear-gradient(135deg, #0059ff, #00d2ff);
    color: #fff;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 89, 255, 0.3);
}

.onboarding-btn-next:hover {
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.5);
    transform: translateY(-1px);
}

.onboarding-btn-finish {
    background: linear-gradient(135deg, #00ffff, #0059ff);
    color: #060e1d;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.onboarding-btn-finish:hover {
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Special styling for step 0 (Welcome Card, larger, centered) */
.onboarding-tooltip.welcome-step {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -40%) scale(0.95);
    width: 440px;
    padding: 32px;
    text-align: center;
}

.onboarding-tooltip.welcome-step.active {
    transform: translate(-50%, -50%) scale(1);
}

.onboarding-tooltip.welcome-step .onboarding-tooltip-header {
    justify-content: center;
    border-bottom: none;
    padding-bottom: 0;
}

.onboarding-tooltip.welcome-step .onboarding-tooltip-header h3 {
    font-size: 1.5rem;
}

.onboarding-welcome-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Responsive Overrides */
@media (max-width: 480px) {
    .onboarding-tooltip {
        width: calc(100vw - 40px);
        left: 20px !important;
    }
    .onboarding-tooltip.welcome-step {
        width: calc(100vw - 40px);
    }
}
