/* styles/components/tour.css */

/* === Driver.js Tour Styles === */

/* Hide default navigation buttons as tour is auto-playing */
.driver-navigation-btns {
    display: none !important;
}

/* Custom styling for the popover to match app theme */
.app-tour-popover {
    background-color: var(--theme-section-bg);
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: var(--font-body);
    max-width: 400px;
}

.app-tour-popover .driver-popover-title {
    font-family: var(--font-headings);
    font-size: 1.2rem;
    font-weight: var(--font-weight-heading);
    color: var(--theme-accent);
    padding: 15px 15px 10px;
    margin: 0;
    border-bottom: 1px solid var(--theme-border);
}

.app-tour-popover .driver-popover-description {
    font-family: var(--font-body);
    color: var(--theme-text);
    padding: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.app-tour-popover .driver-popover-progress-text {
    color: var(--theme-text-secondary);
    padding: 0 15px 15px;
    font-size: 0.8rem;
    text-align: right;
    margin: 0;
}

.driver-popover-description .tour-skip-checkbox-container {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--theme-border);
}

.driver-popover-description .tour-skip-checkbox-container label {
    font-size: 0.85rem;
    color: var(--theme-text-secondary);
    font-weight: normal !important;
    display: inline !important;
    margin-bottom: 0;
}

.driver-popover-description .tour-skip-checkbox-container input[type="checkbox"] {
    accent-color: var(--theme-accent);
    vertical-align: middle;
    margin-right: 5px;
}

/* Base Driver.js styles */
.driver-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.driver-overlay.driver-active {
    opacity: 1;
    pointer-events: auto;
}

.driver-stage-wrapper {
    position: absolute;
    z-index: 10001;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 0 0 4px var(--theme-accent), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.driver-popover {
    position: absolute;
    z-index: 10002;
}

.driver-popover-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--theme-text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.driver-popover-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--theme-text);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-tour-popover {
        max-width: 300px;
    }

    .app-tour-popover .driver-popover-title {
        font-size: 1.1rem;
        padding: 12px 12px 8px;
    }

    .app-tour-popover .driver-popover-description {
        font-size: 0.9rem;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .app-tour-popover {
        max-width: 250px;
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
    }
}