body {
  margin: 0;
  background:
    radial-gradient(circle at top left, #fecaca 0, transparent 24%),
    radial-gradient(circle at top right, #ffe4e6 0, transparent 20%),
    linear-gradient(180deg, #fff1f2 0%, #fff7f7 48%, #ffffff 100%);
  color: #1f1720;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

.page-header {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 20px;
}

.page-header h1 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 900;
  color: #7f1d1d;
  letter-spacing: 0.02em;
}

.page-header nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #f3c7c7;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #7f1d1d;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(127, 29, 29, 0.05);
  transition: 0.2s ease;
}

.page-header nav a:hover {
  background: #ffffff;
  border-color: #e7a2a2;
  color: #991b1b;
  transform: translateY(-1px);
}

.page-main {
  max-width: 1180px;
  margin: 18px auto 40px;
  padding: 0 20px;
  display: grid;
  gap: 18px;
}

.form-section {
  background: #ffffff;
  border: 1px solid #f3c7c7;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(127, 29, 29, 0.10);
}

.form-section-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 900;
  color: #7f1d1d;
}

.form-grid.two {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.form-grid label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
  color: #5f2424;
}

.form-grid input,
.form-grid select {
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  border: 1px solid #e7a2a2;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 14px;
  background: #ffffff;
  color: #1f1720;
  outline: none;
  transition: 0.2s ease;
}

.form-grid input:hover,
.form-grid select:hover {
  border-color: #dc8b8b;
}

.form-grid input:focus,
.form-grid select:focus {
  border-color: #b91c1c;
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.12);
}

.submit-area {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button {
  width: auto;
  min-width: 120px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, #991b1b, #b91c1c);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(185, 28, 28, 0.24);
}

.primary-button:hover {
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  transform: translateY(-1px);
}

.secondary-button {
  background: #f6e8e8;
  color: #7f1d1d;
}

.secondary-button:hover {
  background: #fee2e2;
  transform: translateY(-1px);
}

.table-wrapper {
  overflow: auto;
  max-height: 460px;
  border: 1px solid #f3c7c7;
  border-radius: 12px;
  background: #ffffff;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.data-table th {
  background: #fff1f2;
  color: #7f1d1d;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #f3c7c7;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #f3c7c7;
  color: #1f1720;
}

.data-table tr:hover td {
  background: #fffafa;
}

.data-table td,
.data-table th {
  white-space: nowrap;
}

.data-table td:last-child {
  display: flex;
  gap: 8px;
  align-items: center;
}

.data-table button {
  margin-right: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: #f6e8e8;
  color: #7f1d1d;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.data-table button[data-edit-vehicle-id] {
  background: linear-gradient(135deg, #991b1b, #b91c1c);
  color: #ffffff;
  min-width: 88px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(185, 28, 28, 0.18);
}

.data-table button[data-edit-vehicle-id]::before {
  content: "✎ ";
}

.data-table button[data-delete-vehicle-id] {
  background: #fee2e2;
  color: #991b1b;
  min-width: 88px;
  font-weight: 900;
}

.data-table button[data-delete-vehicle-id]::before {
  content: "× ";
}

.data-table button:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.message {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}

.message.success {
  color: #166534;
}

.message.error {
  color: #b91c1c;
}

@media (max-width: 900px) {
  .form-grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .page-header,
  .page-main {
    padding: 0 14px;
  }

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

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}