* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: #0f172a;
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  max-width: 720px;
  width: 100%;
}

header {
  text-align: center;
  margin-bottom: 24px;
}

header h1 {
  font-size: 2rem;
  color: #38bdf8;
  margin-bottom: 8px;
}

.subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
}

.card {
  background: #1e293b;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid #334155;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.query-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #cbd5e1;
}

.input-row {
  display: flex;
  gap: 12px;
}

input[type="text"] {
  flex: 1;
  padding: 12px 16px;
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 8px;
  color: #f8fafc;
  font-size: 1rem;
}

input[type="text"]:focus {
  outline: none;
  border-color: #38bdf8;
}

button {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #0369a1;
}

button:disabled {
  background: #475569;
  cursor: not-allowed;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.stat-item {
  background: #0f172a;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  display: flex;
  justify-content: space-between;
}

.stat-label {
  color: #94a3b8;
}

.stat-val {
  font-weight: 600;
  color: #38bdf8;
}

.result-box h2, .stock-stats h2 {
  font-size: 1.25rem;
  color: #38bdf8;
  margin-bottom: 16px;
}

.result-content {
  background: #0f172a;
  border-radius: 8px;
  padding: 16px;
  line-height: 1.6;
  color: #e2e8f0;
  min-height: 120px;
  white-space: pre-wrap;
}

.loader {
  color: #38bdf8;
  font-style: italic;
  margin-bottom: 12px;
}

.hidden {
  display: none;
}

footer {
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 20px;
}
