:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --border: #dbe3f0;
  --danger: #dc2626;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: white;
  padding: 24px 20px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.main-content {
  padding: 24px 20px 60px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.summary-card {
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

input,
select,
button {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 0.95rem;
}

input:focus,
select:focus {
  outline: 2px solid #93c5fd;
  border-color: #3b82f6;
}

button {
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

button.secondary {
  background: #e2e8f0;
  color: #0f172a;
}

button.danger {
  background: var(--danger);
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.92rem;
}

th,
td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: #eef4ff;
}

small {
  color: var(--muted);
}

.empty-state {
  color: var(--muted);
  padding: 12px 0;
}

@media (max-width: 700px) {
  .main-content {
    padding: 16px 12px 40px;
  }
}
