/**
 * Athena Onboarding Tour Styles
 *
 * Custom styles for driver.js onboarding tour.
 * Colors match the Athena design system.
 */

/* Driver.js Override Styles */
.driver-popover {
    background-color: var(--athena-bg-white, #ffffff);
    border-radius: var(--athena-radius-lg, 12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: none;
    max-width: 420px;
}

.driver-popover.athena-onboarding-popover {
    font-family: inherit;
}

/* Popover Title */
.driver-popover-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--athena-primary, #435971);
    padding: 1rem 1.25rem 0.5rem;
    margin: 0;
}

/* Popover Description */
.driver-popover-description {
    font-size: 0.9375rem;
    color: var(--athena-text-dark, #495057);
    padding: 0 1.25rem 1rem;
    line-height: 1.6;
}

.driver-popover-description p {
    margin-bottom: 0.75rem;
}

.driver-popover-description p:last-child {
    margin-bottom: 0;
}

.driver-popover-description ul,
.driver-popover-description ol {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.driver-popover-description li {
    margin-bottom: 0.35rem;
}

.driver-popover-description strong {
    color: var(--athena-primary, #435971);
    font-weight: 600;
}

.driver-popover-description code {
    background: var(--athena-bg-light, #f8f9fa);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    color: var(--athena-danger, #dc3545);
}

/* Progress Bar */
.driver-popover-progress-text {
    font-size: 0.75rem;
    color: var(--athena-text-muted, #6c757d);
    padding: 0 1.25rem;
    margin-bottom: 0.5rem;
}

/* Footer Buttons */
.driver-popover-footer {
    padding: 0.75rem 1.25rem 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid var(--athena-border-light, #e7eaf0);
    margin-top: 0.5rem;
}

.driver-popover-footer button {
    padding: 0.5rem 1rem;
    border-radius: var(--athena-radius-sm, 4px);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

/* Previous Button */
.driver-popover-prev-btn {
    background: transparent;
    color: var(--athena-text-secondary, #566a7f);
    border: 1px solid var(--athena-border, #dee2e6) !important;
}

.driver-popover-prev-btn:hover {
    background: var(--athena-bg-light, #f8f9fa);
    color: var(--athena-primary, #435971);
}

/* Next/Done Button */
.driver-popover-next-btn {
    background: var(--athena-primary, #435971);
    color: white;
}

.driver-popover-next-btn:hover {
    background: var(--athena-primary-dark, #2c3e50);
}

/* Close Button */
.driver-popover-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--athena-text-muted, #6c757d);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.driver-popover-close-btn:hover {
    background: var(--athena-bg-light, #f8f9fa);
    color: var(--athena-primary, #435971);
}

/* Arrow */
.driver-popover-arrow {
    border: 10px solid transparent;
}

.driver-popover-arrow-side-left {
    border-right-color: var(--athena-bg-white, #ffffff);
}

.driver-popover-arrow-side-right {
    border-left-color: var(--athena-bg-white, #ffffff);
}

.driver-popover-arrow-side-top {
    border-bottom-color: var(--athena-bg-white, #ffffff);
}

.driver-popover-arrow-side-bottom {
    border-top-color: var(--athena-bg-white, #ffffff);
}

/* Highlighted Element */
.driver-active-element {
    outline: none !important;
    border-radius: var(--athena-radius, 8px);
}

/* Overlay */
.driver-overlay {
    background: rgba(0, 0, 0, 0.75);
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .driver-popover {
        max-width: calc(100vw - 2rem);
        margin: 0 1rem;
    }

    .driver-popover-title {
        font-size: 1.125rem;
        padding: 0.875rem 1rem 0.5rem;
    }

    .driver-popover-description {
        font-size: 0.875rem;
        padding: 0 1rem 0.875rem;
    }

    .driver-popover-footer {
        padding: 0.625rem 1rem 0.875rem;
        flex-wrap: wrap;
    }

    .driver-popover-footer button {
        flex: 1;
        min-width: 80px;
    }
}

/* Animation */
.driver-popover {
    animation: athena-popover-fade-in 0.2s ease-out;
}

@keyframes athena-popover-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Onboarding Restart Button (optional floating button) */
.athena-onboarding-restart-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--athena-primary, #435971);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    z-index: 999;
}

.athena-onboarding-restart-btn:hover {
    background: var(--athena-primary-dark, #2c3e50);
    transform: scale(1.05);
}

.athena-onboarding-restart-btn i {
    line-height: 1;
}

/* Hide restart button on mobile */
@media (max-width: 767.98px) {
    .athena-onboarding-restart-btn {
        bottom: 80px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
