/* Custom CSS */

:root {
    --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    transition: background-color 0.3s var(--transition-timing), color 0.3s var(--transition-timing);
}

/* Custom Scrollbar for results table */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    /* slate-300 */
    border-radius: 9999px;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #475569;
    /* slate-600 */
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
    /* slate-400 */
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #64748b;
    /* slate-500 */
}

/* Smooth Height Transitions */
.expandable-content {
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.expandable-content.expanded {
    max-height: 1000px;
    /* Arbitrary large height */
    opacity: 1;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideInRight 0.4s ease-out forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* Premium FinTech Additions */
.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* Number Roll Animation */
@keyframes numberRoll {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-number {
    animation: numberRoll 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Base Body Background Enhancement (Radial Glow) */
body {
    position: relative;
    z-index: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.03) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
    pointer-events: none;
}