:root {
  --accent: #FFD700;
  --background: #0A0A0A;
  --surface: #141414;
  --card: #1a1a1a;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

#container {
  position: absolute;
  background: var(--background);
  border-radius: 16px;
  height: 700px;
  width: 1000px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.title {
  color: var(--accent);
  font-size: 32px;
  font-weight: bold;
  padding: 30px;
  margin: 0;
  background: #141414;
}

.subtitle {
  color: grey;
  font-size: 16px;
  font-weight: bold;
  padding: 30px;
  margin-top: -30px;
  margin: 0;
  background: #141414;
}

.close {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #ff3333;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#header {
  position: absolute;
  left: 0;
  top: 0;
  width: 300px;
  height: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

#header ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#header li {
  padding: 15px 30px;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

#header li.selected {
  background: var(--accent);
  color: black;
}

#menu {
  margin-left: 300px;
  padding: 20px;
}

.vehicle-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 10px;
}

.vehicle-listing {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  color: white;
  margin-bottom: 15px;
  transition: all 0.2s ease;
}

.vehicle-listing:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.info-row span {
  color: #808080;
  font-size: 14px;
}

.info-row strong {
  color: white;
  font-size: 16px;
}

.progress-container {
  margin: 15px 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 14px;
  color: #808080;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: #262626;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.progress-fill[data-value="high"] { background: #22c55e; }
.progress-fill[data-value="medium"] { background: #eab308; }
.progress-fill[data-value="low"] { background: #ef4444; }

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.vehicle-action {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.vehicle-action.retrieve {
  background: var(--accent);
  color: black;
}

.vehicle-action.transfer {
  background: #2563eb;
  color: white;
}

.impounded_content {
  display: none;
}

.stats-container {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #fff;
}

.stats-container h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--accent);
}

.stat-item {
    margin-bottom: 12px;
}

.stat-item span {
    display: block;
    font-size: 14px;
    color: #808080;
    margin-bottom: 4px;
}

.stat-item strong {
    font-size: 18px;
}

.damaged-vehicle .vehicle-info {
    background: rgba(255, 51, 51, 0.1);
    padding: 10px;
    border-radius: 6px;
    margin-top: 5px;
}

.damaged-vehicle small {
    display: block;
    color: #808080;
    font-size: 12px;
    margin-top: 2px;
}

.damage-bar {
    height: 4px;
    background: rgba(255, 51, 51, 0.2);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.damage-fill {
    height: 100%;
    background: #ff3333;
    transition: width 0.3s ease;
}

.vehicle-name-input:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px var(--accent);
}

.save-name-btn:hover {
  color: var(--accent) !important;
}

.input-group {
  margin-bottom: 15px;
}

.input-group:hover .vehicle-name-input {
  border-color: rgba(255,255,255,0.2);
}

.input-group:hover .save-name-btn {
  color: rgba(255,255,255,0.8);
}