/* Contenedor principal del formulario */
.form-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    border: 1px solid #e3e6f0;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

    /* Título del formulario */
    .form-container h1 {
        text-align: center;
        margin-bottom: 25px;
        font-size: 28px;
        color: #4e73df;
        font-weight: bold;
    }

/* Estilo para etiquetas */
.form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    color: #5a5c69;
}

/* Inputs, select y archivo */
.form-group input[type="text"],
.form-group select,
.form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d3e2;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    background-color: #f8f9fc;
    color: #5a5c69;
    transition: border-color 0.3s, box-shadow 0.3s;
}

    .form-group input:focus,
    .form-group select:focus,
    .form-group input[type="file"]:focus {
        border-color: #4e73df;
        box-shadow: 0 0 5px rgba(78, 115, 223, 0.5);
        outline: none;
    }

/* Mensaje de error */
.text-danger {
    color: #e74a3b;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 15px;
}

/* Botones generales */
button[type="submit"],
.table .btn-sm {
    padding: 5px 12px;
    font-size: 14px;
    border-radius: 4px;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

    button[type="submit"]:hover {
        background-color: #2e59d9;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    }

/* Tabla CRUD */
.table {
    width: 100%;
    margin-top: 30px;
    border-collapse: collapse;
}

    .table th,
    .table td {
        text-align: center;
        padding: 12px;
        border: 1px solid #ddd;
        vertical-align: middle;
    }

    .table th {
        background-color: #f8f9fc;
        color: #5a5c69;
        font-weight: bold;
    }

    .table img {
        border-radius: 5px;
        border: 1px solid #ddd;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* Botón "Actualizar" */
    .table .btn-update {
        background-color: #28a745;
    }

        .table .btn-update:hover {
            background-color: #218838;
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
        }

    /* Botón "Eliminar" */
    .table .btn-delete {
        background-color: #dc3545;
    }

        .table .btn-delete:hover {
            background-color: #c82333;
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
        }

    /* Contenedor de botones en la tabla */
    .table td form {
        display: inline-block;
        margin-right: 10px; /* Espacio entre botones */
    }
