/* Basic, clean styling for the static xAPI Integrator */
:root {
  --bg: #0f172a;
  --panel: #111827;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --secondary: #10b981;
  --danger: #ef4444;
  --border: #334155;
  --codebg: #0b1220;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(100vw 100vh at 100% -10%, #050914 0%, #0f172a 50%);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  line-height: 1.5;
}

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

header.container {
  padding-top: 32px;
  padding-bottom: 8px;
}

h1 {
  margin: 0 0 4px 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin: 18px 0;
  box-shadow: 0 10px 30px rgba(12, 17, 36, 0.6), inset 0 1px 0 rgba(255,255,255,0.04);
}

.card h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.info {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  margin-bottom: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

input, textarea, select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 120px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.buttons {
  gap: 10px;
}

button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text);
  background: rgba(255,255,255,0.05);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.02s ease;
}

button:hover {
  background: rgba(255,255,255,0.08);
}

button:active {
  transform: translateY(1px);
}

button.primary {
  background: linear-gradient(180deg, #1e40af, #1d4ed8);
  border-color: #1e3a8a;
}

button.primary:hover {
  background: linear-gradient(180deg, #1e40af, #1e40af);
}

button.secondary {
  background: linear-gradient(180deg, #0f766e, #0ea5a3);
  border-color: #0b766e;
}

button.danger {
  background: linear-gradient(180deg, #b91c1c, #dc2626);
  border-color: #991b1b;
}

button.ghost {
  background: transparent;
  border-color: var(--border);
}

.status, .code {
  background: var(--codebg);
  color: #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  overflow: auto;
  max-height: 320px;
  white-space: pre-wrap;
}

.code {
  background: #0a0f1d;
}

footer.foot {
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}
