/* App guided tour overlay */
.app-tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    pointer-events: none;
}

.app-tour-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    pointer-events: auto;
    transition: opacity 0.2s ease;
}

.app-tour-spotlight {
    position: fixed;
    z-index: 10051;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.55);
    pointer-events: none;
    transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.app-tour-popover {
    position: fixed;
    z-index: 10052;
    width: min(360px, calc(100vw - 24px));
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
    animation: appTourIn 0.2s ease;
}

@keyframes appTourIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.app-tour-popover-header {
    padding: 1rem 1.1rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.app-tour-popover-header h6 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.app-tour-step-badge {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.app-tour-popover-body {
    padding: 0.75rem 1.1rem 1rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #475569;
}

.app-tour-popover-footer {
    padding: 0.75rem 1.1rem 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-tour-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.app-tour-actions .btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
}

.app-tour-dont-show {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    user-select: none;
}

.app-tour-dont-show input {
    cursor: pointer;
}

.app-tour-hidden {
    display: none !important;
}

body.app-tour-active {
    overflow: hidden;
}

.app-tour-trigger {
    border-color: #0ea5e9 !important;
    color: #0369a1 !important;
    font-weight: 600;
}

.app-tour-trigger:hover {
    background: #e0f2fe !important;
    color: #0c4a6e !important;
}
