/* ========================================================
   ESTILOS INSTITUCIONALES: GRUPO PREUNIVERSITARIO MIRZAKHANI
   Paleta: Azul Moderno Ejecutivo, Corporativo y Limpio
   #2563eb (Azul Moderno Base), #1d4ed8 (Azul Real), #1e3a8a (Azul Marino Ejecutivo), #eff6ff (Fondo Activo)
   ======================================================== */

body {
  font-family: 'Nunito', sans-serif !important;
  background-color: #f8fafc;
  color: #1e293b;
}

/* ========================================================
   NAVEGACIÓN LATERAL Y ELEMENTOS ACTIVOS (AZUL MODERNO)
   ======================================================== */

/* Nav Item activo en menú principal */
.nav-item.active {
  color: #1d4ed8 !important;            /* Azul Real de alto contraste */
  background-color: #eff6ff !important; /* Azul celeste muy suave y limpio */
  border-left: 4px solid #2563eb !important; /* Borde vertical Azul Moderno */
  font-weight: 800 !important;
}

.nav-item.active i {
  color: #2563eb !important;
}

/* Subnav activo: CORREGIDO para no sombrear el texto span */
.subnav-item.active {
  color: #1d4ed8 !important;
  font-weight: 800 !important;
  background-color: #eff6ff !important;
}

.subnav-item.active .bullet-dot {
  background-color: #2563eb !important;
}

/* Botón de ciclo activo en Header */
.quick-cycle-btn.active {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35) !important;
}

/* Pantalla Completa de Login Sin Espacios en Blanco */
#screen-login {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  min-height: 100vh !important;
  height: 100% !important;
  overflow-y: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 50 !important;
}

#screen-login.hidden {
  display: none !important;
}

/* Imagen de fondo Lago Titicaca con mayor presencia y visibilidad */
.login-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('bg-titicaca.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.65; /* Aumentada para que el lago y la balsa se aprecien claramente */
  filter: saturate(1.2) contrast(1.08) brightness(1.02);
  z-index: 1;
}

/* Overlay azul con menor opacidad para permitir ver la imagen nítidamente */
.login-bg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(8, 20, 48, 0.45) 0%, rgba(14, 40, 95, 0.38) 50%, rgba(29, 78, 216, 0.32) 100%);
  z-index: 2;
}

/* Candadito en la Esquina Superior (Limpio y sin círculo) */
#top-corner-admin-lock-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  z-index: 20 !important;
}

/* Botones y Badges en Azul Moderno */
.btn-modern-blue {
  background-color: #2563eb !important;
  color: #ffffff !important;
  transition: all 0.15s ease;
}
.btn-modern-blue:hover {
  background-color: #1d4ed8 !important;
  transform: translateY(-1px);
}

.badge-modern-blue {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* ========================================================
   TIMELINE DE HORARIOS (LUNES A DOMINGO)
   ======================================================== */
.timeline-day-row {
  display: flex;
  position: relative;
  margin-bottom: 22px;
}

.timeline-day-indicator {
  width: 50px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-day-text {
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 6px;
}

.timeline-day-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #2563eb;
  background-color: #ffffff;
  z-index: 2;
}

.timeline-day-line {
  position: absolute;
  top: 36px;
  bottom: -26px;
  width: 2px;
  background-color: #e2e8f0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-day-row:last-child .timeline-day-line {
  display: none;
}

.timeline-blocks-wrapper {
  flex: 1;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  padding: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.timeline-class-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 7px;
  border: 1px solid rgba(0,0,0,0.05);
  background-color: #f8fafc;
  transition: transform 0.15s ease;
}

.timeline-class-card:last-child {
  margin-bottom: 0;
}

.timeline-class-card:hover {
  transform: translateX(3px);
  background-color: #f1f5f9;
}

/* Pastillas de Hora (Azul Moderno Vibrante) */
.time-pill-blue, .time-pill-vino {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #2563eb;
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.course-title-text {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

/* ========================================================
   ACORDEÓN Y ENLACES EN VIVO
   ======================================================== */
.accordion-header-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  transition: all 0.15s ease;
  cursor: pointer;
}

.accordion-header-btn:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.meet-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 14px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.meet-info-pill {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  background-color: #ffffff;
}

/* Botón de Enlace en Vivo (Azul Moderno) */
.btn-enlace-vivo, .meet-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #2563eb;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}

.btn-enlace-vivo:hover, .meet-btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.35);
}

/* ========================================================
   BOTONES DE RECURSOS (PRÁCTICAS, SOLUCIONARIOS, VIDEOS)
   ======================================================== */
.resource-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Botón Práctica (Azul Moderno) */
.btn-practica-pdf, .btn-guia-pdf {
  background-color: #2563eb;
  color: #ffffff;
}
.btn-practica-pdf:hover, .btn-guia-pdf:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(37, 99, 235, 0.3);
}

/* Botón Solucionario (Verde Bosque / Esmeralda Serio para contraste óptimo) */
.btn-solucionario-pdf {
  background-color: #059669;
  color: #ffffff;
}
.btn-solucionario-pdf:hover {
  background-color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(5, 150, 105, 0.3);
}

/* Botón Video Grabación (Rojo YouTube / Video Oficial) */
.btn-video-grabacion {
  background-color: #dc2626;
  color: #ffffff;
}
.btn-video-grabacion:hover {
  background-color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(220, 38, 38, 0.3);
}

/* Botón Recurso Desactivado (Gris cuando no hay archivo PDF o Link subido) */
.btn-recurso-disabled {
  background-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  border: 1px solid #cbd5e1 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  user-select: none;
  opacity: 0.85;
}
.btn-recurso-disabled:hover {
  background-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  transform: none !important;
}

/* Enlace en vivo desactivado (Gris cuando no hay sala o link programado) */
.btn-enlace-vivo-disabled {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f1f5f9;
  color: #94a3b8;
  border: 1px dashed #cbd5e1;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: not-allowed;
  user-select: none;
}

/* Tabs de Vouchers */
.voucher-tab-btn.active {
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
  font-weight: 900 !important;
}

/* Scrollbars limpias */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
