@charset "UTF-8";
/* ---------------------------------------------------------- */
.background {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: -1;
}

.bordered {
  --border-width: 1px;
  border-radius: 24px;
  position: relative;
  height: fit-content;
  width: fit-content;
}
.bordered .bordered-backdrop {
  position: absolute;
  inset: -12px;
  border-radius: 36px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 12px solid transparent;
  mask: linear-gradient(white) content-box, linear-gradient(white) padding-box;
  mask-composite: intersect;
}
.bordered .bordered-glow {
  inset: -2px;
  border-radius: 26px;
  border: 2px solid white;
  position: absolute;
  filter: blur(5px);
  mask: linear-gradient(white) content-box, linear-gradient(white) padding-box;
  mask-composite: intersect;
}
.bordered .bordered-inner {
  border-radius: inherit;
  background: rgba(50, 50, 50, 0.05);
  color: white;
  text-align: center;
  position: relative;
}
.bordered .bordered-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: var(--border-width) solid transparent;
  filter: blur(5px);
  background: linear-gradient(hsl(220, 10%, 60%), hsl(220, 10%, 45%)) border-box;
  mask: linear-gradient(white) border-box, linear-gradient(white) padding-box;
  mask-composite: subtract;
}

a {
  color: hsl(0, 0%, 80%);
  text-decoration: none;
}

ul {
  margin-left: 1rem;
}

img {
  transition: opacity 0.5s ease-in-out, scale 0.5s ease-in-out;
}
img:hover {
  opacity: 1;
  scale: 110%;
}

:focus-visible {
  outline: 2px solid hsl(0, 0%, 75%);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  position: relative;
  box-sizing: border-box;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5rem;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(7px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header .header-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: 0 1.5rem;
}
.header .header-content .navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.header .header-content .navbar-logo .logo-text {
  font-size: 150%;
  font-weight: 700;
  color: hsl(0, 0%, 100%);
  letter-spacing: -0.02em;
}
.header .header-content .nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.header .header-content .nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.header .header-content .navbar-item {
  text-decoration: none;
  color: hsl(0, 0%, 80%);
  padding: 0.5rem 1rem;
  border-radius: 0.7rem;
  font-size: 80%;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.5s ease, color 0.5s ease;
}
.header .header-content .navbar-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: hsl(0, 0%, 100%);
}
.header .header-content .navbar-item.login-btn {
  border: 1px solid hsl(220, 10%, 60%);
  background: rgba(255, 255, 255, 0.08);
  color: hsl(0, 0%, 100%);
}
.header .header-content .navbar-item.login-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.timed-button {
  border-radius: 2000vmin;
  --border-width: 1px;
  position: relative;
  height: fit-content;
  width: fit-content;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.timed-button .timed-button-backdrop {
  position: absolute;
  inset: -12px;
  border-radius: 2000vmin;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 12px solid transparent;
  mask: linear-gradient(white) content-box, linear-gradient(white) padding-box;
  mask-composite: intersect;
}
.timed-button .timed-button-glow {
  inset: 0;
  border-radius: 2000vmin;
  position: absolute;
  filter: blur(10px);
  background-image: linear-gradient(transparent, 90%, hsl(0, 0%, 75%), hsl(0, 0%, 75%));
  mask: linear-gradient(white) content-box, linear-gradient(white) padding-box;
  mask-composite: intersect;
}
.timed-button .timed-button-inner {
  border-radius: 2000vmin;
  background: rgba(50, 50, 50, 0.05);
  color: white;
  text-align: center;
  position: relative;
  padding: 1rem;
}
.timed-button .timed-button-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: var(--border-width) solid transparent;
  filter: blur(2px);
  background: linear-gradient(hsl(0, 0%, 75%), 20%, hsl(220, 10%, 15%), hsl(220, 10%, 10%)) border-box;
  mask: linear-gradient(white) border-box, linear-gradient(white) padding-box;
  mask-composite: subtract;
}
.timed-button p {
  padding: 0rem 1rem;
  font-size: 150%;
}
.timed-button:not(.timed-button-inactive):hover {
  transform: translateY(-2px);
  filter: brightness(1.35);
}

