/* Custom styling for YieldCraft */

/* Hide number input spinners for cleaner look */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* Base input field styling */
.input-field {
    width: 100%;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem; /* 8px */
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #0F172A;
    transition: border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
    outline: none;
}

.input-field:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Range slider styling */
.range-slider {
    -webkit-appearance: none;
    background: #E2E8F0;
    height: 6px;
    border-radius: 4px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    cursor: pointer;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.1), 0 1px 2px -1px rgba(15, 23, 42, 0.1);
    transition: border-color 0.2s, transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
    border-color: #4F46E5;
}

.range-slider::-webkit-slider-thumb:active {
    transform: scale(0.95);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    cursor: pointer;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.1), 0 1px 2px -1px rgba(15, 23, 42, 0.1);
}

/* Value pulsing animation */
@keyframes pulseOpacity {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.pulse-anim {
    animation: pulseOpacity 300ms ease-in-out;
}
