/* ───────────────────────────────────────────
   Tutorial Overlay Styles
   ─────────────────────────────────────────── */

/* Full-screen backdrop — click to advance */
.tutorial-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9000;
    cursor: pointer;
    background: transparent;
}

/* Spotlight box — box-shadow creates the dark surround */
.tutorial-spotlight {
    position: fixed;
    z-index: 9001;
    pointer-events: none;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.72);
    transition: left 0.35s ease, top 0.35s ease,
                width 0.35s ease, height 0.35s ease;
}

/* When no target — simple full-screen dim */
.tutorial-backdrop.dimmed {
    background: rgba(0, 0, 0, 0.72);
}

/* Dialog card */
.tutorial-dialog {
    position: fixed;
    z-index: 9002;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    padding: 1.25rem 1.25rem 1rem;
    animation: tutorialFadeIn 0.2s ease;
    pointer-events: all;
}

@keyframes tutorialFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.tutorial-dialog-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tutorial-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.tutorial-dialog-header h3 {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
}

.tutorial-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #888;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.15s;
}

.tutorial-close:hover {
    background: #f0f0f0;
    color: #333;
}

.tutorial-description {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #444;
    margin-bottom: 1.1rem;
}

.tutorial-description strong {
    color: #222;
}

.tutorial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.tutorial-progress {
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
}

.tutorial-progress-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.tutorial-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.2s;
}

.tutorial-dot.active {
    background: var(--primary, #e74c3c);
}

.tutorial-buttons {
    display: flex;
    gap: 0.5rem;
}

.tutorial-btn-prev,
.tutorial-btn-next,
.tutorial-btn-done {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.15s, transform 0.1s;
}

.tutorial-btn-prev {
    background: #eee;
    color: #555;
}

.tutorial-btn-prev:hover {
    background: #ddd;
}

.tutorial-btn-next {
    background: var(--primary, #e74c3c);
    color: #fff;
}

.tutorial-btn-next:hover {
    opacity: 0.88;
}

.tutorial-btn-done {
    background: #27ae60;
    color: #fff;
}

.tutorial-btn-done:hover {
    opacity: 0.88;
}

/* Tutorial trigger button (always visible in sidebar) */
.tutorial-trigger {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    color: #666;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    margin-top: 0.25rem;
}

.tutorial-trigger:hover {
    background: #e9ecef;
    border-color: #999;
    color: #333;
}
