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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  color: #c9d1d9;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

header {
  text-align: center;
  padding: 60px 0 40px;
  border-bottom: 1px solid #30363d;
  margin-bottom: 40px;
}

h1 {
  font-size: 2.5rem;
  color: #58a6ff;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 1.1rem;
  color: #8b949e;
}

.card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}

.card h2 {
  font-size: 1.3rem;
  color: #e6edf3;
  margin-bottom: 12px;
}

.card p {
  margin-bottom: 8px;
  color: #8b949e;
}

.status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status.success {
  background: #1b3826;
  color: #3fb950;
  border: 1px solid #2ea043;
}

.api-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.api-buttons button {
  padding: 8px 16px;
  background: #21262d;
  color: #58a6ff;
  border: 1px solid #30363d;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.api-buttons button:hover {
  background: #30363d;
  border-color: #58a6ff;
}

pre {
  background: #0d1117;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin-top: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #e6edf3;
  border: 1px solid #30363d;
}

#api-result {
  margin-top: 16px;
  min-height: 40px;
}

#api-result.loading {
  color: #d29922;
}

.hidden {
  display: none;
}

.card pre {
  white-space: pre-wrap;
  word-break: break-all;
}

footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid #30363d;
  margin-top: 40px;
  color: #8b949e;
}

footer strong {
  color: #58a6ff;
}

@media (max-width: 600px) {
  header {
    padding: 40px 0 30px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .api-buttons {
    flex-direction: column;
  }

  .api-buttons button {
    width: 100%;
  }
}
