body.darkmode .nav-btn[data-page="settings"] .nav-icon svg {
  stroke: #fff !important;
  color: #fff !important;
  fill: none !important;
}
body.darkmode .tagline {
  color: #fff !important;
}
body.darkmode .driver-name,
body.darkmode .driver-experience,
body.darkmode .time-section h2 {
  color: #fff !important;
}
body.darkmode #book-main {
  background: transparent !important;
}

:root {
  --green: #4ca44e;
  --blue: #b7e3d5;
  --blue-deep: #3a6fa0;
  --orange: #ec6b28;
  --black: #000;
  --radius: 18px;
  --shadow: 0 2px 8px rgba(0,0,0,0.04);
  --white: #fff;
}

body.darkmode {
  --background: #0e130f;
  --surface: #23272b;
  --surface-alt: #23272b;
  --text: #fff;
  --text-muted: #b7e3d5;
  --highlight: var(--green);
  --shadow: 0 2px 8px rgba(0,0,0,0.5);
  background: var(--background) !important;
  color: var(--text) !important;
}

body.darkmode .main-content,
body.darkmode .driver-info-card,
body.darkmode .time-block,
body.darkmode .time-block.full,
body.darkmode .bottom-nav,
body.darkmode .tab-btn,
body.darkmode .order-page,
body.darkmode .profile-circle,
body.darkmode .profile-plus {
  background: none !important;
  color: var(--text) !important;
  border-color: var(--highlight) !important;
}

body.darkmode .header,
body.darkmode .brand-title,
body.darkmode .order-btn,
body.darkmode .tab-btn.active,
body.darkmode .tab-btn:active,
body.darkmode .nav-btn.active .nav-label {
  color: var(--highlight) !important;
}

body.darkmode .order-btn,
body.darkmode .tab-btn.active,
body.darkmode .tab-btn:active {
  background: linear-gradient(90deg, #222 0%, var(--green) 100%) !important;
  border-color: var(--green) !important;
  color: #fff !important;
}

body.darkmode .order-btn-oldprice {
  color: #b7e3d5 !important;
}

body.darkmode .profile-circle {
  background: #222 !important;
  border: 2px solid var(--green) !important;
}
body.darkmode .profile-plus {
  background: #181c1f !important;
  border: 2px dashed var(--green) !important;
  color: var(--green) !important;
}

body.darkmode .time-block.full {
  background: #23272b !important;
  color: #888 !important;
}

body.darkmode .time-block .block-right {
  color: var(--highlight) !important;
}

body.darkmode .bottom-nav {
  background: #181c1f !important;
  border-top: 1.5px solid #23272b !important;
}

body.darkmode .nav-btn .nav-label {
  color: #fff !important;
}

body.darkmode .brand-logo img {
  filter: brightness(0.8) contrast(1.2);
}

body.darkmode .driver-photo {
  background: #23272b !important;
}

body.darkmode .driver-info-card {
  background: linear-gradient(90deg, #23272b 0%, #181c1f 100%) !important;
}

body.darkmode .order-map iframe {
  filter: invert(0.92) hue-rotate(180deg) brightness(0.9) contrast(1.1);
  border: 1px solid var(--green) !important;
}

body.darkmode .tab-btn:not(.active):hover {
  background: #23272b !important;
  color: var(--highlight) !important;
  border-color: var(--green) !important;
}

body.darkmode .order-sharing-heading {
  color: var(--highlight) !important;
}

body.darkmode .settings-section {
  background: #23272b;
  color: #fff;
  border-radius: 18px;
  padding: 24px 18px;
  margin: 32px auto 0 auto;
  max-width: 420px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

body.darkmode .darkmode-toggle-label .toggle-text {
  color: var(--highlight);
}

.settings-section {
  margin: 32px auto 0 auto;
  max-width: 420px;
  padding: 24px 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 18px;
}
.darkmode-toggle-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}
.darkmode-toggle-label input[type="checkbox"] {
  display: none;
}
.toggle-slider {
  width: 44px;
  height: 24px;
  background: #e0e0e0;
  border-radius: 12px;
  position: relative;
  transition: background 0.2s;
}
.toggle-slider:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.13);
}
.darkmode-toggle-label input[type="checkbox"]:checked + .toggle-slider {
  background: var(--green);
}
.darkmode-toggle-label input[type="checkbox"]:checked + .toggle-slider:before {
  transform: translateX(20px);
  background: #222;
}
.toggle-text {
  margin-left: 8px;
  color: #222;
  font-size: 1.2rem;
  font-weight: 700;
}

