/* class-switcher.css — Conmutador global entre clases para el Programa IA PDVSA */
.class-switcher-wrapper {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  user-select: none;
}

body.negro .class-switcher-wrapper {
  display: none !important;
}

.class-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #F3F4F6;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.class-switcher-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(245, 158, 11, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.22);
}

.class-switcher-btn svg.icon-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.class-switcher-wrapper.open .class-switcher-btn svg.icon-arrow {
  transform: rotate(180deg);
}

.class-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 290px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  animation: csFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.class-switcher-wrapper.open .class-switcher-menu {
  display: flex;
}

@keyframes csFadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.class-switcher-header {
  padding: 6px 10px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9CA3AF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.class-switcher-header span.badge-live {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
}

.class-switcher-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  color: #E5E7EB;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.class-switcher-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.class-switcher-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.class-switcher-item.active {
  background: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
  font-weight: 600;
}

.class-switcher-item .badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #9CA3AF;
}

.class-switcher-item.active .badge {
  background: #F59E0B;
  color: #000;
}

.class-switcher-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}
