:root {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --agent-color: #38bdf8;
  --user-color: #4ade80;
  --border-color: #334155;
  --danger-color: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.header {
  text-align: center;
}

.header h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* CLI Card */
.cli-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.cli-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cli-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.cli-input {
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #38bdf8;
  padding: 12px 14px;
  font-size: 15px;
  font-family: monospace;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease;
}

.cli-input:focus {
  border-color: var(--primary-color);
}

.cli-preview {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.normalized-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-weight: 700;
}

/* Controls Card */
.controls-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.play-button {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.play-button.active {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-badge.active .status-dot {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.status-badge.active {
  color: #22c55e;
}

/* Transcript Section */
.transcript-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.transcript-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.clear-btn:hover {
  color: var(--text-main);
}

/* Scroll Box */
.transcript-box {
  height: 420px;
  overflow-y: auto;
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.transcript-box::-webkit-scrollbar {
  width: 6px;
}
.transcript-box::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.placeholder-text {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  margin: auto;
}

.transcript-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  animation: fadeIn 0.2s ease-in-out;
}

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

.transcript-entry.agent {
  background: rgba(56, 189, 248, 0.1);
  border-left: 3px solid var(--agent-color);
}

.transcript-entry.user {
  background: rgba(74, 222, 128, 0.1);
  border-left: 3px solid var(--user-color);
}

.entry-role {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.agent .entry-role {
  color: var(--agent-color);
}

.user .entry-role {
  color: var(--user-color);
}

.entry-text {
  color: var(--text-main);
}
