/* === Global Styles === */
body {
  font-family: system-ui, Arial, sans-serif;
  margin: 0;
  background: #000000;
  color: #ffffff;
  text-shadow: 0 0 6px #00ffff, 0 0 12px #00ffff;
}

/* === Container === */
.container {
  max-width: 960px;
  margin: 18px auto;
  background: #0a0a0a;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* === Header === */
header h1 {
  text-align: center;
  margin: 0 0 16px;
  font-size: 1.8rem;
  color: #00ffff;
  text-shadow: 0 0 8px #00ffff, 0 0 16px #00ffff;
}

/* === Forms & Auth === */
.auth .row,
.dashboard {
  display: grid;
  gap: 12px;
}

/* IMPORTANT: typed text visibility on ALL phones */
.auth input,
.auth select,
.trip-controls input,
textarea {
  padding: 12px;
  border: 1px solid #00ffff;
  border-radius: 8px;
  font-size: 1rem;
  background: #000000;
  color: #ffffff;                 /* <-- white typed text */
  caret-color: #ffffff;           /* <-- visible cursor */
  -webkit-text-fill-color: #ffffff; /* <-- iOS/Android autofill text */
  box-shadow: 0 0 8px #00ffff inset;
  transition: border 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.auth input::placeholder,
.auth select::placeholder,
textarea::placeholder {
  color: #bdfcff;  /* readable placeholder */
  opacity: 0.85;
  text-shadow: none;
}

.auth input:focus,
.auth select:focus,
.trip-controls input:focus,
textarea:focus {
  border-color: #00ffff;
  box-shadow: 0 0 12px #00ffff, 0 0 20px #00ffff inset;
  outline: none;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

/* Fix mobile autofill making text invisible */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
select:-webkit-autofill {
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 0 0px 1000px #000000 inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* === Buttons === */
.buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  padding: 10px 16px;
  border: 1px solid #00ffff;
  border-radius: 8px;
  background: #000000;
  color: #00ffff;
  font-weight: 600;
  cursor: pointer;
  text-shadow: 0 0 4px #00ffff;
  box-shadow: 0 0 8px #00ffff;
  transition: all 0.2s ease;
}

button:hover {
  background: #00ffff;
  color: #000000;
  text-shadow: 0 0 12px #000000;
  box-shadow: 0 0 16px #00ffff;
  transform: translateY(-2px);
}

button:disabled {
  background: #111111;
  color: #777777;
  box-shadow: none;
  cursor: not-allowed;
  border-color: #333333;
  text-shadow: none;
}

/* === Map === */
.map {
  height: 420px;
  border: 1px solid #00ffff;
  border-radius: 10px;
  margin-top: 10px;
  box-shadow: 0 0 12px #00ffff inset;
}

/* === Lists === */
ul {
  list-style: none;
  padding: 0;
}

li {
  padding: 10px 12px;
  border: 1px solid #00ffff;
  border-radius: 8px;
  margin: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #000000;
  color: #00ffff;
  box-shadow: 0 0 8px #00ffff inset;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

li:hover {
  background: #050505;
  box-shadow: 0 0 12px #00ffff inset;
}

/* === Ride Actions === */
.ride-actions {
  display: flex;
  gap: 8px;
}

/* === Status === */
#status {
  font-weight: 600;
  margin-top: 8px;
  color: #00ffff;
  text-shadow: 0 0 8px #00ffff;
}

/* === Global Text Glow for Labels & Spans === */
label, span, p, h2, h3 {
  color: #00ffff;
  text-shadow: 0 0 6px #00ffff, 0 0 12px #00ffff;
}

/* === Split Container for Rider Dashboard === */
.split-container {
  display: flex;
  flex-direction: column;
  height: 420px;
  margin-top: 10px;
}

.split-pane {
  flex: 1;
  border: 1px solid #00ffff;
  box-shadow: 0 0 12px #00ffff inset;
}

.top-pane {
  border-radius: 10px 10px 0 0;
}

.bottom-pane {
  border-radius: 0 0 10px 10px;
  border-top: none;
}

.website-frame {
  width: 100%;
  height: 100%;
  background: #000000;
  border: none;
}

.split-container .map {
  height: 100%;
  margin-top: 0;
  border-radius: inherit;
  border: none;
  box-shadow: none;
}

/* === Google Places Autocomplete Styling === */
.pac-container {
  background-color: #000000 !important;
  border: 1px solid #00ffff !important;
  border-radius: 8px !important;
  box-shadow: 0 0 20px #00ffff !important;
  margin-top: 5px !important;
  z-index: 10000 !important;
}

.pac-item {
  color: #00ffff !important;
  padding: 10px !important;
  border-bottom: 1px solid #333 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  background-color: #000000 !important;
}

.pac-item:hover {
  background-color: #111111 !important;
}

.pac-item-selected {
  background-color: #003333 !important;
}

.pac-icon {
  filter: invert(100%) sepia(100%) saturate(10000%) hue-rotate(180deg) !important;
}

.pac-item-query {
  color: #00ffff !important;
  font-weight: bold !important;
}

/* === Fare Display === */
.fare-display {
  background: #000000;
  border: 2px solid #00ffff;
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  color: #00ffff;
  text-shadow: 0 0 8px #00ffff;
  box-shadow: 0 0 15px #00ffff;
  text-align: center;
  font-size: 1.2em;
}

.fare-display strong {
  color: #00ff00;
  font-size: 1.4em;
  display: block;
  margin-bottom: 5px;
}

/* === Country Warning === */
.country-warning {
  background: rgba(255, 0, 0, 0.2);
  color: #ff0000;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
  text-align: center;
  font-weight: bold;
  border: 1px solid #ff0000;
}

/* === Trip Controls === */
.trip-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 15px 0;
}

.trip-controls input {
  flex: 1;
}

/* === Dashboard Controls === */
.driver-controls, .ride-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

/* === Responsive Design === */
@media (max-width: 768px) {

  html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overscroll-behavior: none;
  }

  body {
    min-height: 100svh;
    position: relative;
  }

  .container {
    margin: 0;
    padding: 12px;
    border-radius: 0;
    min-height: 100svh;
  }

  input, select, textarea {
    font-size: 16px !important;
  }

  .split-container {
    height: 600px;
  }

  .map {
    height: 300px;
  }

  .driver-controls,
  .ride-controls,
  .trip-controls,
  .ride-actions {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .ride-controls,
  .auth .row {
    position: relative;
    z-index: 20;
  }

  .pac-container {
    z-index: 99999 !important;
  }
}
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  width: auto;
}

.hidden {
  display: none !important;
}

.main-menu {
  position: absolute;
  right: 18px;
  top: 80px;
  display: grid;
  gap: 8px;
  border: 1px solid #00ffff;
  padding: 10px;
  border-radius: 10px;
  background: #000000;
  z-index: 9999;
  box-shadow: 0 0 20px #00ffff;
}

.modal {
  position: absolute;
  right: 18px;
  top: 130px;
  width: min(420px, calc(100vw - 36px));
  max-height: 55vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #000000;
  border: 1px solid #00ffff;
  border-radius: 10px;
  box-shadow: 0 0 20px #00ffff;
  z-index: 99999;
  padding: 10px;
  touch-action: pan-y;
}

.modal-content {
  width: 100%;
  background: #0a0a0a;
  padding: 10px;
  box-sizing: border-box;
}

.modal-close {
  float: right;
  width: auto;
}

.profile-box {
  border: 1px solid #00ffff;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.doc-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border: 1px solid #00ffff;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
  align-items: stretch;
}

.doc-status.not_uploaded {
  color: #999999;
}

.doc-status.pending {
  color: orange;
}

.doc-status.approved {
  color: #00ff00;
}

.doc-status.rejected,
.doc-status.blocked {
  color: #ff3333;
}

@media (max-width: 768px) {

  .app-header {
    flex-direction: column;
  }

  .doc-row {
    flex-direction: column;
    align-items: stretch;
  }

  .modal {
    position: absolute;
    right: 10px;
    top: 120px;
    left: 10px;
    width: auto;
    max-height: 65vh;
    min-height: auto;
    overflow-y: auto;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
  }
}

.support-thread {
  border: 1px solid #00ffff;
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
  background: #000;
  box-shadow: 0 0 8px #00ffff inset;
  cursor: pointer;
}

.support-thread.special {
  border-color: #00ff00;
}

.support-messages {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.support-bubble {
  padding: 10px;
  border-radius: 10px;
  max-width: 85%;
  text-shadow: none;
}

.support-user {
  margin-left: auto;
  background: #00ffff;
  color: #000;
}

.support-admin {
  margin-right: auto;
  background: #111;
  color: #fff;
  border: 1px solid #00ffff;
}

/* === Fare Control === */
.fare-display {
  background: #000000;
  border: 2px solid #00ffff;
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  box-shadow: 0 0 15px #00ffff;
  text-align: center;
}

.fare-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.fare-label {
  color: #00ffff;
}

.fare-amount {
  color: #00ff00;
  font-weight: bold;
  font-size: 1.4em;
  min-width: 80px;
}

.fare-status {
  font-weight: 600;
  font-size: 0.9rem;
}

.fare-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 12px 0;
}

.fare-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  border: 2px solid #00ffff;
  background: #000;
  color: #00ffff;
  cursor: pointer;
  box-shadow: 0 0 10px #00ffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fare-btn:hover:not(:disabled) {
  background: #00ffff;
  color: #000;
}

.fare-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

.fare-distance {
  color: #00ffff;
  font-size: 1rem;
  min-width: 60px;
}

.fare-lock-msg {
  color: #ff8800;
  font-weight: bold;
  margin-top: 6px;
}
