/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: #333;
}

/* Contenedor del login/registro */
.auth-body {
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.auth-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Títulos */
.auth-container h2 {
    margin-bottom: 20px;
    color: #333;
}

/* Campos de entrada */
.auth-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Botón */
.auth-container button {
    width: 100%;
    padding: 10px;
    border: none;
    background: #007bff;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.auth-container button:hover {
    background: #0056b3;
}

/* Mensajes de error */
.error-message {
    color: red;
    background: #f8d7da;
    padding: 10px;
    border-radius: 5px;
}

/* Enlace para cambiar entre login y registro */
.auth-link {
    margin-top: 15px;
    font-size: 14px;
}

.auth-link a {
    color: #007bff;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background: #007bff;
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navegación */
.navbar {
    background: #007bff;
    color: white;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 10px;
    transition: 0.3s;
}

.nav-links a span {
    color: white;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Contenido */
.content {
    padding: 60px;
}

/* Contenedor principal */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilos para encabezados */
h1 {
    font-size: 28px;
    font-weight: bold;
    color: #007bff;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

h3 {
    font-size: 20px;
    font-weight: 500;
    color: #444;
    margin-bottom: 10px;
}

/* Estilos para párrafos */
p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
}

/* Formularios*/
input {
    width: 300px;
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Sección Hero */
.hero {
    text-align: center;
    padding: 50px 20px;
    background: #0073e6;
    color: white;
    border-radius: 10px;
    margin: 20px;
}
.hero h2 {
    font-size: 32px;
    margin-bottom: 10px;
}
.hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* Características */
.features {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    margin: 20px;
}
.features ul {
    list-style: none;
    padding: 0;
}
.features li {
    font-size: 18px;
    margin: 10px 0;
}

/* Botones de llamada a la acción */
.cta {
    text-align: center;
    padding: 40px;
}
.btn {
    display: inline-block;
    padding: 15px 25px;
    margin: 10px;
    font-size: 18px;
    color: white;
    background: #0073e6;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}
.btn:hover {
    background: #005bb5;
}
.btn-secondary {
    background: #555;
}

/* Footer */
.footer {
    background: #343a40;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}

/* Contenedor del progreso total */
.progreso-total-container {
    text-align: center;
    margin-bottom: 20px;
}

/* Texto superior de la barra */
.progreso-texto {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

/* Barra de progreso */
.barra-progreso-total {
    width: 100%;
    max-width: 500px;
    height: 40px;
    background-color: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

/* Relleno de la barra */
.barra-progreso-interna {
    height: 100%;
    background-color: #007bff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    transition: width 0.5s ease-in-out;
}

/* Tablas */
.table-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 12px; /* Reducimos el padding para compactar */
    text-align: center; /* Centramos el texto */
    border-bottom: 1px solid #e9ecef;
}

/* Fondo alterno en filas */
table tr:nth-child(even) {
    background: #f9f9f9;
}

table th {
    background: #007bff;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    padding: 12px;
}

/* Ajuste de inputs y selects dentro de la tabla */
table input,
table select {
    width: 55%; /* Ajustamos para que no se vean tan grandes */
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    text-align: center; /* Centramos los números */
}

/* Ajustamos el tamaño del select */
table select {
    height: 35px;
    cursor: pointer;
}

/* Tamaño de los checkboxes */
.fase-check {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: orange;
}

/* Estilos de etiquetas de dificultad */
.etiqueta-dificultad {
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    display: inline-block;
}

.facil {
    background-color: #28a745; /* Verde */
}

.medio {
    background-color: #ffc107; /* Naranja */
}

.dificil {
    background-color: #dc3545; /* Rojo */
}

/* Estilos para inputs inline */

.editable {
    cursor: pointer;
    position: relative;
    padding: 5px 10px;
    transition: 0.3s;
}

/* Efecto hover: cambia el fondo y añade subrayado */
.editable:hover {
    background: rgba(0, 123, 255, 0.7);
    border-radius: 4px;
}

/* Botones */
button {
    background: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
    display: inline;
    margin: 4px auto;
}

button:hover {
    background: #0056b3;
}


/* Mensajes de confirmación */
.mensaje-confirmacion {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #2ecc71; /* Verde para éxito */
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Barra de progreso */
.progreso-container {
    position: relative;
    width: 100px;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    display: inline-block;
}

.barra-progreso {
    height: 100%;
    background: #007bff;
    width: 0%;
    transition: width 0.3s ease-in-out;
}

/* Fase editable */
.editable-fase {
    cursor: pointer;
    padding: 5px;
    display: inline-block;
    min-width: 100px;
    transition: background 0.3s;
}

.editable-fase:hover {
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
}

/* Icono de mover */
.handle {
    cursor: grab;
    font-size: 18px;
    text-align: center;
}

/* Mensajes de notificación */
.mensaje-alerta {
    position: fixed;
    top: 92%;
    left: 85%;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    z-index: 1000;
    opacity: 0.7;
    transition: opacity 0.9s ease-in-out;
}

/* Mensaje de éxito */
.mensaje-alerta.success {
    background: #28a745;
    color: white;
}

/* Mensaje de error */
.mensaje-alerta.error {
    background: #dc3545;
    color: white;
}

/* Animación para desaparecer */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-10px); }
}
