/**
 * Moretto Guided Tour Styles (SAAS-07)
 */
.mtt-tour-bubble {
    z-index: 99999;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 16px;
    font-family: inherit;
    box-sizing: border-box;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dark .mtt-tour-bubble {
    background: #111827;
    color: #f9fafb;
    border-color: #374151;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

.mtt-tour-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mtt-tour-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f36c21;
    background: rgba(243, 108, 33, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

.mtt-tour-sparkle {
    font-size: 12px;
}

.mtt-tour-close {
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #9ca3af;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.mtt-tour-close:hover {
    color: #111827;
}

.dark .mtt-tour-close:hover {
    color: #ffffff;
}

.mtt-tour-content {
    margin-bottom: 14px;
}

.mtt-tour-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: inherit;
}

.mtt-tour-body {
    font-size: 12px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
}

.dark .mtt-tour-body {
    color: #9ca3af;
}

.mtt-tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

.dark .mtt-tour-actions {
    border-top-color: #1f2937;
}

.mtt-tour-right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mtt-tour-btn-prev,
.mtt-tour-btn-skip {
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.mtt-tour-btn-prev:hover,
.mtt-tour-btn-skip:hover {
    color: #111827;
}

.dark .mtt-tour-btn-prev:hover,
.dark .mtt-tour-btn-skip:hover {
    color: #ffffff;
}

.mtt-tour-btn-next {
    background: #f36c21;
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.15s ease;
}

.mtt-tour-btn-next:hover {
    background: #e05b12;
}

.mtt-tour-btn-complete {
    background: #059669;
}

.mtt-tour-btn-complete:hover {
    background: #047857;
}

/* Highlight target element */
.mtt-tour-highlight-target {
    outline: 2px solid #f36c21 !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 6px rgba(243, 108, 33, 0.25) !important;
    position: relative;
    z-index: 99998;
}

@media (prefers-reduced-motion: reduce) {
    .mtt-tour-bubble,
    .mtt-tour-highlight-target,
    .mtt-tour-btn-next {
        transition: none !important;
        animation: none !important;
    }
}
