/* ==========================================================================
   FEATURE: DATA INJECTION & LAYER BUS HUD STYLES
   ========================================================================== */

.di-hud-container {
  display: none !important;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  direction: ltr !important;
}

.di-hud-badge {
  background: #000A46;
  color: #FFFFFF;
  border: 1.5px solid #FB3E38;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

.di-hud-badge:hover {
  background: #FB3E38;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251, 62, 56, 0.35);
}

.di-hud-panel {
  position: absolute;
  bottom: 48px;
  right: 0;
  width: 340px;
  max-height: 520px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 10, 70, 0.3);
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: diSlideUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes diSlideUp {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.di-hud-header {
  background: #000A46;
  color: #FFFFFF;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.di-hud-title {
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.di-hud-close {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.8;
}

.di-hud-close:hover {
  opacity: 1;
}

.di-hud-body {
  padding: 16px;
  overflow-y: auto;
  font-size: 13px;
  color: #1E293B;
}

.di-hud-section-title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.di-hud-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.di-feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #F8FAFC;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

.di-feature-name {
  font-weight: 700;
  font-size: 12.5px;
  text-transform: capitalize;
}

/* Toggle Switch */
.di-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.di-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.di-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: .25s;
  border-radius: 20px;
}

.di-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s;
  border-radius: 50%;
}

input:checked + .di-slider {
  background-color: #16A34A;
}

input:checked + .di-slider:before {
  transform: translateX(18px);
}

/* Injection Form */
.di-inject-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.di-select,
.di-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 12px;
  box-sizing: border-box;
  outline: none;
}

.di-select:focus,
.di-input:focus {
  border-color: #FB3E38;
}

.di-btn {
  background: #FB3E38;
  color: #FFFFFF;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.di-btn:hover {
  background: #E02822;
}

.di-hud-json {
  background: #0F172A;
  color: #38BDF8;
  padding: 10px;
  border-radius: 8px;
  font-size: 11px;
  max-height: 140px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
