/* diagnostic/diagnostic.css */
#diag-btn {
  background: #1a1a2e;
  color: #03ca6d;
  border: 1px solid #03ca6d;
  border-radius: 4px;
  cursor: pointer;
}

#diag-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 600px;
  max-height: 70vh;
  background: #0d0d1a;
  color: #c8f7c5;
  font-family: monospace;
  font-size: 1.3em;
  border: 1px solid #00ff8855;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  z-index: 499;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

#diag-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

#diag-header {
  background: #1a1a2e;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #00ff8833;
  font-size: 0.9em;
  color: #03ca6d;
  font-weight: bold;
}

#diag-header button {
  background: none;
  border: none;
  color: #ff4466;
  cursor: pointer;
  font-size: 1em;
  padding: 0 4px;
}

#diag-body {
  padding: 10px 12px;
  overflow-y: auto;
  flex: 1;
}

.diag-section {
  margin-bottom: 12px;
}

.diag-section-title {
  color: #00bfff;
  margin-bottom: 4px;
  font-size: 0.85em;
  letter-spacing: 0.05em;
}

.diag-line {
  padding: 1px 0;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.diag-ok {
  color: #03ca6d;
}
.diag-warn {
  color: #ffcc00;
}
.diag-err {
  color: #ff4466;
}
.diag-info {
  color: #aaaacc;
}

.diag-dot {
  margin-top: 2px;
  flex-shrink: 0;
}

#diag-footer {
  padding: 6px 12px;
  border-top: 1px solid #00ff8822;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

#diag-footer button {
  background: #1a1a2e;
  border: 1px solid #00ff8855;
  color: #03ca6d;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  font-size: 0.8em;
  font-family: monospace;
}

#diag-footer button:hover {
  background: #00ff8822;
}

/* Responsive mobile */
@media (max-width: 600px) {
  #diag-panel {
    width: calc(100vw - 16px);
  }
}

@media print {
  #diag-btn,
  #diag-panel {
    display: none !important;
  }
}