.timed-button-inactive {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.glassy-box {
  --border-width: 1px;
  backdrop-filter: blur(5px);
  background-color: var(--glass-colour);
  position: relative;
}
.glassy-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: var(--border-width) solid transparent;
  filter: blur(5px);
  background: linear-gradient(hsl(220, 10%, 60%), hsl(0, 0%, 70%)) border-box;
  mask: linear-gradient(white) border-box, linear-gradient(white) padding-box;
  mask-composite: subtract;
}

/* effects – add new effect imports here */
/* ── Login / auth form pages ── */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 3.5rem 1rem 1rem;
}

/* ── Card ── */
.login-card,
form.bg-white {
  background: hsla(0, 0%, 10%, 0.6);
  backdrop-filter: blur(7px);
  border: 1px solid hsl(220, 10%, 45%);
  border-radius: 1rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 24rem;
}

.login-heading {
  font-size: 200%;
  font-weight: 700;
  color: hsl(0, 0%, 100%);
  margin-bottom: 2rem;
  text-align: center;
}

.login-field {
  margin-bottom: 1.25rem;
}

.login-label {
  display: block;
  font-size: 80%;
  font-weight: 600;
  color: hsl(0, 0%, 80%);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login-actions {
  margin-top: 1.5rem;
}

.login-submit {
  width: 100%;
  padding: 0.75rem;
  font-size: 100%;
  font-weight: 600;
  justify-content: center;
}

.login-footer {
  margin-top: 1.25rem;
  text-align: center;
}

.login-link {
  font-size: 80%;
  color: hsl(210, 80%, 65%);
  cursor: pointer;
}
.login-link:hover {
  color: hsl(210, 80%, 45%);
}

/* ── Shared form inputs ── */
.w-full {
  width: 100%;
}

.max-w-md {
  max-width: 28rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Typography ── */
.text-xl {
  font-size: 150%;
}

.text-sm {
  font-size: 80%;
}

.font-bold {
  font-weight: 700;
}

.text-gray-700 {
  color: hsl(0, 0%, 80%);
}

.text-white {
  color: hsl(0, 0%, 100%);
}

/* ── Spacing ── */
.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.p-2 {
  padding: 0.5rem;
}

/* ── Layout ── */
.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

/* ── Form inputs ── */
.shadow {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.appearance-none {
  appearance: none;
}

input[type=text],
input[type=password],
input[type=email] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid hsl(220, 10%, 45%);
  background: rgba(255, 255, 255, 0.06);
  color: hsl(0, 0%, 100%);
  font-size: 100%;
  line-height: 1.25;
  outline: none;
  transition: border-color 0.15s ease;
}
input[type=text]::placeholder,
input[type=password]::placeholder,
input[type=email]::placeholder {
  color: hsl(220, 10%, 60%);
}
input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus {
  border-color: hsl(0, 0%, 75%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.border-red-500,
input.border-red-500 {
  border-color: hsl(0, 70%, 55%);
}

/* ── Buttons ── */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 0.7rem;
  border: 1px solid hsl(220, 10%, 60%);
  background: rgba(255, 255, 255, 0.08);
  color: hsl(0, 0%, 100%);
  font-size: 100%;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: hsl(0, 0%, 70%);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── SVG icons in buttons ── */
.h-5 {
  height: 1.25rem;
}

.w-5 {
  width: 1.25rem;
}

.ml-4 {
  margin-left: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 0.8s linear infinite;
}

/* ── Error banner ── */
.bg-red-500 {
  background: hsl(0, 70%, 45%);
  border-radius: 0.7rem;
  padding: 0.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ── Links ── */
.text-blue-500 {
  color: hsl(210, 80%, 65%);
}

a.text-blue-500:hover,
.hover\:text-blue-800:hover {
  color: hsl(210, 80%, 45%);
}

.align-baseline {
  vertical-align: baseline;
}

/* ── Heading inside form ── */
form h2 {
  display: block;
  color: hsl(0, 0%, 80%);
}

.map-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

/* ── Context menu ── */
.sr-ctx-overlay {
  position: fixed;
  inset: 0;
  z-index: 1999;
}

.sr-ctx-menu {
  position: fixed;
  z-index: 2000;
  background: rgba(15, 15, 20, 0.92);
  backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.7rem;
  padding: 0.3rem 0;
  min-width: 10rem;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.sr-ctx-menu.sr-ctx-visible {
  display: block;
}

.sr-ctx-item {
  padding: 0.5rem 1rem;
  font-size: 80%;
  color: hsl(0, 0%, 80%);
  cursor: pointer;
  transition: background 0.1s ease;
}
.sr-ctx-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: hsl(0, 0%, 100%);
}
.sr-ctx-item--clear {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.2rem;
  padding-top: 0.5rem;
  color: hsl(0, 70%, 65%);
}
.sr-ctx-item--clear:hover {
  background: rgba(255, 80, 80, 0.12);
}

/* ── Map markers ── */
.sr-marker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sr-marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid hsl(0, 0%, 100%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}
.sr-marker--start .sr-marker-dot {
  background: hsl(142, 71%, 55%);
}
.sr-marker--end .sr-marker-dot {
  background: hsl(0, 70%, 55%);
}

.sr-marker-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: hsl(0, 0%, 100%);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ── Trip creation panel ── */
.tcp {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 1000;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  min-width: 20rem;
  transition: transform 0.3s ease;
}
.tcp.tcp-visible {
  transform: translateX(-50%) translateY(0);
}

.tcp-title {
  font-size: 100%;
  font-weight: 600;
  color: hsl(0, 0%, 100%);
  margin-bottom: 1rem;
}

.tcp-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.tcp-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.tcp-dot--start {
  background: hsl(142, 71%, 55%);
}
.tcp-dot--end {
  background: hsl(0, 70%, 55%);
}

.tcp-label {
  font-size: 80%;
  color: hsl(220, 10%, 45%);
  width: 2.5rem;
}

.tcp-coord {
  font-size: 80%;
  color: hsl(0, 0%, 80%);
  font-family: monospace;
}

.tcp-field {
  margin-bottom: 0.75rem;
}

.tcp-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: hsl(0, 0%, 100%);
  font-size: 100%;
  outline: none;
}
.tcp-input::placeholder {
  color: hsl(220, 10%, 60%);
}
.tcp-input:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

.tcp-error {
  font-size: 80%;
  color: hsl(0, 70%, 65%);
  margin-bottom: 0.5rem;
}

.tcp-btn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.6rem;
  font-weight: 600;
  justify-content: center;
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: hsl(142, 71%, 65%);
}
.tcp-btn:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.5);
}

.trips-page {
  max-width: 56rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 2rem;
}

.trips-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.trips-title {
  font-size: 200%;
  font-weight: 700;
  color: hsl(0, 0%, 100%);
}

.trips-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.7rem;
  border: 1px solid hsl(220, 10%, 60%);
  background: rgba(255, 255, 255, 0.08);
  color: hsl(0, 0%, 100%);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.trips-create-btn span {
  font-size: 150%;
  line-height: 1;
}
.trips-create-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.25rem;
}

