/* Fuente base */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: #f4f4f4; /* Fondo suave */
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center; /* Centra el contenido */
    width: 100%;
    display: flex;
    flex-direction: column; /* Asegura que los elementos estén alineados verticalmente */
    align-items: center; /* Centra los inputs y el botón horizontalmente */
}

.logo {
    max-width: 120px;
    margin-bottom: 20px;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* Inputs y botón */
.input-field {
    width: 90%; /* Ajusta el ancho para que no ocupe todo el espacio */
    max-width: 300px; /* Establece un ancho máximo */
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    text-align: center; /* Centra el texto dentro del input */
}

.input-field:focus {
    border-color: #6c63ff; /* Color principal */
    box-shadow: 0px 0px 5px rgba(108, 99, 255, 0.3);
}

.button {
    width: 90%; /* Igual que los inputs */
    max-width: 300px; /* Igual que los inputs */
    padding: 15px 0px;
    background: #6c63ff; /* Color principal */
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
}

.login-input {
    width: 100%;
    padding: 12px 0px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
}

.login-input:focus {
    border-color: #6c63ff; /* Color principal */
    box-shadow: 0px 0px 5px rgba(108, 99, 255, 0.3);
}

.login-button {
    width: 100%;
    padding: 12px;
    background: #6c63ff; /* Color principal */
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-button:hover {
    background: #5b54d6; /* Color más oscuro al pasar */
}

.error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 10px;
}

/* Nuevo CSS para el Dashboard */
/* Header */
/* Header con Padding */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #6c63ff; /* Color principal */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px; /* Espacio de 20px en los lados */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo img {
    margin-top: 20px;
    height: 40px;
    margin-left: 10px; /* Opcional para más espacio */
}

.menu {
    display: flex;
    align-items: center;
    position: relative;
    margin-right: 10px; /* Opcional para más espacio */
}

/* Contenedor Principal con Padding */
.dashboard-content {
    margin-top: 80px; /* Espacio para el header */
    padding: 20px; /* Padding interno */
}


/* Cursos */
.courses-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Por defecto, 4 tarjetas */
    gap: 20px;
    padding: 10px; /* Espacio interno alrededor del contenedor */
}

@media (max-width: 1200px) {
    .courses-container {
        grid-template-columns: repeat(3, 1fr); /* Hasta 3 tarjetas en pantallas medianas */
    }
}

@media (max-width: 768px) {
    .courses-container {
        grid-template-columns: repeat(2, 1fr); /* Hasta 2 tarjetas en tabletas */
    }
}

@media (max-width: 480px) {
    .courses-container {
        grid-template-columns: 1fr; /* 1 tarjeta en dispositivos móviles */
    }
}


.logo img {
    height: 40px;
}

.menu {
    display: flex;
    align-items: center;
    position: relative;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
}

.profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#profile-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: none;
    z-index: 1000;
}

#profile-menu.hidden {
    display: none;
}

#profile-menu li {
    list-style: none;
}

#profile-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

#profile-menu a:hover {
    background: #f4f4f4;
}

/* Dashboard Content */
.dashboard-content {
    margin-top: 80px; /* Espacio para el header */
    padding: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

/* Courses Container */
.courses-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Por defecto, 4 tarjetas */
    gap: 20px;
}

@media (max-width: 1200px) {
    .courses-container {
        grid-template-columns: repeat(3, 1fr); /* Hasta 3 tarjetas en pantallas medianas */
    }
}

@media (max-width: 768px) {
    .courses-container {
        grid-template-columns: repeat(2, 1fr); /* Hasta 2 tarjetas en tabletas */
    }
}

@media (max-width: 480px) {
    .courses-container {
        grid-template-columns: 1fr; /* 1 tarjeta en dispositivos móviles */
    }
}


.course-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.course-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #6c63ff;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #666;
}
