body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #f4f7fb;
  color: #1d2939;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #16213e 100%);
  color: #fff;
  padding: 24px;
}

.sidebar a {
  color: #dbe7ff;
  text-decoration: none;
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.sidebar a:hover,
.sidebar a.active {
  background: rgba(255, 255, 255, 0.12);
}

.content {
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  margin-bottom: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
}

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

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #667085;
}

.btn,
button {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  background: #0f766e;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary {
  background: #334155;
}

.btn-danger {
  background: #b42318;
}

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

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d0d5dd;
  padding: 12px 14px;
  box-sizing: border-box;
  font: inherit;
}

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

.flash {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.flash-success {
  background: #ecfdf3;
  color: #027a48;
}

.flash-error {
  background: #fef3f2;
  color: #b42318;
}

.selected-row {
  background: #ecfeff;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #eff4ff;
  color: #3538cd;
}

.stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .app-shell,
  .stats,
  .filters,
  .form-grid,
  .form-grid.two {
    grid-template-columns: 1fr;
  }
}
