/* Austra Finanzas - Custom Styles */

/* Scrollbar Styles */
* {
    scrollbar-width: thin;
    scrollbar-color: #475569 #1e293b;
}

*::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-track {
    background: #1e293b;
}

*::-webkit-scrollbar-thumb {
    background-color: #475569;
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #64748b;
}

/* Range Input Styles */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #334155;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
}

/* Purple range variant */
.purple-range::-webkit-slider-thumb {
    background: #9333ea;
}

.purple-range::-moz-range-thumb {
    background: #9333ea;
}

/* Tab transitions */
.tab-panel {
    transition: opacity 0.2s ease-in-out;
}

.tab-panel.hidden {
    display: none;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Accordion transition */
.accordion-content {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-icon.rotate {
    transform: rotate(180deg);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(to right, #3b82f6, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button gradients */
.btn-gradient {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(to right, #2563eb, #7c3aed);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* Best option highlight */
.best-option {
    background: linear-gradient(to right, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border-color: rgba(34, 197, 94, 0.5);
}

/* Widget card */
.widget-card {
    backdrop-filter: blur(10px);
    background: rgba(30, 41, 59, 0.8);
}

/* Loading spinner */
.spinner {
    border: 3px solid #334155;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse animation for live indicators */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom focus styles */
input:focus, select:focus, button:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Number formatting */
.number-display {
    font-variant-numeric: tabular-nums;
}
