/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1a1a2e;
  background-color: #f0f2f5;
  padding: 2rem 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

/* ===== Typography ===== */
h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #16213e;
  margin-bottom: 1.25rem;
}

/* ===== Button Bar ===== */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
  background-color: #0f3460;
  border: 2px solid transparent;
  border-radius: 0.375rem;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  background-color: #1a4f8a;
}

.btn:focus-visible {
  outline: 3px solid #e94560;
  outline-offset: 2px;
}

.btn.active {
  background-color: #e94560;
  border-color: #e94560;
}

/* ===== Output Panel ===== */
.output-panel {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 1.25rem;
  min-height: 12rem;
  overflow-x: auto;
  font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #1e293b;
  white-space: pre-wrap;
  word-break: break-word;
}

#stream-output {
  padding: 0;
}

/* ===== Stream List ===== */
.stream-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stream-list li {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.stream-list li:last-child {
  border-bottom: none;
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
