/* ============================================================================
   AULA VIRTUAL WD_EN - ESTILOS CSS
   Fecha: 2026-01-26
   Descripción: Estilos únicos para toda la aplicación
   Extraídos de WD_EN/index.html + estilos adicionales para dashboard
   ============================================================================ */

/* ----------------------------------------------------------------------------
   ESTILOS BASE (extraídos de WD_EN/index.html)
   ---------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.video-list {
    flex: 1;
    min-width: 300px;
}

.video-player-container {
    flex: 2;
    min-width: 300px;
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.video-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.video-item.active {
    border-left: 5px solid #2575fc;
    background-color: #f0f7ff;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.video-duration {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.load-button {
    background-color: #2575fc;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.load-button:hover {
    background-color: #1a68e8;
}

.play-button-main {
    background-color: #2575fc;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.play-button-main:hover {
    background-color: #1a68e8;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.player-title {
    font-size: 1.5rem;
    color: #2c3e50;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: #1a1a1a;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.placeholder-text {
    font-size: 1.2rem;
    opacity: 0.8;
}

.video-description {
    background-color: #e8f4ff;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.7;
    white-space: pre-line;
}

.instructions {
    background-color: #e8f4ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 30px;
    font-size: 0.95rem;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #7f8c8d;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    h1 {
        font-size: 2rem;
    }
}

/* ----------------------------------------------------------------------------
   ESTILOS ADICIONALES - LOGIN / FORMULARIOS
   ---------------------------------------------------------------------------- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    padding: 20px;
    margin: 0;
    max-width: none;
}

.login-form {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 450px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #2575fc;
}

.btn {
    width: 100%;
    padding: 14px;
    background: #2575fc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #1a68e8;
}

.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* ----------------------------------------------------------------------------
   ESTILOS ADICIONALES - DASHBOARD
   ---------------------------------------------------------------------------- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.welcome-info h2 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.welcome-info p {
    color: #7f8c8d;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #c0392b;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.stats-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stats-card .label {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stats-card .value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2575fc;
}

.video-progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.video-progress-item .video-info {
    flex: 1;
}

.video-progress-item .video-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.video-progress-item .video-stats {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.not-started {
    background: #eee;
    color: #7f8c8d;
}

.status-badge.in-progress {
    background: #fff3cd;
    color: #856404;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
    transition: width 0.3s ease;
}

/* ----------------------------------------------------------------------------
   ESTILOS ADICIONALES - DASHBOARD ADMIN
   ---------------------------------------------------------------------------- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================================================
   FIN DE ESTILOS
   ============================================================================ */
