/* ============================================================
   Guided Tour Overrides - MoniDoseQMS Design System
   CLAUDE.md Section 5: NO ANIMATIONS / NO HOVER MOVEMENT
   ============================================================ */

/* Force disable ALL Driver.js transitions and animations */
.driver-popover,
.driver-overlay,
.driver-active-element,
.driver-popover *,
.driver-popover-arrow {
    transition: none !important;
    animation: none !important;
    transition-property: none !important;
}

/* Popover styling - Design System tokens */
.driver-popover {
    background: #ffffff;
    border: 1px solid var(--color-neutral-200, #e5e7eb);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    font-family: inherit;
    max-width: 400px;
    padding: 0;
}

.driver-popover-title {
    font-size: var(--font-size-lg, 1.125rem);
    font-weight: 600;
    color: var(--color-text-primary, #111827);
    padding: 1rem 1rem 0.5rem 1rem;
    margin: 0;
    line-height: 1.4;
}

.driver-popover-description {
    font-size: var(--font-size-base, 0.875rem);
    color: var(--color-text-secondary, #374151);
    padding: 0 1rem;
    margin: 0;
    line-height: 1.6;
}

/* Footer with navigation buttons */
.driver-popover-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--color-neutral-100, #f3f4f6);
}

.driver-popover-progress-text {
    font-size: var(--font-size-sm, 0.8rem);
    color: var(--color-text-tertiary, #4b5563);
}

/* Button styling */
.driver-popover-navigation-btns {
    display: flex;
    gap: 0.5rem;
}

.driver-popover-prev-btn,
.driver-popover-next-btn,
.driver-popover-close-btn {
    border: none;
    border-radius: 6px;
    padding: 0.375rem 0.875rem;
    font-size: var(--font-size-base, 0.875rem);
    font-weight: 500;
    cursor: pointer;
    line-height: 1.5;
}

.driver-popover-prev-btn {
    background: var(--color-neutral-100, #f3f4f6);
    color: var(--color-text-secondary, #374151);
}

.driver-popover-prev-btn:hover {
    background: var(--color-neutral-200, #e5e7eb);
}

.driver-popover-next-btn {
    background: var(--primary-color, #2563eb);
    color: #ffffff;
}

.driver-popover-next-btn:hover {
    background: var(--primary-hover, #1d4ed8);
}

.driver-popover-close-btn {
    background: var(--color-neutral-100, #f3f4f6);
    color: var(--color-text-secondary, #374151);
}

.driver-popover-close-btn:hover {
    background: var(--color-neutral-200, #e5e7eb);
}

/* Arrow styling */
.driver-popover-arrow {
    border-color: #ffffff;
}

/* Overlay dimming */
.driver-overlay {
    background: rgba(0, 0, 0, 0.5);
}

/* ============================================================
   Guide Replay Button (? icon)
   Always visible on pages with a tour
   ============================================================ */
.tour-guide-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color, #2563eb);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tour-guide-btn:hover {
    background: var(--primary-hover, #1d4ed8);
}

.tour-guide-btn i {
    font-size: 1.25rem;
    line-height: 1;
}

/* Hide the guide button when a tour is actively running */
.driver-active .tour-guide-btn {
    display: none;
}

/* ============================================================
   Welcome Modal (New User)
   ============================================================ */
.tour-welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-welcome-modal {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.tour-welcome-modal h2 {
    font-size: var(--font-size-lg, 1.125rem);
    font-weight: 700;
    color: var(--color-text-primary, #111827);
    margin: 0 0 0.75rem 0;
}

.tour-welcome-modal p {
    font-size: var(--font-size-base, 0.875rem);
    color: var(--color-text-secondary, #374151);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.tour-welcome-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.tour-welcome-actions .btn-start-tour {
    background: var(--primary-color, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    font-size: var(--font-size-base, 0.875rem);
    font-weight: 500;
    cursor: pointer;
}

.tour-welcome-actions .btn-start-tour:hover {
    background: var(--primary-hover, #1d4ed8);
}

.tour-welcome-actions .btn-skip-tour {
    background: var(--color-neutral-100, #f3f4f6);
    color: var(--color-text-secondary, #374151);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    font-size: var(--font-size-base, 0.875rem);
    font-weight: 500;
    cursor: pointer;
}

.tour-welcome-actions .btn-skip-tour:hover {
    background: var(--color-neutral-200, #e5e7eb);
}
