/* Driver.js Theme Customization for CryptoPortfolio */

/* Base popover styles */
.driver-popover {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    color: var(--text-primary) !important;
    max-width: 320px;
}

.driver-popover-title {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
}

.driver-popover-description {
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

/* Progress bar */
.driver-popover-progress-text {
    color: var(--text-muted) !important;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
}

/* Footer with navigation */
.driver-popover-footer {
    border-top: 1px solid var(--border-color) !important;
    padding-top: 12px !important;
    margin-top: 12px !important;
}

/* Navigation buttons container */
.driver-popover-navigation-btns {
    gap: 8px;
    display: flex;
    justify-content: flex-end;
}

/* Next/Done button */
.driver-popover-next-btn {
    background: var(--accent-gradient) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 8px 16px !important;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    transition: var(--transition-normal);
    cursor: pointer;
}

.driver-popover-next-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
    opacity: 0.9;
}

/* Previous button */
.driver-popover-prev-btn {
    background: transparent !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 8px 16px !important;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    transition: var(--transition-normal);
    cursor: pointer;
}

.driver-popover-prev-btn:hover {
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
}

/* Close button */
.driver-popover-close-btn {
    color: var(--text-muted) !important;
    transition: var(--transition-fast);
}

.driver-popover-close-btn:hover {
    color: var(--danger) !important;
}

/* Arrow styling */
.driver-popover-arrow-side-left.driver-popover-arrow {
    border-left-color: var(--bg-card) !important;
}

.driver-popover-arrow-side-right.driver-popover-arrow {
    border-right-color: var(--bg-card) !important;
}

.driver-popover-arrow-side-top.driver-popover-arrow {
    border-top-color: var(--bg-card) !important;
}

.driver-popover-arrow-side-bottom.driver-popover-arrow {
    border-bottom-color: var(--bg-card) !important;
}

/* Overlay - lighter background */
.driver-overlay {
    background: rgba(0, 0, 0, 0.4) !important;
}

[data-theme="light"] .driver-overlay {
    background: rgba(0, 0, 0, 0.25) !important;
}

/* Highlighted element stage */
.driver-active-element {
    border-radius: var(--radius-md) !important;
}

/* Navigation Guide button in sidebar */
.tour-nav-guide-btn {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--sidebar-border);
    color: var(--sidebar-text);
    font-size: 0.8rem;
    padding: 8px 12px;
    transition: var(--transition-normal);
    border-radius: var(--radius-md);
}

.tour-nav-guide-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.tour-nav-guide-btn i {
    font-size: 0.9rem;
}

/* Page header tour button */
.btn-outline-secondary.d-flex.align-items-center[onclick*="TourManager"] {
    padding: 0.5rem 0.75rem;
    border-color: var(--border-color);
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.btn-outline-secondary.d-flex.align-items-center[onclick*="TourManager"]:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.btn-outline-secondary.d-flex.align-items-center[onclick*="TourManager"] i {
    font-size: 1.1rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .driver-popover {
        max-width: calc(100vw - 40px) !important;
        margin: 0 20px;
    }

    .tour-trigger-btn {
        padding: 4px 8px;
    }

    .tour-trigger-btn span {
        display: none;
    }
}

/* Animation for tour elements */
@keyframes tourPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
}

.driver-active-element {
    animation: tourPulse 2s infinite;
}
