/* =============================================================
   form-controls.css — Estilos globais de campos de formulário
   Fonte de verdade para inputs, selects e textareas do projeto.
   Carregado após modal.css e text-fields.css para ter precedência.
   ============================================================= */

input,
select,
textarea {
    padding: 10px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #374151;
    background-color: #FAFAFA;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2E86AB;
    background-color: #fff; /* background-color apenas — shorthand resetaria background-repeat/size do select */
    box-shadow: 0 0 0 3px rgba(46, 134, 171, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

input:disabled,
select:disabled,
textarea:disabled {
    background: #F3F4F6;
    color: #9CA3AF;
    cursor: not-allowed;
    border-color: #E5E7EB;
    opacity: 1;
}

/* ------------------------------------------------------------------
   Seta dropdown para todos os <select> — remove a nativa do SO e
   adiciona chevron SVG consistente. Padding-right preserva espaço.
   ------------------------------------------------------------------ */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232E86AB' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------
   Labels globais — leve e consistente com o padrão das Configurações
   ------------------------------------------------------------------ */
.input-group-default label,
.form-group label,
.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

/* ------------------------------------------------------------------
   Checkboxes e radios não herdam o visual de texto — Bootstrap trata
   ------------------------------------------------------------------ */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    padding: 0;
    border: unset;
    background: unset;
    border-radius: unset;
    box-shadow: none;
    cursor: pointer;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
    box-shadow: none;
    outline: revert;
}
