/* Custom Sliders */
.custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #1f2937; /* Tailwind gray-800 */
    border-radius: 5px;
    outline: none;
    transition: background .2s;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #34d399; /* Tailwind emerald-400 */
    cursor: pointer;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 2px solid #030712;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.6);
}

.custom-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #34d399;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 2px solid #030712;
}

.custom-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.6);
}

/* Specific theme for amber slider thumb (Inflation) */
.custom-slider.theme-amber::-webkit-slider-thumb {
    background: #fbbf24; /* Tailwind amber-400 */
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}
.custom-slider.theme-amber::-webkit-slider-thumb:hover {
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}

.custom-slider.theme-amber::-moz-range-thumb {
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}
.custom-slider.theme-amber::-moz-range-thumb:hover {
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}

/* Card Transitions */
.goal-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.goal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    border-color: #374151; /* gray-700 */
}

/* Dimming for low priority when unaffordable */
.goal-card.dimmed {
    opacity: 0.4;
    filter: grayscale(0.8);
    pointer-events: none; /* Disable interaction when dimmed */
}

.goal-card.dimmed:hover {
    opacity: 0.8;
    filter: grayscale(0.3);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.4s ease-out forwards;
}