.time-block-list {
  margin-bottom: 38px;
}
/* Tab button styles */
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 18px 0 18px 0;
}
.tab-btn {
  font-family: 'Lexend', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  color: var(--green);
  background: #fff;
  border: 2.5px solid var(--green);
  border-radius: 18px;
  padding: 10px 28px;
  margin: 0 2px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(76,164,78,0.07);
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s, transform 0.13s;
  outline: none;
  letter-spacing: 0.01em;
}
.tab-btn.active, .tab-btn:active {
  background: linear-gradient(90deg, #4ca44e 0%, #5edb5e 100%);
  color: #fff;
  border-color: #4ca44e;
  box-shadow: 0 4px 18px 0 rgba(76,164,78,0.13);
  transform: scale(1.04);
}
.tab-btn:hover:not(.active) {
  background: #e8fbe8;
  color: #2e7d32;
  border-color: #5edb5e;
  box-shadow: 0 4px 18px 0 rgba(76,164,78,0.11);
  transform: translateY(-2px) scale(1.03);
}
/* Driver info above time slots */
.driver-info-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin: 18px 5px 0 2px;
}
.driver-name {
  font-family: 'Lexend', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  color: var(--black);
}
.driver-photo {
  width: 68px;
  height: 68px;
  border-radius: 30%;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  position: relative;
  top: 15px;
  margin-top: 0;
}
.driver-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30%;
}
.driver-experience {
  font-family: 'Lexend', Arial, sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: #666;
  margin-left: -85px;
  margin-bottom: 35px;
  margin-top: -10px;
  line-height: 1;
}
.driver-info-card {
  position: relative;
  padding: 9px 0 7px 0; /* Remove horizontal padding since we'll center content inside */
  margin: 9px calc(-50vw + 50%) 5px calc(-50vw + 50%); /* stretch margins to viewport edges */
  width: 100vw;
  box-sizing: border-box;
  background: linear-gradient(90deg, #e8fbe8 0%, #b7e3d5 100%);
  box-shadow: 0 2px 12px 0 rgba(76,164,78,0.10);
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  min-height: 0;
}
.driver-info-card > * {
  width: 100%;
  max-width: 420px; /* Match the main-content max-width */
  padding: 0 18px; /* Add back the horizontal padding to content */
  box-sizing: border-box;
  align-items: center; /* Center content horizontally */
    display: flex;
  /*align everyting center horizontally */
  justify-content: center; /* Center content vertically */
}
@media (max-width: 600px) {
  .time-block-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: auto;
  }
  .time-block {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
  }
  .driver-info-card {
    padding: 6px 0 5px 0;
    margin: 5px calc(-50vw + 50%) 3px calc(-50vw + 50%);
    border-radius: 14px;
  }
  .driver-info-card > * {
    padding: 0 6px;
  }
}
/* Brand row above page title */
.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  margin-left: 12px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}
.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 20%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20%;
}
.brand-title {
  font-family: 'Lexend', Arial, sans-serif;
  font-weight: 900;
  font-size: 2.7rem;
  color: var(--green);
  letter-spacing: -2px;
  line-height: 1.1;
}

