:root {
  --brand-color: #6c63ff;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.container {
  text-align: center;
  max-width: 460px;
  padding: 40px;
}

h1 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 0.95rem;
  color: #b0b0b0;
  margin-bottom: 24px;
}

.voice-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.voice-row label {
  font-size: 0.9rem;
  color: #aaa;
}

#voiceSelect {
  padding: 6px 12px;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid #444;
  background: #2a2a3e;
  color: #e0e0e0;
  cursor: pointer;
}

#voiceSelect:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#status {
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
  background: #2a2a3e;
  color: #ddd;
}

#status.connected { background: #1a3a1a; color: #6ee0a0; }
#status.connecting { background: #3a3a1a; color: #ffb84a; }
#status.error { background: #3a1a1a; color: #ff6b6b; }

#billing {
  font-size: 0.8rem;
  margin-bottom: 20px;
  height: 20px;
  color: #888;
}
#billing.active { color: #ffb84a; }

#connectBtn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: var(--brand-color);
  color: #fff;
  transition: background 0.2s, opacity 0.2s;
}

#connectBtn:hover { filter: brightness(1.1); }

#connectBtn:disabled {
  background: #3a3a4e;
  color: #aaa;
  cursor: not-allowed;
}

#connectBtn.disconnect {
  background: #d32f2f;
  font-size: 1.05rem;
  padding: 16px 24px;
}
#connectBtn.disconnect:hover { background: #b71c1c; }

#transcript {
  margin-top: 20px;
  text-align: left;
  max-height: 220px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 12px;
  background: #22223a;
  border-radius: 8px;
  display: none;
}
#transcript.visible { display: block; }

.msg-user { color: #79b4ff; }
.msg-agent { color: #8ed99c; }

.info {
  margin-top: 24px;
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.5;
}

.customer-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.customer-list a {
  display: block;
  padding: 12px 16px;
  background: #2a2a3e;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s;
}

.customer-list a:hover {
  background: #36364e;
}

.customer-list .lang-badge {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 8px;
  border-radius: 10px;
  background: #444;
  font-size: 0.7rem;
  color: #ddd;
  text-transform: uppercase;
}