.trip-card {
  background: hsla(0, 0%, 10%, 0.6);
  backdrop-filter: blur(7px);
  border: 1px solid hsl(220, 10%, 45%);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.trip-card:hover {
  border-color: hsl(220, 10%, 60%);
  transform: translateY(-2px);
}

.trip-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.trip-card-name {
  font-size: 100%;
  font-weight: 600;
  color: hsl(0, 0%, 100%);
  line-height: 1.3;
}

.trip-status {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 0.5rem;
}
.trip-status--active {
  background: rgba(34, 197, 94, 0.2);
  color: hsl(142, 71%, 65%);
}
.trip-status--waiting {
  background: rgba(234, 179, 8, 0.2);
  color: hsl(48, 96%, 65%);
}
.trip-status--completed {
  background: rgba(100, 116, 139, 0.2);
  color: hsl(0, 0%, 70%);
}

.trip-card-desc {
  font-size: 80%;
  color: hsl(220, 10%, 45%);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.trip-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trip-card-route {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 80%;
  color: hsl(0, 0%, 80%);
}

.trip-card-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}
.trip-card-dot--start {
  background: hsl(142, 71%, 55%);
}
.trip-card-dot--end {
  background: hsl(0, 70%, 55%);
}

.trip-card-arrow {
  color: hsl(220, 10%, 45%);
  margin: 0 0.1rem;
}

.trip-card-vehicle {
  font-size: 80%;
  color: hsl(220, 10%, 45%);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.5rem;
  border-radius: 0.5rem;
}

.trips-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 30vh;
  color: hsl(220, 10%, 45%);
  font-size: 150%;
  text-align: center;
}
.trips-empty.trips-error {
  color: hsl(0, 70%, 65%);
  font-size: 100%;
}