/* Tab buttons for journey selection */
.order-btn {
  display: inline-block;
  margin: 32px auto 18px auto;
  padding: 22px 54px;
  font-family: 'Lexend', Arial, sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #4ca44e 0%, #2e7d32 100%);
  border: 3px solid #5edb5e;
  border-radius: 38px;
  box-shadow: 0 4px 24px 0 rgba(76,164,78,0.18), 0 1.5px 0 #2e7d32;
  cursor: pointer;
  transition: transform 0.12s cubic-bezier(.4,2,.6,1), box-shadow 0.18s, background 0.18s, border 0.18s, filter 0.18s;
  position: relative;
  outline: none;
  letter-spacing: 0.01em;
  filter: drop-shadow(0 0 8px #5edb5e88);
}
.order-btn:hover {
  background: linear-gradient(90deg, #5edb5e 0%, #388e3c 100%);
  transform: translateY(-3px) scale(1.07) rotate(-1deg);
  box-shadow: 0 12px 36px 0 rgba(76,164,78,0.28), 0 3px 0 #388e3c;
  border: 3.5px solid #fff;
  filter: drop-shadow(0 0 18px #5edb5e) brightness(1.08);
  outline: 0;
}
.order-btn:active {
  background: linear-gradient(90deg, #388e3c 0%, #4ca44e 100%);
  transform: scale(0.97) rotate(1deg);
  box-shadow: 0 2px 8px 0 rgba(76,164,78,0.13), 0 1px 0 #2e7d32;
  border: 3px solid #4ca44e;
  filter: drop-shadow(0 0 6px #4ca44e88);
}
/* Add strikethrough style for old price */
.order-btn-oldprice {
  text-decoration: line-through;
  color: #0d2d13; /* super dark green */
  font-size: 1.5rem; /* 60% of 1.8rem */
  margin-right: 8px;
}


html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Lexend', Arial, sans-serif;
  background: var(--blue);
  color: var(--black);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  font-family: 'Lexend', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  padding: 24px 0 8px 20px;
  letter-spacing: -.5px;
  color: var(--blue-deep);
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 10;
}

.tagline {
  font-family: 'Lexend', Arial, sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: rgb(10, 22, 14);
  margin-left: 14px;
  margin-bottom: 0;
  align-self: flex-middle;
  white-space: nowrap;
}

.main-content {
  flex: 1 1 auto;
  padding-bottom: 80px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: 0;
}

.time-section {
  margin: 32px 0 0 0;
}

.time-section h2 {
  font-family: 'Lexend', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 10px 0;
  color: var(--black);
  padding-left: 4px;
}

.time-block-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.time-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  min-height: 56px;
  transition: background 0.2s, box-shadow 0.18s;
  position: relative;
}
.time-block:hover {
  box-shadow: 0 8px 32px 0 rgba(76,164,78,0.32), 0 4px 18px 0 rgba(0,0,0,0.16);
  z-index: 2;
  cursor: pointer;
}
.time-block.full {
  background: #e0e0e0;
  color: #888;
}

.time-block .block-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-circles {
  display: flex;
  align-items: center;
  margin-left: 6px;
}

.profile-circle, .profile-plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin-left: -10px;
  overflow: hidden;
  position: relative;
}

.profile-circle {
  background: var(--blue-deep);
  color: #fff;
  border: 2px solid #fff;
  z-index: 2;
}

.profile-face-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-plus {
  background: white;
  border: 2px dashed var(--green);
  color: var(--green);
  font-size: 1.3rem;
  font-weight: 700;
  z-index: 1;
}

.time-block .block-right {
  font-family: 'Lexend', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green);
  margin-left: 12px;
}
.time-block.full .block-right {
  color: #888;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 1.5px solid #e0e0e0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  z-index: 999;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}

.nav-btn {
  background: none;
  border: none;
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: 'Lexend', Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--black);
  cursor: pointer;
  padding: 0 8px;
  transition: color 0.2s;
}
.nav-btn .nav-icon {
  opacity: 0.5;
  transition: opacity 0.18s;
}
.nav-btn.active .nav-icon,
.nav-btn:hover .nav-icon {
  opacity: 1;
}

.nav-btn.active .nav-label {
  color: var(--green);
  font-weight: 700;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
}

@media (max-width: 600px) {
  .main-content {
    padding-left: 1%;
    padding-right: 1%;
    max-width: none;
    width: 90%;
    box-sizing: border-box;
  }
  .time-block-list {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: visible;
  }
  .time-block {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
  }
  .header {
    font-size: 1.5rem;
    padding-left: 12px;
  }
  .brand-row {
    margin-left: 6px;
    gap: 10px;
  }
  .brand-logo {
    width: 38px;
    height: 38px;
  }
  .brand-title {
    font-size: 1.5rem;
  }
  .tagline {
    margin-left: 10px;
    font-size: 0.85rem;
    margin-bottom: 0;
  }
}
