/* Confidence Slider Component Styling */

.confidence-slider-container {
    margin-bottom: 24px;
}

.confidence-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.slider-label-text {
    font-size: 15px;
    font-weight: 600;
    color: #202124;
}

.slider-value-display {
    font-size: 18px;
    font-weight: 700;
    color: #002D72;
    background: #F1F3F4;
    padding: 6px 14px;
    border-radius: 20px;
}

.slider-input-wrapper {
    position: relative;
    margin-bottom: 8px;
}

/* Slider Track */
input[type="range"].confidence-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right,
        #E8EAED 0%,
        #E8EAED var(--slider-progress, 0%),
        #DADCE0 var(--slider-progress, 0%),
        #DADCE0 100%);
    outline: none;
    cursor: pointer;
    margin: 8px 0; /* Add vertical margin to prevent thumb clipping */
}

/* Slider Thumb - Webkit (Chrome, Safari) */
input[type="range"].confidence-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #002D72 0%, #004494 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    margin-top: -8px; /* Center thumb on track (thumb is 24px, track is 8px) */
}

input[type="range"].confidence-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

input[type="range"].confidence-slider::-webkit-slider-thumb:active {
    transform: scale(1.05);
}

/* Slider Thumb - Firefox */
input[type="range"].confidence-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #002D72 0%, #004494 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

/* Firefox Range Track */
input[type="range"].confidence-slider::-moz-range-track {
    height: 8px;
    border-radius: 4px;
}

input[type="range"].confidence-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

input[type="range"].confidence-slider::-moz-range-thumb:active {
    transform: scale(1.05);
}

/* High confidence (>50%) - Green gradient */
input[type="range"].confidence-slider.high-confidence {
    background: linear-gradient(to right,
        #34A853 0%,
        #34A853 var(--slider-progress, 0%),
        #DADCE0 var(--slider-progress, 0%),
        #DADCE0 100%);
}

/* Medium confidence (20-50%) - Blue gradient */
input[type="range"].confidence-slider.medium-confidence {
    background: linear-gradient(to right,
        #4285F4 0%,
        #4285F4 var(--slider-progress, 0%),
        #DADCE0 var(--slider-progress, 0%),
        #DADCE0 100%);
}

/* Low confidence (<20%) - Orange gradient */
input[type="range"].confidence-slider.low-confidence {
    background: linear-gradient(to right,
        #FF5910 0%,
        #FF5910 var(--slider-progress, 0%),
        #DADCE0 var(--slider-progress, 0%),
        #DADCE0 100%);
}

.slider-help-text {
    font-size: 12px;
    color: #5f6368;
    font-style: italic;
}

/* Prediction Form Sections */
.prediction-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.prediction-group {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 24px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.prediction-group:hover {
    border-color: #E8EAED;
}

.prediction-group-title {
    font-size: 18px;
    font-weight: 700;
    color: #002D72;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prediction-group-icon {
    font-size: 24px;
}

/* Select Dropdown for Players */
.player-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Roboto', Arial, sans-serif;
    border: 2px solid #DADCE0;
    border-radius: 8px;
    background: white;
    color: #202124;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.player-select:hover {
    border-color: #002D72;
}

.player-select:focus {
    outline: none;
    border-color: #4285F4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* Number Input for Wins */
.number-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Roboto', Arial, sans-serif;
    border: 2px solid #DADCE0;
    border-radius: 8px;
    background: white;
    color: #202124;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.number-input:hover {
    border-color: #002D72;
}

.number-input:focus {
    outline: none;
    border-color: #4285F4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* Radio Buttons for Division/Playoff */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border: 2px solid #DADCE0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: #002D72;
    background: #F8F9FA;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #002D72;
}

.radio-option.selected {
    border-color: #002D72;
    background: #E8F0FE;
}

.radio-label {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #202124;
    cursor: pointer;
}

/* Checkboxes for Milestones */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border: 2px solid #DADCE0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-option:hover {
    border-color: #002D72;
    background: #F8F9FA;
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #002D72;
}

.checkbox-option.checked {
    border-color: #34A853;
    background: #E6F4EA;
}

.checkbox-label {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #202124;
    cursor: pointer;
}

/* Community Percentage Badge */
.community-percentage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #E8F0FE;
    color: #1967D2;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.contrarian-badge {
    background: #FCE8E6;
    color: #C5221F;
}

.contrarian-badge::before {
    content: "🔥 ";
}

/* Responsive */
@media (max-width: 768px) {
    .prediction-group {
        padding: 16px;
    }

    .slider-value-display {
        font-size: 16px;
    }

    .radio-option,
    .checkbox-option {
        padding: 10px 12px;
    }
}

