/* Main content container */
#main-content {
  display: flex;
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  background: var(--neu-bg);
}

/*
* Voice-Enabled Map - Neumorphism Design
*
* © 2025 Danish Jamil. All Rights Reserved.
*
* This project is the intellectual property of the author.
* Unauthorized copying or distribution of this file is prohibited.
*/

/* Neumorphism color palette */
:root {
  --neu-bg: #e0e5ec;
  --neu-shadow-dark: #a3b1c6;
  --neu-shadow-light: #ffffff;
  --neu-text: #4a5568;
  --neu-text-light: #718096;
  --neu-accent: #667eea;
  --neu-accent-hover: #5a67d8;
  --neu-success: #48bb78;
  --neu-danger: #ff0000;
  --neu-sky: rgb(195, 220, 237);
  --neu-rose: rgb(250, 117, 117);
}

/* Base body with neumorphic background */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--neu-bg);
  color: var(--neu-text);
}


/*----------------------------SIDEBAR------------------------------*/
/* Neumorphic sidebar with soft inset shadow */
#sidebar {
  width: 270px;
  padding-top: 3px;
  padding-left: 3px;
  background: rgb(154, 198, 228);
  height: 100vh;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  order: 2;
  transition: width 0.3s ease, padding 0.3s ease;
  border-radius: 20px 0 0 0;
}

/* Neumorphic sections with subtle raised effect and maximum extended height */
.sidebar-section {
  height: calc(50vh - 40px);
  /* Maximum extended height to reach very close to ticker */
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 10px;
  border-radius: 15px;
  background: var(--neu-sky);
  box-shadow:
    -3px -3px 5px var(--neu-shadow-light);
}

/* neumorphic spacing */
.sidebar-section:first-child {
  border-bottom: none;
  margin-bottom: 5px;
}

/* Neumorphic section headers */
.sidebar-section h2 {
  margin-top: 0;
  text-align: center;
  font-size: large;
  flex-shrink: 0;
  color: var(--neu-text);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px var(--neu-shadow-light);
}

/* Neumorphic search box with inset effect */
#search-box {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 15px;
  border: none;
  border-radius: 25px;
  box-sizing: border-box;
  flex-shrink: 0;
  background: var(--neu-bg);
  box-shadow:
    inset 4px 4px 8px var(--neu-shadow-dark),
    inset -4px -4px 8px var(--neu-shadow-light);
  color: var(--neu-text);
  font-size: 14px;
  outline: none;
  transition: box-shadow 0.3s ease;
}

#search-box:focus {
  box-shadow:
    inset 6px 6px 12px var(--neu-shadow-dark),
    inset -6px -6px 12px var(--neu-shadow-light);
}

/* Neumorphic lists with proper hollow containers and maximum extended height */
#locations-list,
#layers-list {
  list-style-type: none;
  padding: 8px;
  margin: 8px 0;
  overflow-y: auto;
  flex-grow: 1;
  background: var(--neu-sky);
  border-radius: 15px;
  box-shadow:
    inset 3px 3px 6px var(--neu-shadow-dark),
    inset -3px -3px 6px var(--neu-shadow-light);
  max-height: calc(50vh - 120px);
  /* Maximum extended height for optimal content display */
}

/* Neumorphic list items with raised hover effect */
#locations-list li {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 6px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: var(--neu-bg);
}

#locations-list li:hover {
  background: var(--neu-rose);
  box-shadow:
    4px 4px 8px var(--neu-shadow-dark),
    -4px -4px 8px var(--neu-shadow-light);
  transform: translateY(-1px);
  transform: translateX(-8px);
}

/* Neumorphic layer list items with consistent styling */
#layers-list li {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  margin: 4px 6px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: var(--neu-bg);
}

#layers-list li:hover {
  background: var(--neu-rose);
  box-shadow:
    3px 3px 6px var(--neu-shadow-dark),
    -3px -3px 6px var(--neu-shadow-light);
  transform: translateY(-1px);
  transform: translateX(-8px);
}