.trips-empty-hint {
  font-size: 80%;
  color: hsl(220, 10%, 45%);
  margin-top: 0.5rem;
}

.trip-detail {
  position: relative;
}

/* ── Side panel ── */
.td-panel {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  z-index: 1000;
  width: 22rem;
  max-width: calc(100vw - 3rem);
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}

.td-header {
  margin-bottom: 1rem;
}

.td-back {
  display: inline-block;
  font-size: 80%;
  color: hsl(220, 10%, 45%);
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.td-back:hover {
  color: hsl(0, 0%, 100%);
}

.td-title {
  font-size: 150%;
  font-weight: 700;
  color: hsl(0, 0%, 100%);
  line-height: 1.3;
}

/* ── Generate controls ── */
.td-controls {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.td-select {
  flex: 0 0 8rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: hsl(0, 0%, 100%);
  font-size: 80%;
  outline: none;
}
.td-select:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

.td-btn {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.15);
  color: hsl(142, 71%, 65%);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.td-btn:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.5);
}
.td-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.td-error {
  font-size: 80%;
  color: hsl(0, 70%, 65%);
  margin-bottom: 0.5rem;
}

/* ── Status / summary ── */
.td-status {
  font-size: 80%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  color: hsl(0, 0%, 80%);
}
.td-status--failed {
  color: hsl(0, 70%, 65%);
  background: rgba(255, 80, 80, 0.1);
}

.td-summary {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.td-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
}

.td-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(220, 10%, 45%);
}

.td-stat-value {
  font-size: 100%;
  font-weight: 600;
  color: hsl(0, 0%, 100%);
}

