/* Fuente */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #222;
}

body {
    background: linear-gradient(90deg, #2c3e50, #4a6073);
    display: flex;
    flex-direction: column;
}

.body-libreta{
    min-height: 100vh;
    background: linear-gradient(90deg, #2c3e50, #4a6073);
}

body table {
    background: white;
    color: #333;
    width: 100%;
    max-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.container,
.contenedor-menu,
.tabla-alumnos,
.tabla-cursos,
body table {
    width: 90%;
    max-width: 1000px;
    margin: 1rem auto;
}

/*login*/

.login-container {
    display: grid;
    place-items: center;
    margin-top: 10rem;
}

.login-titulo {
    color: white;
    text-align: center;
}

.login-boton {
  display: block;
  margin: 0 auto;
}

/*login*/

/* Header */
Header {
    color: white;
    padding-left: 20rem;
    text-align: left;
    font-size: 1rem;
    font-weight: bold;
}


/* Contenedor general */

.container {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contenido-menu {
    text-align: center;
}

.contenedor-menu {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid white;
}


/* Menu arriba de las paginas */

.menu-div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    padding: 1rem 0;
    background: #2c3e50;
    box-sizing: border-box;
}

.menu-div div a {
    text-decoration: none;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    transition: color 0.3s;
}

.menu-div div a:hover {
    color: #1abc9c;
}

.menu-div .pagina-ingresada a {
    color: #1abc9c;
    font-weight: bold;
}

/* Menu arriba de las paginas */

/* Sidebar */
.sidebar {
    width: 200px;
    background: linear-gradient(90deg, #2c3e50, #4a6073);
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}
.sidebar li {
    margin: 1rem 0;
}
.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 35px;
    border-radius: 6px;
    transition: background 0.3s;
}

.sidebar a:hover {
    background: #2c3e50;
    padding: 10px 35px;
}

/* Main content */
.contenido-menu {
    flex: 1;
    padding: 2rem;
    margin: 10px;
}

/* Tabla estilizada */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
th, td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ccc;
}
th {
    background: #f0f0f0;
}

/* Formularios y botones */
input, select, button {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}
button {
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
button:hover {
    background: #2980b9;
}


/* Tabla alumnos */

.tabla-contenido {
    background: linear-gradient(90deg, #2c3e50, #4a6073);
    padding: 5px;
    display: flex;
    justify-content: center;
}

.tabla-alumnos {
    background: white;
    color: #333;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10rem;
    border-collapse: separate;
    border-spacing: 0;
}

.boton-agregar-container {
    text-align: center;
    margin: 20px 0;
}

#boton-mostrar-form {
    padding: 10px 20px;
    font-weight: bold;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#boton-mostrar-form:hover {
    background-color: #0056b3;
}

.agregar-alumno {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px 20px;
    background-color: #2c3e50; /* más oscuro que el body */
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: none; /* oculto por defecto */
}

.agregar-alumno h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: #1abc9c;
}

.agregar-alumno .formulario-filas {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.agregar-alumno label {
    margin-bottom: 6px;
    font-weight: bold;
}

.agregar-alumno input {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #555;
    font-size: 1rem;
    background-color: #fff;
    color: #333;
}

.agregar-alumno button {
    width: 100%;
    padding: 12px;
    background-color: #1abc9c;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.agregar-alumno button:hover {
    background-color: #16a085;
    transform: translateY(-2px);
}


/* libreta */

.tabla-contenido-libreta {
    background: linear-gradient(90deg, #2c3e50, #4a6073);
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tabla-contenido-libreta label {
    margin: 1rem;
    font-size: 1rem;
    color: #fff;
}

/* Cursos */

.body-cursos {
    background: linear-gradient(90deg, #2c3e50, #4a6073);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #fff;
}

.cursos-contenido {
    background: linear-gradient(90deg, #2c3e50, #4a6073);
    padding: 1rem;
    display: flex;
    justify-content: center;
}

.tabla-cursos {
    background: white;
    color: #333;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tabla-cursos td {
    font-size: 2rem;
    font-weight: bold;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.tabla-cursos td:hover {
    background: #f0f0f0;
    transform: scale(1.3);
}

/* Footer */


footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: auto;
}


tr {
    cursor: pointer;
}



/* Responsivo */

@media (max-width: 1024px) {
    .menu-div {
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .menu-div {
        flex-direction: column;
        gap: 1.5rem;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
        padding: 1rem;
    }

    .container,
    .contenedor-menu {
        flex-direction: column;
        align-items: center;
    }

    table, th, td {
        font-size: 0.9rem;
        padding: 6px;
    }

    .tabla-cursos td {
        font-size: 1.3rem;
    }

    footer {
        position: relative;
        height: auto;
    }
}

/* Responsivo */