#layers-list label {
  margin-left: 12px;
  cursor: pointer;
  color: var(--neu-text);
  font-weight: 500;
  font-size: small;
}

#locations-list {
  margin-left: 12px;
  cursor: pointer;
  color: var(--neu-text);
  font-weight: 500;
  font-size: small;
}

/* Neumorphic delete button with smaller size */
.delete-btn {
  background: var(--neu-bg);
  border: none;
  color: var(--neu-text-light);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-btn:hover {
  color: var(--neu-danger);
  box-shadow:
    inset 1px 1px 2px var(--neu-shadow-dark),
    inset -1px -1px 2px var(--neu-shadow-light);
  transform: translateY(-1px);
}

/*---------------------------------------------------------------*/

#map {
  flex-grow: 1;
  height: 100vh;
  order: 1;
}

#betaInfo {
  font-size: 12px;
  color: var(--neu-text-light);
  font-style: italic;

}


/*----------------------CENTRE VOICE COMMAND---------------------*/

/* Neumorphic command panel with subtle styling */
#command {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(145deg, var(--neu-soft-blue), var(--neu-bright));
  padding: 8px 10px;
  padding-bottom: 20px;
  border-radius: 25px;
  box-shadow:
    2px 2px 6px rgba(168, 181, 204, 0.3),
    -2px -2px 6px rgba(255, 255, 255, 0.6);
  z-index: 1000;
  text-align: center;
  color: var(--neu-text);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 320px;
}


/*--------------------LEGEND--------------------*/

/* Neumorphic legend styling */
.command.legend {
  padding: 12px 16px;
  padding-top: 3px;
  font: 14px/18px 'Segoe UI', Arial, sans-serif;
  background: var(--neu-sky);
  box-shadow:
    2px 2px 6px rgba(168, 181, 204, 0.3),
    -2px -2px 6px rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  color: var(--neu-text);
  text-align: center;
}

.command.legend i {
  width: 18px;
  height: 18px;
  float: left;
  margin-right: 10px;
  opacity: 0.9;
  border-radius: 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 4px 0;
}

.legend-line {
  width: 18px;
  height: 4px;
  margin-right: 10px;
  border-radius: 2px;
}


/*--------------------LEGEND SCROLL----------------------*/

.legends-wrapper::-webkit-scrollbar {
  width: 10px;
  /* Wider scrollbar */
}

.legends-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  /* Darker background */
  border-radius: 6px;
  border: 1px solid black;
  /* Dark border for contrast */
}

.legends-wrapper::-webkit-scrollbar-thumb {
  background: rgba(100, 120, 150, 0.8);
  /* Darker, more opaque thumb */
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  /* White border */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  /* Shadow for depth */
}

.legends-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(80, 100, 130, 1);
  /* Even darker on hover */
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.legends-wrapper::-webkit-scrollbar-thumb:active {
  background: rgba(60, 80, 110, 1);
  /* Darkest when clicked */
}


/*----------------------------------------------------*/


/*----------------------VIEWS--------------------------*/
/* Neumorphic views container with sidebar texture styling */
#views-container {
  position: absolute;
  bottom: 20px;
  background: var(--neu-sky);
  padding: 16px 10px;
  border-radius: 15px;
  box-shadow:
    2px 2px 6px rgba(168, 181, 204, 0.3),
    -2px -2px 6px rgba(255, 255, 255, 0.6);
  z-index: 1000;
  color: var(--neu-text);
}

#views-container h2 {
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--neu-text);
  flex-shrink: 0;
}

#views-container ul {
  list-style-type: none;
  padding: 5px;
  margin: 8px 0 0 0;
  background: var(--neu-sky);
  border-radius: 15px;
  box-shadow:
    inset 3px 3px 6px var(--neu-shadow-dark),
    inset -3px -3px 6px var(--neu-shadow-light);
  max-height: 120px;
  overflow-y: auto;
}

