/* ==========================================================================
   PIA | Centro de Atención Plenus
   Demo Control Panel & Presenter Drawer Styling
   ========================================================================== */

/* Floating Presenter Trigger Button */
.btn-toggle-presenter {
  position: fixed;
  top: 16px;
  right: 16px;
  background: #ffffff;
  color: #008069;
  border: 1px solid #d1d7db;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

.btn-toggle-presenter:hover {
  background: #f0fdf4;
  border-color: #00a884;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 132, 0.25);
}

.btn-toggle-presenter.active {
  background: #008069;
  color: #ffffff;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background: #25d366;
  border-radius: 50%;
  animation: pulseDot 1.8s infinite;
}

/* Presenter Drawer */
.presenter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 360px;
  max-width: 90vw;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.15);
  z-index: 99;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.presenter-drawer.open {
  transform: translateX(0);
}

.panel-header {
  padding: 18px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-brand img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.p-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.2px;
}

.panel-close-btn {
  background: #e2e8f0;
  border: none;
  color: #64748b;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-close-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.panel-section {
  padding: 18px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.panel-subtitle {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

/* Scenario Jump List */
.scenarios-jump-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jump-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.jump-btn:hover {
  background: #f0fdf4;
  border-color: #86efac;
  transform: translateX(3px);
}

.jump-btn .num {
  font-size: 11px;
  font-weight: 800;
  color: #008069;
  background: #d1fae5;
  padding: 4px 6px;
  border-radius: 4px;
  min-width: 24px;
  text-align: center;
}

.jump-btn .j-info {
  display: flex;
  flex-direction: column;
}

.jump-btn .j-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.jump-btn .j-desc {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

/* Device Switcher */
.device-switcher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.btn-device-mode {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-device-mode.active {
  background: #0e2439;
  border-color: #0e2439;
  color: #ffffff;
}

/* Settings */
.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #475569;
  font-weight: 600;
}

.speed-toggle-group {
  display: flex;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px;
  border: 1px solid #e2e8f0;
}

.btn-speed-mode {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-speed-mode.active {
  background: #008069;
  color: #ffffff;
}

.btn-sound-toggle {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-sound-toggle.active {
  color: #065f46;
  background: #d1fae5;
  border-color: #a7f3d0;
}

/* Footer & Reset */
.panel-footer {
  padding: 20px;
  margin-top: auto;
}

.btn-reset-demo {
  width: 100%;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-reset-demo:hover {
  background: #dc2626;
  color: #ffffff;
}
