/* ─── Dashboard welcome banner ───────────────────────────────────────────── */

@keyframes ot-banner-wave {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#ot-dashboard-banner {
    background: linear-gradient(-45deg, #1e3a8a, #1d4ed8, #2563eb, #0ea5e9, #0284c7, #1e40af);
    background-size: cover;
    background-image: url('../img/onboarding/onboarding-gradient.gif');
    width: 100%;
    padding: 32px;
    border-radius: 8px;
}

#ot-dashboard-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

#ot-banner-btn {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

#ot-banner-btn:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

@media (max-width: 768px) {
    #ot-dashboard-banner {
        padding: 24px 20px;
    }

    #ot-dashboard-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    #ot-banner-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ─── Welcome modal ──────────────────────────────────────────────────────── */

/* display is controlled by JS — starts hidden via inline style in Blade */
#ot-welcome {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10002;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#ot-welcome-card {
    background: var(--background, #fff);
    border-radius: 16px;
    width: 480px;
    max-width: 100%;
    overflow: hidden;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.22);
}

#ot-welcome-img-wrap {
    background: #fefefe;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 28px 32px;
}

#ot-welcome-img {
    width: 220px;
    max-width: 100%;
    display: block;
}

#ot-welcome-body {
    padding: 28px 32px 32px;
    text-align: center;
}

/* ─── Spotlight overlay ──────────────────────────────────────────────────── */

#ot-spotlight {
    position: fixed;
    border-radius: 6px;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65);
    transition: top .2s, left .2s, width .2s, height .2s;
    animation: ot-enter-spotlight .18s ease;
}

/* ─── Tooltip ────────────────────────────────────────────────────────────── */

#ot-tooltip {
    position: fixed;
    z-index: 10000;
    background: var(--background, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    padding: 20px;
    width: 320px;
    max-width: calc(100vw - 24px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    font-family: inherit;
    transition: top .2s, left .2s;
    animation: ot-enter-tooltip .18s ease;
}

.ot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ot-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--foreground, #0f172a);
}

.ot-progress {
    font-size: 12px;
    color: var(--muted-foreground, #64748b);
    white-space: nowrap;
    margin-left: 8px;
}

.ot-description {
    font-size: 13px;
    color: var(--muted-foreground, #64748b);
    line-height: 1.55;
    margin: 0 0 18px;
}

.ot-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.ot-nav {
    display: flex;
    gap: 8px;
}

.ot-btn-skip {
    background: transparent;
    border: none;
    color: var(--muted-foreground, #64748b);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 0;
    line-height: 1;
}

.ot-btn-skip:hover {
    color: var(--foreground, #0f172a);
}

.ot-btn-prev,
.ot-btn-next {
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    line-height: 1;
}

.ot-btn-prev {
    background: var(--secondary, #f1f5f9);
    color: var(--secondary-foreground, #0f172a);
}

.ot-btn-prev:hover {
    opacity: .9;
}

.ot-btn-next {
    background: var(--primary, #0d6efd);
    color: var(--primary-foreground);
}

.ot-btn-next:hover {
    opacity: .9;
}

.ot-btn-prev:disabled,
.ot-btn-next:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* ─── Step transition ────────────────────────────────────────────────────── */

@keyframes ot-enter-spotlight {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes ot-enter-tooltip {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

#ot-spotlight.ot-leaving {
    opacity: 0 !important;
    transition: opacity .13s ease !important;
}

#ot-tooltip.ot-leaving {
    opacity: 0 !important;
    transform: translateY(4px) !important;
    transition: opacity .13s ease, transform .13s ease !important;
}
