/* Naval SCM Supplier Portal — Onboarding Wizard v2 */
/* All classes prefixed with .naval-wizard- to avoid collisions */

/* ── Full-page overlay (steps 1 & 5 only — no element spotlight) ── */
.naval-wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: auto;
}

.naval-wizard-overlay.naval-wizard-visible {
    opacity: 1;
}

/* When spotlight mode is active the overlay is transparent — dimming
   comes from the huge box-shadow on the spotlighted element itself. */
.naval-wizard-overlay.naval-wizard-spotlight-mode {
    background: transparent;
    pointer-events: none;          /* clicks pass through to portal */
}

/* ── Spotlight class applied directly to target element ── */
.naval-wizard-spotlight {
    position: relative;
    z-index: 10001 !important;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65),
                0 0 0 3px #2E75B6 !important;
    border-radius: 6px;
}

/* ── Modal card (shared) ── */
.naval-wizard-card {
    background: #fff;
    border-radius: 12px;
    max-width: 420px;
    width: 92%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 10002;
    position: relative;
    pointer-events: auto;         /* always clickable */
    animation: naval-wizard-slideUp 0.35s ease;
}

@keyframes naval-wizard-slideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Right-positioned variant */
.naval-wizard-card.naval-wizard-right {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    left: auto;
}

/* Over-chat variant — covers the right-side chat panel */
.naval-wizard-card.naval-wizard-over-chat {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    left: auto;
    max-width: 400px;
    width: 400px;
    border-radius: 12px;
}

/* Highlighted card — glows blue (used on Step 4 against dark overlay) */
.naval-wizard-card.naval-wizard-highlighted {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35),
                0 0 0 3px #2E75B6,
                0 0 24px 6px rgba(46, 117, 182, 0.45);
}

/* Left-positioned variant for spotlight steps 2 and 3 */
.naval-wizard-card.naval-wizard-left {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    right: auto;
}

/* Highlighted card (used on Step 4) */
.naval-wizard-card.naval-wizard-highlighted {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25),
                0 0 0 3px #2E75B6,
                0 0 18px 4px rgba(46, 117, 182, 0.4);
}

/* ── Header bar ── */
.naval-wizard-header {
    background: #1B3A5C;
    color: #fff;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.naval-wizard-skip {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
}

.naval-wizard-skip:hover {
    color: #fff;
}

/* ── Body ── */
.naval-wizard-body {
    padding: 28px 28px 24px;
    text-align: center;
}

/* ── Step dots ── */
.naval-wizard-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.naval-wizard-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D0D7DE;
    transition: background 0.25s ease;
}

.naval-wizard-dot.naval-wizard-dot-active {
    background: #2E75B6;
}

/* ── Icon ── */
.naval-wizard-icon {
    margin-bottom: 12px;
    line-height: 1;
    display: flex;
    justify-content: center;
}

.naval-wizard-icon svg {
    display: block;
}

/* ── Heading ── */
.naval-wizard-heading {
    font-size: 18px;
    font-weight: 700;
    color: #1B3A5C;
    margin: 0 0 10px;
}

/* ── Body text ── */
.naval-wizard-text {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* ── Extra content area (mockup, etc.) ── */
.naval-wizard-extra {
    margin: 0 0 20px;
}

/* ── Button row ── */
.naval-wizard-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.naval-wizard-btn-next {
    background: #1B3A5C;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    max-width: 200px;
    transition: background 0.2s ease;
}

.naval-wizard-btn-next:hover {
    background: #244a72;
}

.naval-wizard-btn-back {
    background: transparent;
    color: #1B3A5C;
    border: 2px solid #1B3A5C;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    max-width: 200px;
    transition: background 0.2s ease;
}

.naval-wizard-btn-back:hover {
    background: rgba(27, 58, 92, 0.07);
}

/* ── Floating help button ── */
.naval-wizard-help-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1B3A5C;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    line-height: 1;
}

.naval-wizard-help-btn:hover {
    background: #244a72;
    transform: scale(1.08);
}

/* ── Elevate PO action popup above wizard card ── */
#poActionPopup {
    z-index: 10020 !important;
}

/* ── Responsive — stack buttons on small screens ── */
@media (max-width: 480px) {
    .naval-wizard-buttons {
        flex-direction: column;
    }

    .naval-wizard-btn-next,
    .naval-wizard-btn-back {
        max-width: 100%;
    }

    .naval-wizard-card {
        width: 96%;
    }

    .naval-wizard-card.naval-wizard-right {
        right: 8px;
        width: 94%;
    }

    .naval-wizard-card.naval-wizard-over-chat {
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .naval-wizard-body {
        padding: 20px 18px 18px;
    }
}
