/* ===== Dev dashboard ===== */

/* Full-page wrapper to override dark body background */
.page-dev {
  min-height: 100vh;
  padding: 2rem 0;
  background: #f3f4f6;
  color: #1f2937;
}

/* Layout */
.app-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
  font-family: system-ui, -apple-system, sans-serif;
  background: #fff;
  color: #1f2937;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  line-height: 1.6;
}

/* Headings */
.app-title {
  color: #2563eb;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.section-title {
  color: #2563eb;
  font-size: 1.25rem;
}

/* Sections */
.app-section {
  margin-bottom: 1.5rem;
}

.app-divider {
  margin: 1.5rem 0;
  border-color: #e5e7eb;
}

/* Node info */
.node-info-list {
  list-style: disc inside;
  padding-left: 1rem;
}

.info-value {
  font-weight: bold;
  word-break: break-all;
}

.status-online {
  font-weight: bold;
  color: #16a34a;
}

.status-pending {
  font-weight: bold;
  color: #d97706;
}

/* Connect form */
.connect-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.connect-input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #1f2937;
  background: #fff;
}

.connect-button {
  padding: 0.5rem 1rem;
  background: #22c55e;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

.error-text {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Address list */
.empty-text {
  color: #9ca3af;
  font-style: italic;
}

.address-list {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.address-item {
  font-size: 0.75rem;
  padding: 0.25rem 0;
  word-break: break-all;
  font-family: monospace;
  color: #374151;
}

/* Peer list */
.peer-list {
  list-style: disc inside;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.peer-item {
  font-size: 0.875rem;
  word-break: break-all;
  font-family: monospace;
  padding: 0.125rem 0;
}

/* Chat */
.chat-messages {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0.75rem;
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  background: #f9fafb;
}

.chat-message {
  font-size: 0.875rem;
  padding: 0.25rem 0;
  word-break: break-word;
}

.chat-sender {
  font-weight: bold;
  color: #2563eb;
}

.chat-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.chat-input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #1f2937;
  background: #fff;
}

.chat-send-button {
  padding: 0.5rem 1rem;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

/* Audio */
.audio-controls {
  margin-top: 0.5rem;
}

.audio-button {
  padding: 0.5rem 1rem;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

.audio-start {
  background: #22c55e;
}

.audio-stop {
  background: #ef4444;
}

.audio-status {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.audio-indicator {
  color: #9ca3af;
}

.audio-indicator-active {
  color: #16a34a;
  font-weight: bold;
}
