/* src/components/FormStyles.css */

.add-entity-form-container {
    border-top: 2px solid #007bff;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.add-entity-form-container h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.add-entity-form {
    display: grid;
    /* Usamos grid para un control preciso de las columnas */
    grid-template-columns: 3fr 2fr 0.5fr auto;
    gap: 1rem;
    align-items: flex-end; /* Alinea los elementos en la parte inferior de la celda */
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-right: 15px;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #555;
    text-align: left;
}

.form-field input[type="text"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

.form-field input[type="color"] {
    height: 38px; /* Misma altura que los inputs de texto */
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px; /* Padding interno para el color */
}

.add-entity-form button {
    padding: 8px 16px;
    height: 38px; /* Misma altura que los inputs */
    border: none;
    background-color: #28a745; /* Un color verde para la acción de "crear" */
    color: white;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-entity-form button:hover:not(:disabled) {
    background-color: #218838;
}

.add-entity-form button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}