/* ===== Dark mode (simple global theme) ===== */

html, body {
  background: #0f1115;
  color: #e8eaf0;
  margin: 0;
  padding: 0;
}

a {
  color: #8ab4ff;
}
a:hover {
  color: #b6d0ff;
}

.muted {
  color: #9aa4b2;
}

/* ===== Top bar ===== */

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 18px 0;
  border-bottom: 1px solid #232836;
  margin-bottom: 18px;
}

.title{
  margin:0;
  font-size: 32px;
  font-weight: 700;
}

.topbar-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.btn{
  display:inline-block;
  padding: 10px 12px;
  border-radius: 10px;
  background: #1b2232;
  border: 1px solid #2a3550;
  text-decoration:none;
  color:#e8eaf0;
}

.btn:hover{
  background:#222c41;
}

.pill{
  padding: 6px 10px;
  border-radius: 999px;
  background:#13221a;
  border:1px solid #1f3a2b;
  color:#b5f5c8;
  font-size: 12px;
}

/* ===== Light tables on dark background ===== */

.table{
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  color: #111827;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.table thead th{
  background: #f3f4f6;
  color: #111827;
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.table tbody td{
  color: #111827;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.table tbody tr{
  background: #ffffff;
}

.table tbody tr:nth-child(even){
  background: #f9fafb;
}

/* ===== Delete button ===== */

.danger{
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #6b1d1d;
  background: #2a1313;
  color: #ffd6d6;
  cursor: pointer;
}

.danger:hover{
  background: #3a1717;
}

/* ===== Maintenance item text (multi-line support) ===== */

.maintenance-item{
  line-height: 1.4;
  white-space: normal;
}

/* ===== Collapsible car sections ===== */

.car-block{
  border-top: 1px solid #232836;
  padding-top: 14px;
  margin-top: 18px;
}

.car-summary{
  list-style: none;
  cursor: pointer;
  font-size: 28px;
  font-weight: 800;
  color: #e8eaf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

/* Remove default triangle */
.car-summary::-webkit-details-marker{
  display:none;
}

/* Custom arrow */
.car-summary::before{
  content: "▸";
  width: 18px;
  margin-right: 10px;
  display: inline-block;
  text-align: center;
  color: #8ab4ff;
}

details[open] > .car-summary::before{
  content: "▾";
}

.car-count{
  font-size: 14px;
  font-weight: 600;
  color: #9aa4b2;
}

/* Hover + focus polish */
.car-summary:hover{
  color: #ffffff;
}

.car-summary:focus{
  outline: none;
}