/* Premium Guided Demo Tour Overlay Styling */

.krona-tour-card {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: rgba(15, 23, 42, 0.85);
    /* Deep slate with transparency */
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 24px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    z-index: 9999999;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(99, 102, 241, 0.2);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.krona-tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.krona-tour-step-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 4px 10px;
    border-radius: 20px;
    color: #ffffff;
}

.krona-tour-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.krona-tour-close-btn:hover {
    color: #f87171;
}

.krona-tour-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    margin: 5px 0 0 0;
    background: linear-gradient(135deg, #cbd5e1 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.krona-tour-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #94a3b8;
    margin: 8px 0 16px 0;
}

.krona-tour-desc strong {
    color: #ffffff;
    font-weight: 600;
}

.krona-tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.krona-tour-actions {
    display: flex;
    align-items: center;
}

.krona-tour-skip {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.krona-tour-skip:hover {
    color: #94a3b8;
    text-decoration: underline;
}

.krona-tour-next-btn {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border: none;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.krona-tour-next-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.55);
}

.krona-tour-next-btn:active {
    transform: translateY(0);
}

/* Pulsing outline around the target step element */
.krona-tour-highlight {
    outline: 3px solid #6366f1 !important;
    outline-offset: 4px;
    border-radius: 6px;
    animation: pulseHighlight 1.5s infinite;
    z-index: 10000000 !important;
    position: relative;
    pointer-events: auto !important;
}

/* Dim mask behind elements */
.krona-tour-overlay-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    z-index: 9999998;
    pointer-events: none;
    /* Allow clicks to pass through to elements underneath */
}

/* Wiggle animation when user clicks incorrectly */
@keyframes wiggle {

    0%,
    100% {
        transform: translateX(0);
    }

    15%,
    45%,
    75% {
        transform: translateX(-4px);
    }

    30%,
    60%,
    90% {
        transform: translateX(4px);
    }
}

.krona-tour-wiggle {
    animation: wiggle 0.4s ease;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseHighlight {
    0% {
        outline-color: rgba(99, 102, 241, 0.85);
        box-shadow: 0 0 0 0px rgba(99, 102, 241, 0.4);
    }

    70% {
        outline-color: rgba(168, 85, 247, 0);
        box-shadow: 0 0 0 12px rgba(168, 85, 247, 0);
    }

    100% {
        outline-color: rgba(99, 102, 241, 0);
        box-shadow: 0 0 0 0px rgba(99, 102, 241, 0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}