/*
 * Fallback visual para campos de formulario sem utilitarios Tailwind.
 * Usa seletores diretos para garantir aplicacao padrao nos formularios.
 */

input:not([class]):not([type="checkbox"], [type="radio"], [type="file"], [type="color"], [type="range"], [type="hidden"], [type="button"], [type="submit"], [type="reset"]),
form select:not([class]),
textarea:not([class]) {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background-color: #ffffff;
    color: #111827;
    font-size: 0.875rem;
    line-height: 1.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

/* Estilo consistente para select simples (single-select) */
form select:not([class]) {
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    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.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
}

/* Preserva comportamento nativo para multi-select/listbox */
form select:not([class])[multiple],
form select:not([class])[size]:not([size="1"]) {
    padding-right: 1rem;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    background-image: none;
}

input:not([class]):not([type="checkbox"], [type="radio"], [type="file"], [type="color"], [type="range"], [type="hidden"], [type="button"], [type="submit"], [type="reset"]):focus,
form select:not([class]):focus,
textarea:not([class]):focus {
    outline: none;
    border-color: #259f46;
    box-shadow: 0 0 0 2px rgba(37, 159, 70, 0.2);
}

input:not([class]):not([type="checkbox"], [type="radio"], [type="file"], [type="color"], [type="range"], [type="hidden"], [type="button"], [type="submit"], [type="reset"]):disabled,
form select:not([class]):disabled,
textarea:not([class]):disabled {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}
