* {
  box-sizing: border-box;
}

:root {
  --bg: #0b1220;
  --bg-soft: #111a2e;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.14);
  --text: #f4f7fb;
  --muted: #b7c2d6;
  --accent: #4da3ff;
  --accent-2: #7c5cff;
  --success: #1fc77e;
  --warning: #ffb020;
  --danger: #ff5d73;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --radius: 18px;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #09101d 0%, #11192d 100%);
}

body {
  position: relative;
}

.bg-video,
.bg-image {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(77, 163, 255, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(124, 92, 255, 0.18), transparent 32%),
    linear-gradient(rgba(8, 13, 23, 0.70), rgba(8, 13, 23, 0.82));
  z-index: -2;
}

.overlay {
  min-height: 100vh;
  padding: 28px 18px 36px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.brand-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card h2,
.card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.card h2 {
  font-size: 1.4rem;
}

.card h3 {
  font-size: 1.05rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.vehicle-item,
.list-item {
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 12px;
}

.vehicle-item:last-child,
.list-item:last-child {
  margin-bottom: 0;
}

.vehicle-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.vehicle-meta,
.meta-line,
.small-text {
  color: var(--muted);
  font-size: 0.95rem;
}

hr {
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 14px 0;
}

form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: #c4cde0;
  opacity: 0.75;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(77, 163, 255, 0.8);
  background: rgba(255,255,255,0.09);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
}

button,
.btn,
a.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 18px rgba(77, 163, 255, 0.22);
}

button:hover,
.btn:hover,
a.btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

button.secondary,
.btn.secondary,
a.btn.secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: none;
}

button.success {
  background: linear-gradient(135deg, #18b875, #17a86b);
}

button.warning {
  background: linear-gradient(135deg, #ffb020, #ff8a00);
}

button.danger {
  background: linear-gradient(135deg, #ff5d73, #ff3d57);
}

.actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 10px;
}

pre {
  background: rgba(0,0,0,0.24);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e9eef8;
  padding: 14px;
  border-radius: 14px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.45;
}

.footer-note {
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  margin-top: 10px;
  padding-bottom: 10px;
}

.empty-state {
  color: var(--muted);
  padding: 8px 0;
}

@media (min-width: 700px) {
  .overlay {
    padding: 34px 24px 44px;
  }

  .brand-title {
    font-size: 2.35rem;
  }

  .form-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .section-grid.two-col {
    grid-template-columns: 1.5fr 1fr;
  }

  .section-grid.three-col {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .card {
    padding: 24px 22px;
  }
}

@media (max-width: 699px) {
  .brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions .btn,
  .top-actions button {
    width: 100%;
  }

  .actions button,
  .button-row button,
  .button-row .btn {
    width: 100%;
  }

  button,
  .btn,
  a.btn {
    min-height: 44px;
  }
}