﻿/* Base form input styles */
.sp-form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-sizing: border-box;
}

    .sp-form-control:focus {
        color: #495057;
        background-color: #fff;
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

/* Sizes */
.sp-form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.sp-form-control-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: 0.3rem;
}

/* Validation styles */
.sp-is-valid {
    border-color: #28a745;
    padding-right: calc(0.375rem + 2.25rem);
    background-position: center right calc(0.375rem + 0.225rem);
    background-repeat: no-repeat;
    background-size: calc(0.75rem + 0.375rem) calc(0.75rem + 0.375rem);
}

.sp-is-invalid {
    border-color: #dc3545;
    padding-right: calc(0.375rem + 2.25rem);
    background-position: center right calc(0.375rem + 0.225rem);
    background-repeat: no-repeat;
    background-size: calc(0.75rem + 0.375rem) calc(0.75rem + 0.375rem);
}

/* Disabled and Readonly */
.sp-form-control:disabled, .sp-form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}