#views-container li {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  margin: 4px 6px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: var(--neu-bg);
}

#views-container li:hover {
  background: var(--neu-rose);
  box-shadow:
    3px 3px 6px var(--neu-shadow-dark),
    -3px -3px 6px var(--neu-shadow-light);
  transform: translateY(-1px);
  transform: translateX(-4px);

}

#views-container label {
  margin-left: 10px;
  cursor: pointer;
  color: var(--neu-text);
  font-weight: 500;
  font-size: small;
}

/* ----------------------------------------------------- */

/* Water label with neumorphic text shadow */
.water-label {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #e6f3ff;
  font-weight: bold;
  font-size: 14px;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.7),
    -1px -1px 2px rgba(255, 255, 255, 0.3);
}

.hidden-icon {
  background: transparent;
  border: none;
}


/* -----------------------TOAST----------------------- */

/* Neumorphic toast notification */
#toast-notification {
  visibility: hidden;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 280px;
  background: var(--neu-text-light);
  color: black;
  text-align: center;
  border-radius: 15px;
  padding: 20px 24px;
  z-index: 2001;
  opacity: 0;
  transition: opacity 0.5s, visibility 0.5s;
  font-size: 16px;
  white-space: pre-wrap;
  box-shadow:
    2px 2px 6px rgba(168, 181, 204, 0.3),
    -2px -2px 6px rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

#toast-notification.show {
  visibility: visible;
  opacity: 0.9;
}


/* --------------------SEARCH BAR------------------------ */

/* Enhanced neumorphic search bar container with subtle prominence */
.search-bar-container {
  display: flex;
  position: relative;
  margin-top: 15px;
  border-radius: 25px;
  overflow: visible;
  /* Subtle gradient background for mild visibility */
  background: linear-gradient(145deg, #dde4ec, #eef2f7);
  /* Moderate shadow for gentle prominence */
  box-shadow:
    inset 4px 4px 8px rgba(163, 177, 198, 0.4),
    inset -4px -4px 8px rgba(255, 255, 255, 0.8),
    /* Very subtle outer glow */
    0 0 10px rgba(102, 126, 234, 0.08);
  /* Subtle border */
  border: 1px solid rgba(102, 126, 234, 0.1);
  /* Add subtle animation */
  transition: all 0.3s ease;
}

/* Hover effect for the entire container */
.search-bar-container:hover {
  box-shadow:
    inset 5px 5px 10px rgba(163, 177, 198, 0.5),
    inset -5px -5px 10px rgba(255, 255, 255, 0.9),
    0 0 15px rgba(102, 126, 234, 0.12);
  border-color: rgba(102, 126, 234, 0.15);
}

#text-search-input {
  flex-grow: 1;
  border: none;
  padding: 12px 18px;
  border-radius: 25px 0 0 25px;
  outline: none;
  background: transparent;
  color: var(--neu-text);
  font-size: 14px;
  font-weight: 500;
}

#text-search-input::placeholder {
  color: var(--neu-text-light);
  font-style: italic;
  font-weight: 400;
}

/* Enhanced focus state for input */
#text-search-input:focus {
  background: rgba(255, 255, 255, 0.05);
}

#text-search-button {
  border: none;
  background: linear-gradient(145deg, var(--neu-accent), var(--neu-accent-hover));
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 0 25px 25px 0;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  /* Moderate shadow enhancement */
  box-shadow:
    3px 3px 6px rgba(168, 181, 204, 0.3),
    -2px -2px 4px rgba(255, 255, 255, 0.8);
}

#text-search-button:hover {
  background: linear-gradient(145deg, var(--neu-accent-hover), var(--neu-accent));
  box-shadow:
    inset 2px 2px 4px rgba(0, 0, 0, 0.15),
    inset -2px -2px 4px rgba(255, 255, 255, 0.1);
}

