/* Custom styles for Opportunity Calculator */

/* Slider Styles */
.slider {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.slider::-webkit-slider-track {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
}

.slider::-moz-range-track {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #5A7D9E;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    margin-top: -8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb {
    background: #5A7D9E;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider:hover::-webkit-slider-thumb {
    background: #4a6a86;
    transform: scale(1.1);
}

.slider:hover::-moz-range-thumb {
    background: #4a6a86;
    transform: scale(1.1);
}

/* Input field improvements */
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;
}

/* Focus states */
input:focus,
.slider:focus {
    outline: none;
}

/* Smooth transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Chart container adjustments */
canvas {
    max-height: 100%;
    max-width: 100%;
}

/* Loading state for form */
.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print styles */
@media print {
    .bg-warm-bg {
        background: white !important;
    }

    button,
    form,
    .slider {
        display: none !important;
    }

    .shadow-lg {
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .slider::-webkit-slider-thumb {
        height: 28px;
        width: 28px;
    }

    .slider::-moz-range-thumb {
        height: 28px;
        width: 28px;
    }

    h1 {
        font-size: 1.875rem !important;
    }

    #totalOpportunity {
        font-size: 2.25rem !important;
    }
}

/* Animation for value updates */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate-pulse-once {
    animation: pulse 0.5s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}