body {
  font-family: 'Anonymous Pro', monospace, sans-serif;
  background: #121212;
  color: #e0e0e0;
  padding: 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

h1 {
  margin-bottom: 1rem;
}

#tabs {
  margin-bottom: 10px;
}

#tabs, #pagination {
  display: flex;
  gap: 0.5rem;
}

.tab {
  padding: 6px 12px;
  border: 1px solid #444;
  background: #222;
  cursor: pointer;
  font-weight: 600;
  border-radius: 6px;
  font-family: 'Anonymous Pro', monospace;
  color: #ccc;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.tab.active {
  background: #0078d4;
  color: white;
  border-color: #005a9e;
}

.tab:hover:not(.active) {
  background: #333;
  color: #fff;
}

#search {
  margin-bottom: 1rem;
  padding: 0.5rem;
  width: 300px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #1e1e1e;
  color: #eee;
  font-size: 1rem;
}

#item-list {
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

.car, .skin {
  background: #222;
  border-radius: 8px;
  padding: 10px;
  margin: 10px auto;
  width: 300px;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 0 8px #0078d4aa;
}

.car img, .skin img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.car a, .skin a {
  display: inline-block;
  margin-top: 0.5rem;
  background: #0078d4;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.car a:hover, .skin a:hover {
  background: #005a9e;
}

.car p, .skin p {
  margin: 2px 0;
  line-height: 1.2;
}

#pagination {
  margin-top: 1rem;
  flex-wrap: wrap;
}

.page-btn {
  cursor: pointer;
  background: #333;
  color: #eee;
  padding: 6px 12px;
  border-radius: 4px;
  user-select: none;
  transition: background 0.3s ease;
}

.page-btn.active {
  background: #0078d4;
  color: #fff;
  box-shadow: 0 0 6px #0078d4cc;
}

.page-btn:hover {
  background: #005a9e;
  color: #fff;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(18, 18, 18, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
  transition: opacity 0.3s ease;
}

.modal.hidden {
  display: none;
  opacity: 0;
}

.modal-content {
  background: #1e1e1e;
  padding: 20px 25px;
  border-radius: 12px;
  min-width: 320px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 0 15px #0078d4cc;
  color: #e0e0e0;
  font-family: 'Anonymous Pro', monospace;
  user-select: none;
}

.modal-content label {
  font-size: 14px;
  color: #ccc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-content input[type="text"],
.modal-content input[type="number"],
.modal-content select {
  background: #121212;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  color: #eee;
  font-family: 'Anonymous Pro', monospace;
  outline-offset: 2px;
  transition: border-color 0.2s ease;
}

.modal-content input[type="text"]:focus,
.modal-content input[type="number"]:focus,
.modal-content select:focus {
  border-color: #0078d4;
  outline: none;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.modal-actions button {
  cursor: pointer;
  background: #0078d4;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 700;
  font-family: 'Anonymous Pro', monospace;
  color: white;
  transition: background 0.3s ease;
  user-select: none;
}

.modal-actions button:hover {
  background: #005a9e;
}

#add-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  font-size: 16px;
  z-index: 10000;
  background: #0078d4;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Anonymous Pro', monospace;
  transition: background 0.3s ease;
}

#add-btn:hover {
  background: #005a9e;
}

.edit-btn {
  background: #0078d4;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-family: 'Anonymous Pro', monospace;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.3s ease;
}

.edit-btn:hover {
  background: #005a9e;
}

#pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  margin-top: 20px;
}

#pagination button {
  padding: 6px 12px;
  border: none;
  background: #0078d4;
  color: white;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  font-family: 'Anonymous Pro', monospace;
  transition: background 0.3s ease;
}

#pagination button:hover:not(:disabled) {
  background: #005a9e;
}

#pagination button:disabled {
  opacity: 0.5;
  cursor: default;
}

#pagination button.active {
  background: #003f6b;
  cursor: default;
}