#text-search-button:active {
  background: linear-gradient(145deg, var(--neu-accent-hover), var(--neu-accent));
  box-shadow:
    inset 3px 3px 6px rgba(0, 0, 0, 0.2),
    inset -1px -1px 2px rgba(255, 255, 255, 0.1);
  transform: translateY(1px);
}

/* Adding a subtle pulsing animation to draw attention */
@keyframes subtle-pulse {

  0%,
  100% {
    box-shadow:
      inset 6px 6px 12px rgba(163, 177, 198, 0.6),
      inset -6px -6px 12px rgba(255, 255, 255, 0.9),
      0 0 20px rgba(102, 126, 234, 0.15);
  }

  50% {
    box-shadow:
      inset 6px 6px 12px rgba(163, 177, 198, 0.6),
      inset -6px -6px 12px rgba(255, 255, 255, 0.9),
      0 0 30px rgba(102, 126, 234, 0.25);
  }
}

/* Pulse animation when search bar is empty (optional) */
.search-bar-container.highlight {
  animation: subtle-pulse 3s ease-in-out infinite;
}

.layer-icon {
  height: 20px;
  margin-left: 12px;
  border-radius: 4px;
}

/* Neumorphic ticker with subtle elevation */
@keyframes ticker-scroll {
  0% {
    transform: translateX(85%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--neu-rose);
  color: black;
  padding: 12px 0;
  box-sizing: border-box;
  z-index: 999;
}

.ticker-content {
  display: flex;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  white-space: nowrap;
  padding: 0 2rem;
  box-sizing: border-box;
  text-align: center;
  font-weight: 500;
}

/* ------------------------------FEEDBACK-------------------------- */

/* Neumorphic feedback button with reduced glow */
#feedback-btn {
  position: fixed;
  bottom: 45px;
  right: 275px;
  z-index: 1000;
  background: linear-gradient(145deg, var(--neu-accent), var(--neu-accent-hover));
  color: white;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    2px 2px 6px rgba(168, 181, 204, 0.3),
    -2px -2px 6px rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#sidebar.collapsed~#feedback-btn {
  right: 2px;
}

#feedback-btn:hover {
  background: linear-gradient(145deg, var(--neu-accent-hover), var(--neu-accent));
  box-shadow:
    1.5px 1.5px 4px rgba(168, 181, 204, 0.4),
    -1.5px -1.5px 4px rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

/* Neumorphic modal */
#feedback-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(160, 174, 192, 0.4);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--neu-bg);
  margin: 10% auto;
  padding: 15px;
  border: none;
  border-radius: 25px;
  width: 80%;
  max-width: 500px;
  position: relative;
  box-shadow:
    2px 2px 6px rgba(168, 181, 204, 0.3),
    -2px -2px 6px rgba(255, 255, 255, 0.6);
  color: var(--neu-text);
}

.modal-close-btn {
  color: var(--neu-text-light);
  float: right;
  font-size: 28px;
  font-weight: bold;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
  color: var(--neu-danger);
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 2px 2px 4px var(--neu-shadow-dark),
    inset -2px -2px 4px var(--neu-shadow-light);
}

/* Neumorphic textarea */
#feedback-textarea {
  width: 100%;
  padding: 16px;
  margin-top: 15px;
  margin-bottom: 20px;
  box-sizing: border-box;
  border: none;
  border-radius: 15px;
  resize: vertical;
  background: var(--neu-bg);
  color: var(--neu-text);
  box-shadow:
    inset 4px 4px 8px var(--neu-shadow-dark),
    inset -4px -4px 8px var(--neu-shadow-light);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  min-height: 120px;
}

#feedback-textarea:focus {
  box-shadow:
    inset 6px 6px 12px var(--neu-shadow-dark),
    inset -6px -6px 12px var(--neu-shadow-light);
}

/* Neumorphic submit button */
#submit-feedback-btn {
  background: var(--neu-success);
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  box-shadow:
    6px 6px 12px var(--neu-shadow-dark),
    -6px -6px 12px var(--neu-shadow-light);
  transition: all 0.3s ease;
}

