/* ========================================
           Checkbox Styling
           ======================================== */

.form-checkbox,
input[type="checkbox"].form-checkbox,
input[type="checkbox"] {
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem !important;
    max-width: 1rem !important;
    border: 2px solid #d1d5db !important;
    border-radius: 0.25rem !important;
    background-color: white !important;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle;
}

.form-checkbox:hover,
input[type="checkbox"]:hover {
    border-color: #9ca3af !important;
    background-color: #f9fafb !important;
}

.form-checkbox:checked,
input[type="checkbox"]:checked {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

.form-checkbox:checked::after,
input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 0.20rem;
    top: 0.05rem;
    width: 0.35rem;
    height: 0.60rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-checkbox:focus,
input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.form-checkbox:disabled,
input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
