body {
  font-family: Arial, sans-serif;
  background: #f6f7fb;
  margin: 0;
  padding: 24px;
  color: #1f2937;
}

* {
  box-sizing: border-box;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

h1 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.1;
  color: #111827;
}

.page-description {
  margin: 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
}

.layout {
  display: grid;
  gap: 20px;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

.form-card,
.table-card {
  width: 100%;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.toolbar h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #111827;
}

.section-heading p,
.section-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}

form,
.form-grid {
  display: grid;
  gap: 16px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

input,
button {
  font-size: 14px;
  border-radius: 12px;
}

input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: #9ca3af;
}

input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}

button {
  cursor: pointer;
  border: none;
  padding: 12px 16px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

button:hover {
  opacity: 0.96;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button.secondary {
  background: #6b7280;
  box-shadow: 0 8px 18px rgba(107, 114, 128, 0.18);
}

button.danger {
  background: #dc2626;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.18);
}

button.success {
  background: #059669;
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.18);
}

.toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.message,
#message {
  min-height: 20px;
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  min-width: 760px;
}

thead {
  background: #f9fafb;
}

th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  vertical-align: middle;
}

th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

tbody tr:hover {
  background: #f8fafc;
}

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

td button {
  padding: 10px 12px;
  font-size: 13px;
  box-shadow: none;
}

@media (max-width: 900px) {
  body {
    padding: 16px;
  }

  .card {
    padding: 18px;
  }

  h1 {
    font-size: 28px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions button,
  .toolbar button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 24px;
  }

  .page-description,
  .section-heading p,
  .section-subtitle,
  th,
  td,
  input,
  button {
    font-size: 13px;
  }

  th,
  td {
    padding: 12px 10px;
  }
}