#submit-feedback-btn:hover {
  background: #38a169;
  box-shadow:
    4px 4px 8px var(--neu-shadow-dark),
    -4px -4px 8px var(--neu-shadow-light);
  transform: translateY(-1px);
}

/* Neumorphic copyright notice */
#copyright-notice {
  position: fixed;
  bottom: 45px;
  z-index: 1000;
  font-size: 12px;
  color: black;
  background: var(--neu-bg);
  box-shadow:
    2px 2px 6px rgba(168, 181, 204, 0.3),
    -2px -2px 6px rgba(255, 255, 255, 0.6);
}

/* Neumorphic collapsible sidebar */
#sidebar.collapsed {
  width: 0;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}

/* Seamless neumorphic sidebar toggle button */
#sidebar-toggle-btn {
  position: fixed;
  top: 48%;
  right: 273px;
  transform: translateY(-50%);
  z-index: 1002;

  background: rgb(154, 198, 228);
  color: black;
  border: none;
  width: 20px;
  height: 50px;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  border-radius: 12px 0 0 12px;
  /* STRAIGHT EDGE TOUCHES SIDEBAR */
  transition: all 0.3s ease;

  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 1px;
}

#sidebar.collapsed~#sidebar-toggle-btn {
  right: 0px;
  background: var(--neu-danger);
  /*red color when collapsed */
  color: white;
  /*White text for contrast */
  border-radius: 12px 0 0 12px;
  /* THE STRAIGHT EDGE TOUCHES THE SCREEN */
}

#sidebar-toggle-btn:hover {
  background: rgb(134, 184, 216);
  color: var(--neu-text);
  box-shadow:
    1px 1px 3px rgba(168, 181, 204, 0.4),
    -1px -1px 3px rgba(255, 255, 255, 0.9);
}

/* Add new hover state for collapsed */
#sidebar.collapsed~#sidebar-toggle-btn:hover {
  background: #dc2626;
  color: white;
}

/* Neumorphic voice control buttons */
.voice-control-btn {
  background: var(--neu-bg);
  color: var(--neu-text);
  border: none;
  border-radius: 20px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin: 6px 8px;
  box-shadow:
    2px 2px 6px rgba(168, 181, 204, 0.3),
    -2px -2px 6px rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  min-width: 120px;
  text-align: center;
}

.voice-control-btn:hover {
  background: var(--neu-bright);
  box-shadow:
    2px 2px 6px rgba(168, 181, 204, 0.5),
    -2px -2px 6px rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.voice-control-btn:active {
  background: var(--neu-bg);
  box-shadow:
    inset 2px 2px 4px rgba(168, 181, 204, 0.4),
    inset -2px -2px 4px rgba(255, 255, 255, 0.8);
  transform: translateY(1px);
}

/* Start Listening Button - Green by default */
.voice-control-btn.start-listening {
  background: var(--neu-success);
  color: white;
}

.voice-control-btn.start-listening:hover {
  background: #0d944a;
  color: white;
}

/* Start Listening Button - White when listening is active */
.voice-control-btn.start-listening.listening {
  background: var(--neu-bg);
  color: var(--neu-text);
}

.voice-control-btn.start-listening.listening:hover {
  background: var(--neu-bright);
  color: var(--neu-text);
}

/* Stop Listening Button - White by default */
.voice-control-btn.stop-listening {
  background: var(--neu-bg);
  color: var(--neu-text);
}

.voice-control-btn.stop-listening:hover {
  background: var(--neu-bright);
  color: var(--neu-text);
}

/* Stop Listening Button - Red when listening is active */
.voice-control-btn.stop-listening.active {
  background: #ef4444;
  color: white;
}

.voice-control-btn.stop-listening.active:hover {
  background: #dc2626;
  color: white;
}

/* Save Location Button - Soft Blue */
.voice-control-btn.save-location {
  background: #4d8aed;
  color: white;
}

.voice-control-btn.save-location:hover {
  background: #2a6edc;
  color: white;
}

/* Move Leaflet's bottom-right controls (like legends) up to avoid the feedback button */
.leaflet-bottom.leaflet-right {
  bottom: 95px;
}



/* --------------------INFO------------------------ */

.info-icon {
  position: absolute;
  top: 9px;
  right: 11px;
  width: 20px;
  height: 20px;
  background: rgb(154, 198, 228);
  background: whitesmoke;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: none;
}

.info-icon:hover {
  transform: scale(1.1);
  background-color: rgba(135, 206, 235, 0.8);
}

.info-icon svg {
  width: 15px;
}


/* Modal Overlay */
.info-modal-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(160, 174, 192, 0.4);
  backdrop-filter: blur(5px);
}

