:root {
  --bg: #0c111b;
  --panel: #141b2b;
  --panel-2: #1b2538;
  --text: #e7edf8;
  --muted: #9fb0cc;
  --line: #2a3854;
  --accent: #30d7a0;
  --accent-2: #4d8cff;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at 10% 0%, #1a2440 0%, var(--bg) 40%);
  color: var(--text);
}

.container {
  width: min(1200px, 92%);
  margin: 2rem auto 4rem;
}

.header h1 {
  margin: 0;
  font-size: 2rem;
}

.header p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.cards {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
}

.card {
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.card h2 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.card p {
  margin: 0.6rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.actions {
  margin-top: 1.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.actions h3 {
  margin: 0 0 0.7rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

input[type="number"] {
  background: #0f1625;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  min-width: 140px;
}

button {
  background: linear-gradient(135deg, var(--accent-2), #6aa3ff);
  border: none;
  color: white;
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  filter: brightness(1.08);
}

pre {
  margin-top: 0.8rem;
  background: #0f1625;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem;
  white-space: pre-wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.table-section {
  margin-top: 1.3rem;
}

.table-section h3 {
  margin-bottom: 0.5rem;
}

.table-wrapper {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.72rem 0.65rem;
  text-align: left;
  font-size: 0.92rem;
}

th {
  color: #c6d5ee;
  background: #10192a;
}

tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {
  .container {
    width: 94%;
  }

  .header h1 {
    font-size: 1.5rem;
  }
}

