/* Custom styles outside of Tailwind */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Make sure the chart container has a relative positioning for the tooltip if needed */
#chart-container {
    position: relative;
}

/* Any custom animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Tutorial Animations */
@keyframes pulseHighlight {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.tutorial-pulse {
    animation: pulseHighlight 2s infinite;
    position: relative;
    z-index: 10;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(-3%); }
    50% { transform: translateY(0); }
}

.animate-bounce-slow {
    animation: bounceSlow 3s infinite ease-in-out;
}

/* Driver.js Custom Theme */
.driver-popover { border-radius: 1rem !important; padding: 1.25rem !important; font-family: 'Inter', sans-serif !important; border: 1px solid #e2e8f0 !important; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important; }
.driver-popover-title { font-weight: 800 !important; color: #1e3a8a !important; font-size: 1.125rem !important; }
.driver-popover-description { color: #475569 !important; font-size: 0.95rem !important; line-height: 1.5 !important; }
.driver-popover-footer button { border-radius: 0.5rem !important; font-weight: 600 !important; transition: all 0.2s !important; padding: 0.5rem 1rem !important; text-shadow: none !important; }
.driver-popover-next-btn { background-color: #2563eb !important; color: white !important; border: none !important; }
.driver-popover-next-btn:hover { background-color: #1d4ed8 !important; }
.driver-popover-prev-btn { color: #64748b !important; border-color: #e2e8f0 !important; background-color: white !important; }
.driver-popover-prev-btn:hover { background-color: #f8fafc !important; }


/* Super Smooth Driver.js Transitions */
div.driver-popover { transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important; }
svg.driver-overlay path { transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important; }
.driver-active-element { transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important; }

