/*
 * Project form control rule:
 * Use .ui-control for text/email/password/number/select controls.
 * Add .ui-select for select elements.
 */

.ui-control {
    width: 100%;
    height: 2.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #111827;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.ui-control::placeholder {
    color: #9ca3af;
}

.ui-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.ui-control[readonly],
.ui-control:disabled {
    background-color: #f3f4f6;
    color: #6b7280;
}

.ui-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-left: 0.75rem;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
}
