/* Estilos básicos */
body {
    background-color: #f8f9fa;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: #343a40;
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

header h1 {
    font-size: 26px;
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Contenedor principal */
.container {
    flex-grow: 1;
    margin: 30px auto 70px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    max-width: 1200px;
}

/* Tabla */
.table {
    font-size: 12px;
    border-collapse: collapse;
    width: 100%;
}

.table th, .table td {
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #ddd;
}

.table thead {
    background-color: #007bff;
    color: white;
}

/* Total de registros */
#total-registros {
    font-weight: bold;
    text-align: right;
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: #343a40;
    color: white;
    padding: 20px;
    text-align: center;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

/* Lista de alumnos por carrera */
/* Lista de alumnos por carrera */
#alumnos-por-carrera {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

#alumnos-por-carrera li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px; /* Espacio reducido */
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

#alumnos-por-carrera li:last-child {
    border-bottom: none;
}

/* Nombre de la carrera */
.carrera-nombre {
    flex: 2; /* Ajusta el espacio para el nombre */
    font-weight: bold;
    font-size: 0.8rem; /* Tamaño compacto */
    color: #333;
    white-space: nowrap; /* Evita que se corten nombres largos */
    overflow: hidden;
    text-overflow: ellipsis; /* Muestra puntos suspensivos si el texto es muy largo */
}

/* Contenedor de la barra de progreso */
.barra-contenedor {
    flex: 3; /* Ajusta el espacio para las barras */
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    height: 6px; /* Altura compacta */
    margin: 0 10px; /* Separación horizontal */
}

/* Barra de progreso */
.barra-progreso {
    background-color: #007bff;
    height: 100%;
    transition: width 0.5s ease; /* Animación suave */
}

/* Total por carrera */
.carrera-total {
    flex: 1; /* Espacio ajustado para el total */
    font-size: 0.8rem; /* Tamaño compacto */
    color: #007bff;
    text-align: right;
}


/* Responsividad */
@media (max-width: 768px) {
    .table th, .table td {
        padding: 6px;
    }

    header h1 {
        font-size: 22px;
    }

    #total-registros {
        font-size: 12px;
    }

    .col-md-6 {
        margin-bottom: 10px;
    }

    .d-flex {
        flex-direction: column;
    }

    .d-flex button {
        margin-bottom: 5px;
    }
}
/* Columna 2 (Nombre) alineada a la izquierda */
.table th:nth-child(2),
.table td:nth-child(2) {
    text-align: left;
    padding-left: 12px; /* opcional, queda más prolijo */
}

/* =========================
   CABECERA INSTITUCIONAL
========================= */
.ies-header {
    background: linear-gradient(135deg, #1f2d3d, #2c3e50);
    color: #ffffff;
    padding: 30px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.ies-header h1 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ies-header h2 {
    font-size: 1.1rem;
    font-weight: 300;
    margin-top: 5px;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .ies-header {
        padding: 20px 10px;
    }

    .ies-header h1 {
        font-size: 1.2rem;
    }

    .ies-header h2 {
        font-size: 1rem;
    }
}


@media (max-width: 576px) {
    header h1 {
        font-size: 20px;
    }

    footer {
        padding: 15px;
    }

    #total-registros {
        font-size: 12px;
    }

    .col-md-6 {
        width: 100%;
    }
}
