/* Tutorial Overlay based on box-shadow technique to avoid complex z-index issues */
#tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    /* Let clicks pass through initially, we might block them via another div if needed */
    z-index: 9998;
    display: none;
    transition: all 0.3s ease;
}

/* The spotlight effect */
.tutorial-spotlight {
    position: absolute;
    border-radius: 4px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75);
    /* Darken everything else */
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
}

/* Tooltip Card */
.tutorial-card {
    position: fixed;
    width: 300px;
    background: var(--bg-panel);
    border: 1px solid var(--accent);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 1.5rem;
    z-index: 9999;
    color: var(--text-main);
    display: none;
    flex-direction: column;
    gap: 1rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tutorial-card h3 {
    font-family: var(--font-heading);
    color: var(--accent);
    margin: 0;
    font-size: 1.2rem;
}

.tutorial-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}

.tutorial-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.tutorial-steps-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tutorial-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tutorial-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tutorial-btn.primary {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: bold;
}

.tutorial-btn.primary:hover {
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Highlighted Element class - useful if we need to force styles */
.tutorial-active-element {
    position: relative;
    z-index: 9999 !important;
}