/* ==========================================================================
   GMR KIT v7.0 · DISCORD EMBED, TERMINAL & GMR-BOT HUD STYLES
   ========================================================================== */

/* Discord-Style Rich Embed Container */
.discord-embed {
  background: rgba(13, 17, 26, 0.92);
  border-left: 3px solid var(--tac-orange);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 6px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--tac-orange);
  transition: all 0.2s ease;
}

.embed-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-toggle-embed {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--tac-orange-bright);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-toggle-embed:hover {
  background: rgba(255, 106, 0, 0.16);
  border-color: var(--tac-orange);
  color: #fff;
}

.embed-author {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--tac-orange-bright);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.embed-author-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px currentColor;
}

.embed-title-row {
  display: flex;
  align-items: center;
}

.embed-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
}

.discord-embed.is-collapsed {
  padding: 6px 12px;
  gap: 4px;
}

.discord-embed.is-collapsed .embed-title {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

.embed-collapsible-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: embedFadeIn 0.2s ease;
}

@keyframes embedFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.embed-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.embed-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.embed-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.embed-field-name {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.embed-field-value {
  font-size: 0.8rem;
  color: #fff;
  font-weight: 600;
}

.embed-footer {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Efecto de escritura en Terminal */
.terminal-typing::after {
  content: '▋';
  color: var(--tac-orange-bright);
  animation: blinkTerminal 0.8s infinite;
}

@keyframes blinkTerminal {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Estado de Inyección WebSocket Exitosa (Verde Neón Militar) */
.command-code-box.inject-success,
.cart-terminal-footer.inject-success {
  border-color: #22c55e !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5) !important;
  background: rgba(34, 197, 94, 0.08) !important;
  transition: all 0.3s ease;
}

/* Panel GMR-BOT NLP & Linter (Compact & Collapsible) */
.gmr-bot-panel {
  background: rgba(10, 14, 22, 0.85);
  border: 1px solid rgba(255, 106, 0, 0.25);
  border-radius: 6px;
  padding: 6px 10px;
  margin: 6px 12px 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.gmr-bot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
}

.gmr-bot-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--tac-orange-bright);
  letter-spacing: 0.8px;
}

.gmr-bot-sub {
  color: var(--text-dim);
  font-size: 9.5px;
  font-weight: 500;
}

.btn-gmr-bot-toggle {
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.3);
  color: var(--tac-orange-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gmr-bot-panel.collapsed .btn-gmr-bot-toggle {
  transform: rotate(-90deg);
}

.gmr-bot-panel.collapsed .gmr-bot-collapsible-body {
  display: none;
}

.gmr-bot-collapsible-body {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gmr-bot-input-group {
  display: flex;
  gap: 6px;
}

.gmr-bot-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.75rem;
  color: #fff;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.gmr-bot-input:focus {
  border-color: var(--tac-orange);
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.2);
}

.btn-gmr-bot-submit {
  background: var(--grad-orange);
  border: none;
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-gmr-bot-submit:hover {
  background: var(--grad-orange-hover);
  box-shadow: 0 0 12px var(--tac-orange-glow);
}

/* Linter Metrics HUD */
.linter-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.linter-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.linter-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.linter-progress-fill {
  height: 100%;
  width: 0%;
  background: #22c55e;
  transition: width 0.2s, background 0.2s;
}

.linter-progress-fill.warn {
  background: #f59e0b;
}

.linter-progress-fill.danger {
  background: #ef4444;
}

/* Barra de Telemetría Pterodactyl & ArcisBot */
.telemetry-strip-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: rgba(4, 7, 12, 0.85);
  border: 1px solid rgba(255, 106, 0, 0.3);
  border-radius: 4px;
  padding: 5px 10px;
  margin: 6px 12px 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  gap: 4px 8px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.telemetry-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-transform: uppercase;
}

.telemetry-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
  animation: pulseDot 2s infinite;
}

.telemetry-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.telemetry-stats-group {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.tele-stat-item b {
  color: #fff;
}

/* Botón de Inyección Directa en Pterodactyl */
.btn-inject-pterodactyl {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: 1px solid #34d399;
  border-radius: 5px;
  padding: 7px 12px;
  min-height: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
}

.btn-inject-pterodactyl:hover:not(:disabled) {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
}

.btn-inject-pterodactyl:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* Botones de Exportar / Importar Staff Config */
.staff-portability-row {
  display: flex;
  gap: 6px;
}

.btn-staff-portability {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
}

.btn-staff-portability:hover {
  background: rgba(255, 106, 0, 0.15);
  border-color: var(--tac-orange);
  color: #fff;
}

/* ==========================================================================
   TELEMETRY STRIP & ARCISBOT SERVER INFO MODAL
   ========================================================================== */
.telemetry-strip-hud {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.telemetry-strip-hud:hover {
  border-color: rgba(255, 106, 0, 0.6);
  background: rgba(8, 14, 24, 0.95);
}

.btn-telemetry-details {
  background: rgba(255, 106, 0, 0.15);
  border: 1px solid rgba(255, 106, 0, 0.4);
  color: #ffaa33;
  border-radius: 3px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.btn-telemetry-details:hover {
  background: #ff6a00;
  color: #000;
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.5);
}

/* Modal Visor de Información del Servidor (ArcisBot + Pterodactyl) */
.server-info-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: rgba(3, 6, 10, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 16px;
  box-sizing: border-box;
}

.server-info-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.server-info-chassis {
  position: relative;
  width: 95%;
  max-width: 860px;
  max-height: 90vh;
  background: linear-gradient(175deg, #101520 0%, #080c14 100%);
  border: 2px solid #233147;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 30px rgba(34, 197, 94, 0.12);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPopIn 0.22s ease-out;
}

@keyframes modalPopIn {
  from { transform: scale(0.96) translateY(8px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.server-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #1a2536;
  background: rgba(0, 0, 0, 0.35);
}

.server-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-info-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.server-status-pill-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #4ade80;
  letter-spacing: 0.5px;
}

.server-info-sub {
  margin: 4px 0 0 0;
  font-size: 0.8rem;
  color: var(--text-dim, #94a3b8);
}

.btn-close-server-info {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.15s;
}

.btn-close-server-info:hover {
  background: #ef4444;
  border-color: #ef4444;
}

.server-info-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.server-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.server-metric-card {
  background: rgba(14, 21, 33, 0.7);
  border: 1px solid #1f2c42;
  border-radius: 5px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s;
}

.server-metric-card:hover {
  border-color: rgba(255, 106, 0, 0.4);
}

.metric-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.metric-main-stat {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 3px solid #ff6a00;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.metric-sublabel {
  font-size: 0.68rem;
  color: var(--text-dim, #94a3b8);
  font-weight: 700;
  text-transform: uppercase;
}

.metric-details-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
}

.metric-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted, #94a3b8);
}

.metric-detail-row b {
  font-family: var(--font-mono);
  color: #e2e8f0;
}

.server-curl-box {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #1e2838;
  border-radius: 4px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.curl-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-dim, #94a3b8);
}

.btn-copy-curl {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-copy-curl:hover {
  background: #0284c7;
  color: #fff;
}

.server-curl-box code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #86efac;
  word-break: break-all;
  user-select: all;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 8px;
  border-radius: 3px;
}

.server-info-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid #1a2536;
  background: rgba(0, 0, 0, 0.35);
}

.btn-refresh-server {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-refresh-server:hover {
  background: #0284c7;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.btn-close-server-modal {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-close-server-modal:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}