/* ── Waypoint list ── */
.td-waypoints {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.td-wp {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.td-wp-num {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(41, 128, 255, 0.25);
  color: hsl(41, 96%, 70%);
  font-size: 0.75rem;
  font-weight: 700;
}

.td-wp-label {
  flex: 1;
  font-size: 80%;
  color: hsl(0, 0%, 80%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-wp-leg {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: hsl(220, 10%, 45%);
  font-family: monospace;
}

/* ── Waypoint map markers ── */
.sr-wp-marker {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sr-wp-dot {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: hsl(41, 96%, 55%);
  color: #1a1205;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid hsl(0, 0%, 100%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.sr-wp-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: hsl(0, 0%, 100%);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

.settings-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 2rem;
}

.settings-title {
  font-size: 200%;
  font-weight: 700;
  color: hsl(0, 0%, 100%);
  margin-bottom: 2rem;
}

.settings-section {
  margin-bottom: 2rem;
}

.settings-section-title {
  font-size: 80%;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(220, 10%, 45%);
  margin-bottom: 0.75rem;
}

.settings-card {
  background: hsla(0, 0%, 10%, 0.6);
  backdrop-filter: blur(7px);
  border: 1px solid hsl(220, 10%, 45%);
  border-radius: 1rem;
  overflow: hidden;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}
.settings-row + .settings-row {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-label {
  font-size: 100%;
  color: hsl(0, 0%, 80%);
  font-weight: 500;
}

.settings-value {
  font-size: 100%;
  color: hsl(0, 0%, 100%);
}
.settings-value--muted {
  color: hsl(220, 10%, 45%);
  font-style: italic;
}

/* --- banners + status --- */
.settings-banner {
  padding: 0.6rem 1rem;
  border-radius: 0.7rem;
  margin-bottom: 1rem;
  font-size: 80%;
}
.settings-banner--error {
  background: rgba(220, 38, 38, 0.18);
  color: hsl(0, 70%, 72%);
  border: 1px solid hsla(0, 60%, 45%, 0.5);
}

.settings-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 20vh;
  color: hsl(220, 10%, 45%);
  font-size: 150%;
  text-align: center;
}
.settings-empty.settings-error {
  color: hsl(0, 70%, 65%);
  font-size: 100%;
}

.settings-hint {
  color: hsl(220, 10%, 45%);
  font-size: 80%;
  padding: 0.25rem 0.25rem 0.75rem;
}

/* --- form cards --- */
.settings-card--form {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.settings-field-label {
  font-size: 80%;
  color: hsl(220, 10%, 45%);
  font-weight: 600;
}

.settings-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 0.7rem;
  border: 1px solid hsl(220, 10%, 45%);
  background: rgba(255, 255, 255, 0.06);
  color: hsl(0, 0%, 100%);
  font-size: 100%;
  font-family: inherit;
}
.settings-input::placeholder {
  color: hsl(220, 10%, 45%);
}
.settings-input:focus {
  outline: none;
  border-color: hsl(0, 0%, 70%);
}
.settings-input--area {
  resize: vertical;
  min-height: 4rem;
}

.settings-select {
  cursor: pointer;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.settings-btn {
  padding: 0.45rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(220, 10%, 60%);
  background: rgba(255, 255, 255, 0.08);
  color: hsl(0, 0%, 100%);
  font-weight: 600;
  font-size: 80%;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.settings-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.settings-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.settings-btn--primary {
  border-color: hsla(210, 70%, 55%, 0.6);
  color: hsl(210, 80%, 78%);
}
.settings-btn--primary:hover {
  background: rgba(59, 130, 246, 0.18);
}
.settings-btn--ghost {
  color: hsl(0, 0%, 80%);
}
.settings-btn--danger {
  border-color: hsla(0, 60%, 50%, 0.5);
  color: hsl(0, 70%, 72%);
}
.settings-btn--danger:hover {
  background: rgba(220, 38, 38, 0.16);
}

/* --- avatar --- */
.settings-avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.settings-avatar-img,
.settings-avatar-placeholder {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.settings-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(0, 0%, 100%);
  font-weight: 600;
  font-size: 150%;
}

.settings-avatar-actions {
  display: flex;
  gap: 0.5rem;
}

.settings-upload {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.settings-file-input {
  display: none;
}

/* --- vehicles --- */
.settings-vehicles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.settings-vehicle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.7rem;
  border: 1px solid hsl(220, 10%, 45%);
  background: hsla(0, 0%, 10%, 0.6);
  backdrop-filter: blur(7px);
}

.settings-vehicle-info {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
  flex-wrap: wrap;
}

.settings-vehicle-name {
  color: hsl(0, 0%, 100%);
  font-weight: 500;
}

.settings-vehicle-type {
  font-size: 80%;
  color: hsl(220, 10%, 45%);
}

.settings-vehicle-plate {
  font-size: 80%;
  color: hsl(0, 0%, 80%);
  padding: 0.1rem 0.4rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  letter-spacing: 0.05em;
}

.settings-vehicle-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.settings-tag {
  font-size: 80%;
  color: hsl(142, 71%, 72%);
  padding: 0.3rem 0.6rem;
}

.settings-vehicle-form {
  margin-top: 0.5rem;
}

.settings-form-row {
  display: flex;
  gap: 0.75rem;
}
.settings-form-row .settings-input {
  flex: 1;
}

.settings-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: hsl(0, 0%, 80%);
  font-size: 80%;
  white-space: nowrap;
  cursor: pointer;
}

.admin-page {
  max-width: 52rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 2rem;
}

.admin-title {
  font-size: 200%;
  font-weight: 700;
  color: hsl(0, 0%, 100%);
  margin-bottom: 1.5rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  border: 1px solid hsl(220, 10%, 45%);
  background: rgba(255, 255, 255, 0.05);
  color: hsl(220, 10%, 45%);
  font-size: 100%;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: hsl(0, 0%, 100%);
}
.admin-tab--active {
  border-color: hsla(210, 70%, 55%, 0.6);
  background: rgba(59, 130, 246, 0.18);
  color: hsl(210, 80%, 78%);
}

.admin-section {
  margin-bottom: 2rem;
}

.admin-section-title {
  font-size: 80%;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(220, 10%, 45%);
  margin-bottom: 0.75rem;
}

.admin-card {
  background: hsla(0, 0%, 10%, 0.6);
  backdrop-filter: blur(7px);
  border: 1px solid hsl(220, 10%, 45%);
  border-radius: 1rem;
  overflow: hidden;
}

.admin-card--form {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-empty {
  color: hsl(220, 10%, 45%);
  font-style: italic;
  padding: 1.5rem 0;
}

.admin-error {
  color: hsl(0, 70%, 72%);
}

.admin-banner {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  font-size: 100%;
}
.admin-banner--error {
  background: rgba(220, 38, 38, 0.18);
  color: hsl(0, 70%, 72%);
}
.admin-banner--ok {
  background: rgba(34, 197, 94, 0.16);
  color: hsl(140, 60%, 72%);
}

.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
}
.admin-row + .admin-row {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-row-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.admin-row-title {
  font-size: 100%;
  color: hsl(0, 0%, 100%);
  font-weight: 500;
  word-break: break-all;
}

.admin-row-sub {
  font-size: 80%;
  color: hsl(220, 10%, 45%);
}

.admin-row-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.admin-tag {
  font-size: 80%;
  padding: 0.15rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: hsl(0, 0%, 80%);
}
.admin-tag--muted {
  color: hsl(220, 10%, 45%);
}
.admin-tag--warn {
  background: rgba(220, 38, 38, 0.18);
  color: hsl(0, 70%, 72%);
}

.admin-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(220, 10%, 45%);
  background: rgba(255, 255, 255, 0.06);
  color: hsl(0, 0%, 100%);
  font-size: 100%;
}
.admin-input::placeholder {
  color: hsl(220, 10%, 45%);
}
.admin-input:focus {
  outline: none;
  border-color: hsl(0, 0%, 70%);
}

.admin-form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.admin-form-row > * {
  flex: 1 1 12rem;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.admin-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(220, 10%, 45%);
  background: rgba(255, 255, 255, 0.08);
  color: hsl(0, 0%, 100%);
  font-size: 80%;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}
.admin-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.admin-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.admin-btn--primary {
  border-color: hsla(210, 70%, 55%, 0.6);
  color: hsl(210, 80%, 78%);
  background: rgba(59, 130, 246, 0.18);
}
.admin-btn--primary:hover {
  background: rgba(59, 130, 246, 0.3);
}
.admin-btn--danger {
  border-color: hsla(0, 60%, 50%, 0.5);
  color: hsl(0, 70%, 72%);
  background: rgba(220, 38, 38, 0.14);
}
.admin-btn--danger:hover {
  background: rgba(220, 38, 38, 0.26);
}
.admin-btn--ghost {
  background: transparent;
}
.admin-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

html {
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  width: 4px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.55);
}

body {
  width: 100%;
  font-size: 100%;
  font-family: Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: hsl(0, 0%, 80%);
  overflow-x: hidden;
  gap: 5rem;
  background-color: black;
}

main {
  width: 100%;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 1000;
  padding: 1rem 1.5rem;
  background: white;
  color: black;
  font-weight: bold;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
