/* Vehicle Rental - one stylesheet for the whole site */
/* Part 1: base, navbar, buttons, cards, home page and vehicle list.
   Part 2 (vehicle details page) and Part 3 (forms, tables, admin tabs,
   notifications) are added at the end of this file. */

/* Colours used:
   page background #F3F7F6, cards #FFFFFF, borders #DDE5E7
   teal (main colour) #0B6E6E, dark teal #08575A, light teal #E3F2F1
   orange (accent) #F59E0B, price brown #B45309, light orange #FEF3E2
   text #1F2933, grey text #55616B
   green #1E7B34 / #E7F5EA, red #B3261E / #FCEBEA */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #F3F7F6;
  color: #1F2933;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  color: #14262B;
}
h1 { font-size: 30px; letter-spacing: -0.3px; }
h2 { font-size: 21px; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 16px; }

a { color: #0B6E6E; }
a:hover { color: #08575A; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px;
}

.muted {
  color: #55616B;
  font-size: 14px;
}

/* ---------- navbar ---------- */
.navbar {
  background: #0B6E6E;
  border-bottom: 3px solid #F59E0B;
}
.navbar .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.logo {
  color: #fff;
  text-decoration: none;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.logo:hover { color: #fff; }

/* the round "wheel" in front of the site name */
.wheel {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 5px solid #F59E0B;
  border-radius: 50%;
  vertical-align: -2px;
  margin-right: 2px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 15px;
  transition: 0.15s;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.nav-links a.current {
  background: #fff;
  color: #0B6E6E;
  font-weight: 600;
}
.nav-links .hi {
  color: #cfe8e6;
  font-size: 14px;
  margin-right: 6px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: #0B6E6E;
  color: #fff;
  border: 1px solid #0B6E6E;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: 0.15s;
}
.btn:hover {
  background: #08575A;
  border-color: #08575A;
  color: #fff;
  box-shadow: 0 2px 6px rgba(8, 87, 90, 0.25);
}
.btn:disabled {
  background: #D5DCDF;
  border-color: #D5DCDF;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-big { padding: 12px 24px; font-size: 16px; }
.btn-small { padding: 4px 10px; font-size: 13px; }
.btn-full { width: 100%; padding: 11px; }

.btn-light {
  background: #fff;
  color: #0B6E6E;
  border-color: #BFD9D8;
}
.btn-light:hover {
  background: #E3F2F1;
  color: #08575A;
  border-color: #0B6E6E;
  box-shadow: none;
}
.btn-danger {
  background: #fff;
  color: #B3261E;
  border-color: #E8B4B0;
}
.btn-danger:hover {
  background: #FCEBEA;
  color: #B3261E;
  border-color: #B3261E;
  box-shadow: none;
}

/* ---------- cards and grid ---------- */
.card {
  background: #fff;
  border: 1px solid #DDE5E7;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 42, 42, 0.06), 0 2px 8px rgba(16, 42, 42, 0.06);
  padding: 20px;
  margin-bottom: 24px;
}
.card h2 {
  padding-bottom: 12px;
  border-bottom: 1px solid #DDE5E7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.vehicle-card {
  background: #fff;
  border: 1px solid #DDE5E7;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 42, 42, 0.06), 0 2px 8px rgba(16, 42, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.15s;
}
.vehicle-card:hover {
  border-color: #0B6E6E;
  box-shadow: 0 4px 16px rgba(16, 42, 42, 0.12);
  transform: translateY(-2px);
}
.vehicle-card .body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.vehicle-card h3 { margin: 0; }
.vehicle-card .bottom {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed #DDE5E7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* photo box: coloured background + drawing, the real photo on top if the file exists */
.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo .real-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo .art { width: 72%; }

/* background colour for each vehicle type */
.is-car { background: #DDF0EE; }
.is-bike { background: #FDEFD9; }
.is-scooter { background: #FBE4E2; }

.price {
  color: #B45309;
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}
.price small {
  color: #55616B;
  font-weight: 400;
  font-size: 13px;
}

/* ---------- tags (small rounded labels) ---------- */
.tag {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: #55616B;
  background: #EEF2F3;
}
.tag-type, .tag-booked { color: #0B6E6E; background: #E3F2F1; border-color: #BFDDDB; }
.tag-ok, .tag-paid { color: #1E7B34; background: #E7F5EA; border-color: #BCDDC3; }
.tag-bad, .tag-cancelled { color: #B3261E; background: #FCEBEA; border-color: #EDC1BE; }
.tag-ongoing, .tag-unpaid { color: #B45309; background: #FEF3E2; border-color: #F3D2A6; }
.tag-returned { color: #55616B; background: #EEF2F3; border-color: #D3DADD; }

/* ---------- messages ---------- */
.msg {
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid;
  border-left-width: 5px;
}
.msg-ok { background: #E7F5EA; border-color: #1E7B34; color: #1E7B34; }
.msg-bad { background: #FCEBEA; border-color: #B3261E; color: #B3261E; }
.msg-info { background: #FEF3E2; border-color: #B45309; color: #7A3906; }

/* ---------- home page ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #E3F2F1, #FFFFFF 60%, #FEF3E2);
  border: 1px solid #DDE5E7;
  border-radius: 16px;
  padding: 40px 32px;
  margin-bottom: 24px;
}
.hero h1 { font-size: 38px; margin-bottom: 12px; }
.hero p { max-width: 520px; }
.hero .btn { margin-top: 4px; }
.eyebrow {
  display: inline-block;
  background: #fff;
  border: 1px solid #DDE5E7;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #0B6E6E;
  margin-bottom: 12px;
}
.promise {
  font-weight: 600;
  color: #B45309;
  border-left: 4px solid #F59E0B;
  padding-left: 10px;
}
.hero-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-pic {
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(16, 42, 42, 0.06), 0 2px 8px rgba(16, 42, 42, 0.06);
}
.hero-pic-wide { grid-column: span 2; }
.hero-pic .art { width: 100%; max-width: 260px; }

.promises {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.promises li {
  background: #fff;
  border: 1px solid #DDE5E7;
  border-radius: 12px;
  padding: 14px 16px 14px 48px;
  position: relative;
  box-shadow: 0 1px 2px rgba(16, 42, 42, 0.06), 0 2px 8px rgba(16, 42, 42, 0.06);
}
.promises strong { display: block; }
.promises span { color: #55616B; font-size: 14px; }
.promises .tick {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: #E7F5EA;
  color: #1E7B34;
  font-weight: 700;
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}
.steps li { margin: 0; }
.step-1 { border-top: 4px solid #0B6E6E; }
.step-2 { border-top: 4px solid #F59E0B; }
.step-3 { border-top: 4px solid #D9534F; }
.steps .num {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  background: #E3F2F1;
  color: #0B6E6E;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ---------- filters (vehicles page) ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #DDE5E7;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 42, 42, 0.06), 0 2px 8px rgba(16, 42, 42, 0.06);
  padding: 16px 20px;
}
.filters .field { margin-bottom: 0; }
.filters .count {
  margin: 0 0 0 auto;
  background: #E3F2F1;
  color: #0B6E6E;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.filters select {
  width: auto;
  min-width: 170px;
}

/* ---------- phones (Part 1) ---------- */
@media (max-width: 760px) {
  h1 { font-size: 26px; }
  .container { padding: 20px 16px; }
  .hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .hero h1 { font-size: 30px; }
  .filters .count { margin-left: 0; }
  .filters select { width: 100%; }
  .filters .field { flex: 1 1 140px; }
}

/* ==================== Part 2: vehicle details page ==================== */

/* ---------- vehicle details page ---------- */
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.details .photo {
  border-radius: 12px;
  border: 1px solid #DDE5E7;
  box-shadow: 0 1px 2px rgba(16, 42, 42, 0.06), 0 2px 8px rgba(16, 42, 42, 0.06);
}
.details .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.big-price { font-size: 26px; margin-bottom: 12px; }
.date-list { margin: 0; padding-left: 20px; }
.date-list li { margin-bottom: 4px; }
.summary {
  background: #FEF3E2;
  border: 1px solid #F3D2A6;
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0 16px;
}
.total {
  font-size: 28px;
  color: #B45309;
  font-weight: 700;
  margin: 4px 0;
}
.back {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.back:hover { text-decoration: underline; }

/* ---------- phones (Part 2) ---------- */
@media (max-width: 760px) {
  .details { grid-template-columns: 1fr; }
}

/* ========== Part 3: forms, tables, admin tabs and notifications ========== */

/* ---------- forms ---------- */
.form-card {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  border-top: 4px solid #0B6E6E;
  padding: 28px;
}
.form-card .switch {
  margin: 16px 0 0;
  text-align: center;
}
.field { margin-bottom: 16px; }
label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  color: #33424B;
}
input, select {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #CBD5D9;
  border-radius: 8px;
  background: #FBFCFC;
  color: #1F2933;
  transition: 0.15s;
}
input:hover, select:hover { border-color: #9FB3B8; }
input:focus, select:focus {
  outline: none;
  border-color: #0B6E6E;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 110, 110, 0.15);
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.form-row .field { flex: 1 1 180px; }

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid #DDE5E7;
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #DDE5E7;
  vertical-align: top;
}
th {
  background: #F1F6F6;
  color: #3D4B53;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
tr:nth-child(even) td { background: #FAFCFC; }
tr:hover td { background: #E3F2F1; }
tr:last-child td { border-bottom: none; }
td.actions { white-space: nowrap; }
td.actions .btn { margin: 2px 4px 2px 0; }
.hint {
  display: block;
  color: #55616B;
  font-size: 13px;
}

/* ---------- admin tabs ---------- */
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #DDE5E7;
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 1px 2px rgba(16, 42, 42, 0.06), 0 2px 8px rgba(16, 42, 42, 0.06);
}
.tabs .btn {
  border-radius: 999px;
  background: transparent;
  border-color: transparent;
  color: #55616B;
  box-shadow: none;
}
.tabs .btn:hover {
  background: #E3F2F1;
  color: #0B6E6E;
}
/* the tab that is open */
.tabs .btn.active {
  background: #0B6E6E;
  border-color: #0B6E6E;
  color: #fff;
}
.tabs .btn.active:hover {
  background: #08575A;
  border-color: #08575A;
  box-shadow: 0 2px 6px rgba(8, 87, 90, 0.25);
}

/* ---------- notifications ---------- */
.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.note-list li {
  border: 1px solid #DDE5E7;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: #FBFCFC;
}
.note-list li:last-child { margin-bottom: 0; }
.note-list li.unread {
  font-weight: 700;
  background: #E3F2F1;
  border-color: #BFDDDB;
  border-left: 4px solid #0B6E6E;
}

/* ---------- phones (Part 3) ---------- */
@media (max-width: 760px) {
  .form-card { padding: 20px; }
}
