/* estilo.css - Estilos generales de la plataforma */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
}

h1 {
    font-size: 22px;
    text-align: center;
    color: #007BFF;
    margin-bottom: 25px;
}

h2 {
    font-size: 16px;
    color: #555;
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: bold;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input:focus {
    border-color: #007BFF;
    outline: none;
}

button {
    width: 100%;
    background: #007BFF;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 5px;
    transition: background 0.2s;
}

button:hover {
    background: #0056b3;
}

.divider {
    margin: 25px 0;
    border-top: 1px dashed #ddd;
}

.register-section {
    background: #fafbfc;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eaeaea;
}

.instruction {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.btn-register {
    background: #28a745;
}

.btn-register:hover {
    background: #218838;
}

.mensaje-error {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

/* Estilo para las tarjetas de cursos interactivos en el panel del profesor */
.curso-card-link {
    display: block;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.curso-card-link:hover {
    background-color: #007BFF;
    border-color: #0056b3;
}

.curso-card-link:hover h4,
.curso-card-link:hover p {
    color: #ffffff !important;
}

/* Contenedor de dos columnas con soporte para scroll horizontal en pantallas pequeñas */
.admin-columns-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    width: 100%;
}

.admin-column {
    flex: 1;
    min-width: 380px; /* Asegura un ancho mínimo para que en pantallas chicas aparezca el scroll horizontal */
    background: #fdfefe;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
}

/* Tarjeta de lección interactiva */
.leccion-card-link {
    display: block;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    margin-bottom: 12px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.leccion-card-link:hover {
    background-color: #007BFF;
    border-color: #0056b3;
}

.leccion-card-link:hover h4,
.leccion-card-link:hover p,
.leccion-card-link:hover span {
    color: #ffffff !important;
}

/* Estilo cuando la lección está seleccionada actualmente */
.leccion-card-link.seleccionada {
    border-color: #007BFF;
    border-left: 5px solid #0056b3;
    background-color: #f1f8ff;
}

