:root{
  --black:#0b0f14;
  --red:#d40000;
  --bg:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --card:#ffffff;
  --border:#e5e7eb;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: "Google Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background:var(--bg);
  color:var(--text);
}

.topbar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 16px;
  background:var(--black);
  border-bottom:3px solid var(--red);
}

.topbar__left{display:flex; align-items:center; gap:14px;}
.logo{height:50px; width:auto;}

.nav{display:flex; gap:10px; flex-wrap:wrap;}
.nav__link{
  color:#e5e7eb; text-decoration:none;
  padding:8px 10px; border-radius:10px;
}
.nav__link:hover{background:rgba(255,255,255,.06)}
.nav__link.active{background:rgba(212,0,0,.20); color:#fff}

.topbar__right{display:flex; align-items:center; gap:10px;}
.user-badge{color:#fff; font-size:14px; opacity:.9}

.container{max-width:1100px; margin:18px auto; padding:0 16px;}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card__head{padding:16px 16px 0 16px;}
.card__body{padding:16px;}

.muted{color:var(--muted); margin-top:6px}

.btn{
  border:1px solid transparent;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
}
.btn-primary{background:var(--red); color:#fff;}
.btn-primary:hover{filter:brightness(.95)}
.btn-outline{
  background:transparent;
  border-color:rgba(255,255,255,.25);
  color:#fff;
}
.btn-outline:hover{background:rgba(255,255,255,.06)}
.w-full{width:100%}

.footer{
  margin-top:30px;
  padding:18px 16px;
  text-align:center;
  color:var(--muted);
  border-top:1px solid var(--border);
}

.placeholder{
  padding:18px;
  border:1px dashed var(--border);
  border-radius:14px;
  color:var(--muted);
  background:#fafafa;
}

/* Modal */
.modal{position:fixed; inset:0; display:none;}
.modal.show{display:block;}
.modal__backdrop{position:absolute; inset:0; background:rgba(0,0,0,.55);}
.modal__panel{
  position:relative;
  width:min(420px, 92vw);
  margin:10vh auto;
  background:#fff;
  border-radius:16px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.modal__header{
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 16px;
  background:var(--black);
  color:#fff;
  border-bottom:3px solid var(--red);
}
.icon-btn{
  border:0; background:transparent; color:#fff; cursor:pointer;
  font-size:18px;
}
.form{padding:16px; display:grid; gap:10px;}
.label{font-size:14px; color:var(--muted)}
.input{
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  outline:none;
}
.input:focus{border-color:var(--red); box-shadow:0 0 0 3px rgba(212,0,0,.12)}
.checkbox{display:flex; align-items:center; gap:8px; color:var(--muted); font-size:14px}
.links-row{display:flex; justify-content:space-between; font-size:14px}
.links-row a{color:var(--red); text-decoration:none}
.links-row a:hover{text-decoration:underline}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}
@media (max-width: 980px){ .grid{grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px){ .grid{grid-template-columns: 1fr;} }

.car-card{
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  box-shadow: var(--shadow);
}
.car-card.is-disabled{opacity:.75;}
.car-card__img{
  position:relative;
  height:160px;
  background:#f3f4f6;
}
.car-card__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.car-badge{
  position:absolute;
  left:10px; bottom:10px;
  color:#fff;
  padding:6px 10px;
  border-radius:999px;
  font-weight:700;
  font-size:12px;
  box-shadow:0 8px 20px rgba(0,0,0,.15);
}
.car-card__body{padding:12px 12px 14px;}
.car-title{font-weight:800; font-size:16px;}


.table{
  width:100%;
  border-collapse:collapse;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
}
.table th, .table td{
  padding:12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  vertical-align:top;
}
.table thead th{
  background:#f9fafb;
  font-size:13px;
  color:#111;
}
.status{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  border:1px solid var(--border);
  background:#fff;
}
.status-pending{color:#b45309; border-color:#f59e0b33; background:#fffbeb;}
.status-approved{color:#047857; border-color:#10b98133; background:#ecfdf5;}
.status-rejected{color:#b91c1c; border-color:#ef444433; background:#fef2f2;}
.status-cancelled{color:#374151; border-color:#6b728033; background:#f3f4f6;}
.status-completed{color:#1f2937; border-color:#11182733; background:#eef2ff;}

.detail-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 720px){ .detail-grid{grid-template-columns:1fr;} }

.detail-item{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  background:#fff;
}
