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

:root {
  --bg: #0d0d12;
  --surface: #16161e;
  --border: #2a2a3a;
  --text: #e0e0e8;
  --text-dim: #8888a0;
  --accent: #6c6cf0;
  --green: #3adb7a;
  --yellow: #f0c040;
  --red: #e05050;
  --radius: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px;
}

header {
  margin-bottom: 28px;
}

header h1 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.card h2 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.connected { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-dot.connecting { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.status-dot.disconnected { background: var(--red); box-shadow: 0 0 8px var(--red); }

.recipient-row {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.label { color: var(--text-dim); margin-right: 6px; }

.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.85; }

#qr-card { text-align: center; }

.hint {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

#qr-image {
  width: 220px;
  height: 220px;
  border-radius: var(--radius);
  image-rendering: pixelated;
}

.endpoint-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.endpoint code {
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--accent);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.provider-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  width: 36px;
  text-align: center;
}

.provider-oci { background: #c7462e20; color: #c7462e; }
.provider-gcp { background: #4285f420; color: #4285f4; }
.provider-aws { background: #ff990020; color: #ff9900; }

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th {
  text-align: left;
  padding: 8px 10px;
  color: var(--text-dim);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.loading {
  text-align: center;
  color: var(--text-dim);
  padding: 20px;
}

.status-sent { color: var(--green); }
.status-failed { color: var(--red); }
