/* ===============================
   ESTILO GENERAL
================================= */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 20px;
}

/* ===============================
   HEADER
================================= */

.header {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.header h1 {
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.header p {
    opacity: 0.85;
    font-size: 0.95rem;
}

/* ===============================
   LAYOUT PRINCIPAL
================================= */


/* ===============================
   SIDEBAR (LISTA)
================================= */

.list {
    background: #ffffff;
    border-radius: 15px;
    flex: 0 0 260px;
    padding: 25px;
    height: fit-content;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.list h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.list ul {
    padding-left: 0;
}

.list li {
    list-style: none;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.list li:hover {
    background-color: #2563eb;
    color: white;
    transform: translateX(4px);
}

/* ===============================
   CONTENIDO PRINCIPAL
================================= */

.article {
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    flex: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

/* ===============================
   TABLA
================================= */

.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background-color: #1e293b;
    color: white;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: 0.2s ease-in-out;
}

.table tbody tr:hover {
    background-color: #f1f5f9;
}

/* ===============================
   BOTONES
================================= */

.btn-primary {
    background-color: #2563eb;
    border: none;
    transition: 0.2s;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-warning {
    background-color: #f59e0b;
    border: none;
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-danger {
    border: none;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

/* ===============================
   FOOTER
================================= */

.footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #6c757d;
    font-size: 0.9rem;
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }

    .list {
        flex: 100%;
    }
}
/* ===============================
   ANIMACIONES SUAVES
================================= */

/* Animación general al cargar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    animation: fadeIn 0.6s ease-in-out;
}

.list {
    animation: fadeIn 0.8s ease-in-out;
}

.article {
    animation: fadeIn 1s ease-in-out;
}

/* Animación en filas de tabla */
.table tbody tr {
    animation: fadeIn 0.5s ease-in-out;
}

/* Hover más elegante en tabla */
.table tbody tr:hover {
    background-color: #eef2ff;
    transform: scale(1.01);
}

/* Botones con efecto suave */
.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Botón insertar más elegante */
#modalInsert {
    padding: 8px 18px;
    font-weight: 500;
    border-radius: 8px;
}

/* Tarjetas efecto elevación */
.list,
.article {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.list:hover,
.article:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}