.Select-control {
    background-color: #222 !important;
}

.Select.is-focused > .Select-control {
    background-color: #222;
}

#school-input {
    color: white;
}

.Select-value-label {
    color: white;
}

.Select--single > .Select-control .Select-value, .Select-placeholder {
    border: 1px solid grey;
    border-radius: 4px;
}

.VirtualizedSelectOption {
    background-color: #222;
    color: white;
 }

.VirtualizedSelectFocusedOption {
    background-color: #222;
    opacity: .7;
}

.Select.is-focused:not(.is-open) > .Select-control {
    background-color: #222;
    border-color: #466daa;
    box-shadow: none;
}

/* Dark mode styling for text inputs */
input.form-control {
    background-color: #222 !important;
    color: white !important;
    border-color: rgba(150, 150, 150, 0.3) !important;
}

input.form-control:focus {
    background-color: #333 !important;
    color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(99, 152, 238, 0.25) !important;
    border-color: #466daa !important;
}

input.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

input.form-control:disabled {
    background-color: #1a1a1a !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Improve invalid state styling */
input.form-control.is-invalid {
    border-color: #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.1) !important;
}

input.form-control.is-valid {
    border-color: #006450 !important; /* More subtle darker green */
    background-color: #222 !important; /* Match regular input background */
}

.form-control.is-invalid:focus, .form-control.is-valid:focus {
    box-shadow: none !important;
}

/* Make sure valid inputs keep dark background when focused */
.form-control.is-valid:focus {
    background-color: #333 !important;
    border-color: #007558 !important; /* Slightly brighter but still subtle when focused */
    box-shadow: 0 0 0 0.25rem rgba(99, 152, 238, 0.25) !important;
}

.form-control.is-invalid ~ .invalid-feedback {
    color: #e74c3c !important;
}

.dash-spreadsheet td{
    font-family: sans-serif;
}

.dash-spreadsheet tr td.dash-cell.cell--selected.focused{
    border-color: lightgrey !important;
    border-width: 0.5px !important;
    background-color: #2e3c45 !important;
    color: white !important;
}
.dash-spreadsheet td.dash-cell{
    border-color: lightgrey !important;
    border-width: 0.5px !important;
    color: white !important;
}
.dash-spreadsheet input.input-active.unfocused.selectable.dash-cell-value{
    color: white;

}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner input:not([type="radio"]):not([type="checkbox"]) {
	padding: 0px;
	margin: 0px;
	height: calc(100% - 1px);
	line-height: 30px;
	border: none;
	font-family: inherit;
	text-align: right;
	box-sizing: border-box;
	color: white;
	background-color: transparent;
	text-shadow: none;
}

div#encounter-info .form-check label.form-check-label p{
    margin-bottom: 0rem;
}

/* Improve number input styling */
input[type="number"] {
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove previous border-color styling for the default arrow */
/*
.Select-arrow {
    border-color: #466daa transparent transparent !important;
    opacity: 0.8 !important;
}

.Select.is-open > .Select-control .Select-arrow {
    border-color: transparent transparent #466daa !important;
    opacity: 0.8 !important;
}
*/