.info-modal-overlay.show {
  display: flex;
  opacity: 1;
}

/* Modal Content */
.info-modal {
  background: var(--neu-bg);
  margin: 10% auto;
  margin-bottom: 20px;
  padding: 15px;
  border: none;
  border-radius: 25px;
  width: 80%;
  max-width: 600px;
  position: relative;
  box-shadow:
    2px 2px 6px rgba(168, 181, 204, 0.3),
    -2px -2px 6px rgba(255, 255, 255, 0.6);
  color: var(--neu-text);
  overflow: hidden;
  bottom: 50px;
}

.info-modal-overlay.show .info-modal {
  transform: scale(1);
}

/* Modal Header */
.info-modal-header {
  background: var(--neu-bg);
  padding: 20px 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 25px 25px 0 0;
}

.info-modal-title {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: bold;
  margin: 0;
  color: rgb(0, 0, 0);
}

.info-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;

  color: var(--neu-text-light);
  background-color: var(--neu-bg);
  float: right;
  font-size: 28px;
  font-weight: bold;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none;
}

.info-close-btn:hover,
.info-close-btn:focus {
  color: var(--neu-danger);
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 2px 2px 4px var(--neu-shadow-dark),
    inset -2px -2px 4px var(--neu-shadow-light);
}

/* Modal Body */
.info-modal-body {
  padding: 25px;
  overflow-y: auto;
  max-height: 60vh;
}

.info-modal-body h3 {
  display: flex;
  align-items: center;
  color: rgb(31, 29, 29);
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 2px solid var(--neu-shadow-dark);
  padding-bottom: 5px;
}

.info-modal-body h3:first-child {
  margin-top: 10px;
}

strong {
  color: rgb(52, 47, 47);
}

.info-modal-body p {
  color: rgb(60, 58, 58);
  line-height: 1.6;
  margin-bottom: 10px;
}

.info-modal-body ul {
  color: rgb(60, 58, 58);
  line-height: 1.6;
  margin-left: 0px;
  margin-bottom: 40px;
}

.info-modal-body li {
  margin-bottom: 8px;
  margin-left: 0px;
}

.info-modal-body li::marker {
  font-weight: bolder;
  color: rgb(60, 58, 58);
}

.info-modal-body code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: red;
}

/* Responsive Design */
@media (max-width: 768px) {
  .info-modal {
    width: 95%;
    max-height: 90vh;
  }

  .info-modal-header {
    padding: 15px 20px;
  }

  .info-modal-title {
    font-size: 20px;
  }

  .info-modal-body {
    padding: 20px;
    max-height: 70vh;
  }
}

/* Custom Scrollbar for Modal Body */
.info-modal-body::-webkit-scrollbar {
  width: 8px;
}

.info-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.info-modal-body::-webkit-scrollbar-thumb {
  background: skyblue;
  border-radius: 4px;
}

.info-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--neu-rose);
}

.header-icon svg {
  width: 37px;
  margin-right: 10px;
  display: flex;
  align-items: center;
}

.icon-wrapper svg {
  width: 18px;
  height: 30px;
  margin-right: 5px;
  display: flex;
  align-items: center;
}


