/* =========================================================
   LNZ HUB CSS - v8.3.1 - MODO OSCURO + TABS STAFF
   ========================================================= */

:root {
    --bg-dark: #0b1220;
    --bg-card: #151e32;
    --accent: #3498db;
    --border: rgba(255,255,255,0.08);
    --text-muted: #a7b4d6;
    --success: #2ecc71;
    --danger: #e74c3c;
}

.lnz-staff-wrap { 
    font-family: 'Segoe UI', Roboto, sans-serif; 
    color: #fff !important; 
    background: var(--bg-dark); 
    padding: 35px; 
    border-radius: 16px; 
    margin: 20px auto; 
    border: 1px solid var(--border); 
    max-width: 1200px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
    overflow: hidden; 
}

.lnz-section-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 30px; 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 25px; 
}

.lnz-pretitle { 
    font-size: 11px; 
    letter-spacing: 2px; 
    color: var(--accent); 
    font-weight: 800; 
    text-transform: uppercase; 
}

.lnz-section-header h2 { 
    font-size: 1.8rem !important; 
    margin: 0; 
    color: #fff !important; 
}

/* INSIGNIAS */
.user-rank-container { display: flex; gap: 15px; align-items: center; }
.user-rank-container div[class*="mycred"], .user-rank-container .mycred-badges-list { display: flex !important; flex-direction: row !important; gap: 12px; }
.user-rank-container img { width: 64px !important; height: 64px !important; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5)); transition: transform 0.2s; }

/* GRID CORREGIDO */
.lnz-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 25px; 
    align-items: start; 
}

.lnz-col {
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.lnz-card-box { 
    background: var(--bg-card); 
    padding: 25px; 
    border-radius: 12px; 
    border: 1px solid var(--border); 
    box-sizing: border-box; 
    width: 100%;
    margin-top: 0 !important; 
}

.lnz-card-box h4 { margin: 0 0 20px 0; font-size: 1rem; color: var(--accent) !important; text-transform: uppercase; letter-spacing: 1px; }

/* BARRAS DE PROGRESO LNZ - RESTAURADO EL COLOR ORIGINAL */
.curso-item { margin-bottom: 20px; }
.curso-info { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 8px; }
.lnz-progress-bar { background: #000; height: 10px; border-radius: 5px; overflow: hidden; border: 1px solid var(--border); }
.lnz-progress-fill { 
    background: linear-gradient(90deg, var(--accent), #8e44ad); 
    height: 100%; 
    transition: width 0.8s; 
}

/* STATS Y TABLAS */
.stat-mini .stat-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.stat-label { font-size: 0.9rem; color: var(--text-muted); }
.stat-value { font-size: 1.6rem; font-weight: bold; color: var(--success); }
.lnz-table-mini { width: 100%; border-collapse: collapse; background: transparent !important; }
.lnz-table-mini tr, .lnz-table-mini td, .lnz-table-mini tbody { background: transparent !important; background-color: transparent !important; }
.lnz-table-mini tr:hover td { background: rgba(255,255,255,0.02) !important; }
.lnz-table-mini td { border-bottom: 1px solid var(--border); padding: 10px 0; color: #fff; }

/* LISTA CLASES */
.lnz-mini-list { list-style: none; padding: 0; margin: 0; }
.lnz-mini-list li { display: flex; background: rgba(255,255,255,0.03); padding: 12px; border-radius: 10px; margin-bottom: 12px; border: 1px solid var(--border); }
.class-date-badge { background: var(--accent); padding: 8px; border-radius: 8px; min-width: 45px; text-align: center; margin-right: 15px; color: #fff; }
.class-date-badge .d { display: block; font-size: 1.2rem; font-weight: bold; line-height: 1; }
.class-date-badge .m { font-size: 0.65rem; text-transform: uppercase; }
.class-info strong { display: block; font-size: 1rem; color: #fff; }
.class-info span { font-size: 0.85rem; color: var(--text-muted); }

/* BOTÓN DISCORD */
.btn-primary { background: var(--accent); color: #fff !important; border: none; padding: 12px 20px; border-radius: 8px; cursor: pointer; font-weight: bold; text-decoration: none; }

/* ANTI TRAMPAS TUTOR LMS */
form.tutor-course-complete-form, .tutor-course-complete-btn, .tutor-btn-complete-course { display: none !important; }

/* =========================================================
   PANEL STAFF: PESTAÑAS (TABS) Y EXTRAS
   ========================================================= */
.lnz-staff-wrap.alert-lock { text-align: center; padding: 60px; border: 1px solid #e74c3c; background: rgba(231, 76, 60, 0.05); }

/* Pestañas */
.lnz-tabs-nav { display: flex; gap: 10px; margin-bottom: 25px; border-bottom: 1px solid var(--border); padding-bottom: 10px; flex-wrap: wrap; }
.lnz-tab-btn { background: rgba(0,0,0,0.3); color: var(--text-muted); border: 1px solid var(--border); padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: all 0.3s ease; }
.lnz-tab-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.lnz-tab-btn.active { background: #e74c3c; color: #fff; border-color: #e74c3c; box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3); }

/* Desplegable Select */
select[name="cadete_id"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

select[name="cadete_id"]:focus { 
    outline: none; 
    border-color: #e74c3c !important; 
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3); 
}

/* Ocultar elementos viejos si se quedaron cacheados */
.lnz-search-form button { display: none; }

/* Adaptabilidad Móvil */
@media (max-width: 900px) {
    .lnz-grid { grid-template-columns: 1fr; }
    .lnz-tabs-nav { flex-direction: column; }
    .lnz-tab-btn { width: 100%; text-align: center; }
}