body {
    font-family: 'Inter', sans-serif;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader {
    border: 4px solid #374151;
    border-top-color: #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* Utilities */
.btn-active {
    background-color: #2563eb !important;
    color: white !important;
    border-color: #2563eb !important;
}

.input-active {
    border-color: #3b82f6 !important;
    background-color: rgba(37, 99, 235, 0.1) !important;
    color: #60a5fa !important;
}

.section-dimmed {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.section-dimmed:hover {
    opacity: 0.8;
}

select option {
    background-color: #1f2937;
    color: white;
    padding: 8px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Chart Tooltip */
.floating-tooltip {
    width: auto;
    min-width: 120px;
    height: auto;
    position: absolute;
    display: none;
    padding: 8px;
    box-sizing: border-box;
    font-size: 12px;
    text-align: left;
    z-index: 1000;
    top: 12px;
    left: 12px;
    pointer-events: none;
    border-radius: 4px 4px 0px 0px;
    background-color: rgba(17, 24, 39, 0.9);
    color: #d1d5db;
    border: 1px solid #374151;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}