/* ===== Walkthrough Overlay ===== */
.wt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9998;
    pointer-events: auto;
    animation: wt-fadeIn 0.25s ease-out;
}

@keyframes wt-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Highlight Box ===== */
.wt-highlight {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 0 4px #0078d4;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    animation: wt-pulseRing 2s ease-in-out infinite;
}

@keyframes wt-pulseRing {
    0%, 100% { box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 0 4px #0078d4; }
    50% { box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(0, 120, 212, 0.4); }
}

/* ===== Tooltip ===== */
.wt-tooltip {
    position: fixed;
    z-index: 10000;
    animation: wt-tooltipIn 0.2s ease-out;
}

@keyframes wt-tooltipIn {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.wt-tooltip-center {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
}

.wt-tooltip-top {
    animation-name: wt-tooltipInUp;
}

@keyframes wt-tooltipInUp {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.wt-tooltip-content {
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    color: #fff;
    border-radius: 14px;
    padding: 24px 24px 18px;
    box-shadow: 0 12px 40px rgba(0, 80, 160, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    max-height: 70vh;
    overflow: hidden;
    position: relative;
}

.wt-tooltip-center .wt-tooltip-content {
    max-width: 420px;
    min-width: 300px;
}

/* ===== Tooltip Arrow ===== */
.wt-tooltip-bottom::before,
.wt-tooltip-top::before,
.wt-tooltip-left::before,
.wt-tooltip-right::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #0078d4;
    transform: rotate(45deg);
    z-index: -1;
}

.wt-tooltip-bottom::before {
    top: -7px;
    left: 50%;
    margin-left: -6px;
    border-right: none;
    border-bottom: none;
}

.wt-tooltip-top::before {
    bottom: -7px;
    left: 50%;
    margin-left: -6px;
    border-left: none;
    border-top: none;
}

.wt-tooltip-left::before {
    right: -7px;
    top: 50%;
    margin-top: -6px;
    border-left: none;
    border-bottom: none;
}

.wt-tooltip-right::before {
    left: -7px;
    top: 50%;
    margin-top: -6px;
    border-right: none;
    border-top: none;
}

/* ===== Title & Body ===== */
.wt-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.wt-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.wt-body {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 18px;
}

.wt-body b {
    color: #fff;
    font-weight: 600;
}

/* ===== Actions ===== */
.wt-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 2px;
}

.wt-spacer {
    flex: 1;
}

.wt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wt-btn-next,
.wt-btn-finish {
    background: transparent;
    color: #fff;
}

.wt-btn-next:hover,
.wt-btn-finish:hover {
    background: rgba(255, 255, 255, 0.12);
}

.wt-btn-back {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
}

.wt-btn-back:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.wt-btn-skip {
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.wt-btn-skip:hover {
    color: rgba(255, 255, 255, 0.85);
}

.wt-btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.wt-btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ===== Progress Bar ===== */
.wt-progress {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10001;
    padding: 8px 14px;
    background: rgba(0, 60, 130, 0.75);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.wt-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.25s ease;
}

.wt-progress-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.25);
}

.wt-progress-dot.active {
    background: #fff;
    transform: scale(1.35);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.wt-progress-dot.done {
    background: rgba(255, 255, 255, 0.55);
}

/* ===== Step Indicator ===== */
.wt-step-indicator {
    position: fixed;
    bottom: 52px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    z-index: 10001;
    text-shadow: 0 1px 4px rgba(0, 40, 100, 0.5);
    letter-spacing: 0.5px;
}

/* ===== Center mode (no target) ===== */
.wt-center-mode .wt-highlight {
    display: none !important;
}

.wt-center-mode .wt-overlay-bg {
    background: rgba(0, 0, 0, 0.45);
}

/* ===== Shimmer effect on tooltip ===== */
.wt-tooltip-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: wt-shimmer 3s ease-in-out infinite;
    pointer-events: none;
    border-radius: 14px;
    overflow: hidden;
}

@keyframes wt-shimmer {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

/* ===== Help Button (header) ===== */
.wt-help-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.wt-help-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

/* ===== Settings Panel Tutorial Section ===== */
.wt-settings-tutorial {
    border: 1px solid var(--neutral-stroke-divider-rest, #e0e0e0);
    border-radius: 8px;
    padding: 14px;
    background: var(--neutral-fill-secondary-rest, #f9f9f9);
}

.wt-settings-tutorial-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wt-settings-tutorial-desc {
    font-size: 12.5px;
    color: var(--neutral-foreground-subtle-rest, #616161);
    margin-bottom: 10px;
    line-height: 1.45;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .wt-tooltip-content {
        max-width: 90vw;
        min-width: 240px;
        padding: 16px;
    }

    .wt-title {
        font-size: 14px;
    }

    .wt-body {
        font-size: 12.5px;
    }

    .wt-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
}