/* -----------LOG IN and SIGN UP-------------- */

.hidden {
  display: none !important;
}

.auth-btn {
  background: var(--neu-bg);
  color: var(--neu-text);
  border: none;
  border-radius: 20px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin: 6px 8px;
  box-shadow:
    2px 2px 6px rgba(168, 181, 204, 0.3),
    -2px -2px 6px rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  min-width: 120px;
  text-align: center;
}

#signup-btn {
  background-color: #007bff;
  color: white;
}

#login-btn {
  background-color: #007bff;
  color: white;
}

#signup-btn:hover {
  background-color: #0056b3;
}

#login-btn:hover {
  background-color: #0056b3;
}

/* Updated styles for the Logged-In View container */
#command #user-logged-in-view {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: transparent;
  /* Blends background */
  padding: 5px 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* Updated style for the welcome message text */
#command #user-logged-in-view p {
  margin: 0;
  font-weight: bold;
  color: #007bff;
  /* Text color changed to red */
}

/* Updated style for the Logout button */
.auth-btn.logout {
  position: absolute;
  right: 30px;
  padding: 8px 12px;
  margin: 6px 8px;
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  border-radius: 20px;
  background-color: var(--neu-rose);
  /* Red 'danger' color */
  color: white;
  box-shadow:
    2px 2px 6px rgba(168, 181, 204, 0.3),
    -2px -2px 6px rgba(255, 255, 255, 0.6);
}


.auth-btn.logout:hover {
  background-color: var(--neu-danger);
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(160, 174, 192, 0.4);
  backdrop-filter: blur(5px);
}

#auth-modal .modal-content {
  background: var(--neu-bg);
  margin: 10% auto;
  padding: 15px;
  border: none;
  border-radius: 25px;
  width: 80%;
  max-width: 500px;
  position: relative;
  box-shadow:
    2px 2px 6px rgba(168, 181, 204, 0.3),
    -2px -2px 6px rgba(255, 255, 255, 0.6);
  color: var(--neu-text);
}

#auth-form-container form {
  display: flex;
  flex-direction: column;
}

#auth-form-container input {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 16px;
}

#auth-form-container button {
  background: #007bff;
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  box-shadow:
    6px 6px 12px var(--neu-shadow-dark),
    -6px -6px 12px var(--neu-shadow-light);
  transition: all 0.3s ease;
}

#auth-form-container button:hover {
  background-color: #0056b3;
}

.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.auth-switch a {
  color: #007bff;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* --- NEW: Search Suggestions Styles --- */

#suggestions-box {
  display: none;
  position: absolute;
  top: 100%;
  left: 12px;
  right: 0;
  z-index: 1001;
  background-color: var(--neu-sky);
  opacity: 0.9;
  backdrop-filter: blur(5px);
  border: 1px solid black;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  max-width: 414px;
  overflow-y: auto;
}

.suggestion-item {
  padding: 10px;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid black;
  color: var(--neu-text);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: var(--neu-rose);
}


/* --- NEW: Locate Button Styles --- */
#locate-btn {
  position: absolute;
  top: 80px;
  /* Position below the zoom controls */
  left: 10px;
  z-index: 1000;
  width: 30px;
  height: 30px;
  background-color: white;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

#locate-btn:hover {
  background-color: #f4f4f4;
}

#locate-btn svg {
  width: 20px;
  height: 20px;
}


/* --- NEW: Route Distance Label --- */
.route-distance-label {
  background-color: var(--neu-sky);
  color: black;
  opacity: 1;
  border: none;
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: bold;
  box-shadow: none;
  font-size: larger;
}


/* --- NEW: Route Start/End Label Styles --- */
.route-endpoint-label-origin {
  background-color: var(--neu-success);
  color: white;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.route-endpoint-label-destination {
  background-color: var(--neu-rose);
  color: white;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.symbol svg {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0px;
}