* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.connection-status {
  position: fixed;
  top: 0px;
  left: 0px;
  padding: 6px;
  border-radius: 8px;
  color: white;
  z-index: 3000;
}
/*markers icons*/
/* Vehicle Marker */
.vehicle-marker {
  color: #f5a106;
  font-size: 28px;
  background: rgba(252, 252, 252, 0.95);
  border-radius: 50%;
  padding: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgb(12, 11, 11);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -100%);
}

/* User Marker */
.user-marker {
  color: #0b0c0c;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  padding: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -100%);
}

/* College Marker */
.college-marker {
  color: #127275;
  font-size: 32px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 10px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -100%);
}

/* Accuracy Circle */
.user-circle {
  stroke: #00d2ff;
  stroke-width: 2px;
  fill: rgba(0, 210, 255, 0.1);
  transform: translate(-50%, -50%);
  z-index: -1;
}
/*markers icons*/
/*route*/
.route-step:empty::before {
  content: "Loading directions...";
  color: #888;
}
.route-step {
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 10px 0;
}

.step-item.active {
  border-left: 3px solid #00d2ff;
  padding-left: 10px;
}

.step-item {
  min-height: 50px;
  padding: 12px;
}

.no-steps-message {
  color: #ff6b6b;
  padding: 15px;
  text-align: center;
}
/*route*/
/*vehicle--clg*/

.college-route .leaflet-routing-container .leaflet-interactive {
  animation: college-glow 2s ease-in-out infinite;
}

@keyframes college-glow {
  0% { opacity: 0.8; filter: drop-shadow(0 0 8px rgba(76,175,80,0.5)); }
  50% { opacity: 1; filter: drop-shadow(0 0 15px rgba(76,175,80,0.9)); }
  100% { opacity: 0.8; filter: drop-shadow(0 0 8px rgba(76,175,80,0.5)); }
}

#vehicleCollegeBtn {
  background-color: #4CAF50;
  transition: all 0.3s ease;
}

#vehicleCollegeBtn:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}
/*vehicle--clg*/
.leaflet-routing-container .custom-route-line {
  filter: drop-shadow(0 0 4px rgba(0,210,255,0.5));
}

@keyframes route-glow {
  0% { opacity: 0.8; }
  50% { opacity: 1; filter: drop-shadow(0 0 8px #00d2ff); }
  100% { opacity: 0.8; }
}

.leaflet-routing-container .leaflet-interactive {
  animation: route-glow 2s ease-in-out infinite;
  stroke-linecap: round;
}

.custom-route-line {
  filter: drop-shadow(0 0 8px rgba(77,240,122,0.7));
  animation: route-pulse 1.5s ease-in-out infinite;
}

@keyframes route-pulse {
  0% { opacity: 0.9; }
  50% { opacity: 1; }
  100% { opacity: 0.9; }
}

.glowing-route {
  filter: drop-shadow(0 0 10px rgba(0, 228, 255, 0.7));
  animation: route-glow 1.5s ease-in-out infinite;
}

@keyframes route-glow {
  0% { opacity: 0.9; filter: drop-shadow(0 0 8px rgba(0, 228, 255, 0.5)); }
  50% { opacity: 1; filter: drop-shadow(0 0 15px rgba(0, 228, 255, 0.9)); }
  100% { opacity: 0.9; filter: drop-shadow(0 0 8px rgba(0, 228, 255, 0.5)); }
}

.leaflet-routing-container {
  display: none;
}

.status-dot {
  width: 15px;
  height: 15px;
  border-radius: 45%;
  display: inline-block;
  margin-right: 8px;
}

.status-dot.connected { background: #00ff00; }
.status-dot.disconnected { background: #ff0000; }

#container {
  position: relative;
  height: 100%;
  width: 100%;
}


.sidebar {
  position: fixed;
  top: 20px;
  bottom: 20px;
  width: 300px;
  padding: 20px;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  overflow-y: auto;
}

.left-sidebar {
  left: 20px;
}

.right-sidebar {
  right: 20px;
}

.info-box {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  border-left: 4px solid #00d2ff;
  transition: transform 0.3s ease;
}

.info-box:hover {
  transform: translateY(-3px);
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
}

h2 {
  color: #00d2ff;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.value {
  font-size: 1.1rem;
  color: #00d2ff;
  margin-top: 5px;
  word-break: break-word;
}

.toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #0d0e0e;
  border: none;
  padding: 12px;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  border-radius: 8px;
  backdrop-filter: blur(2px);
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: rgba(38, 172, 206, 0.9);
  transform: scale(1.05);
}

.toggle-btn i {
  font-size: 1.5rem;
}

#locateBtn, .nav-btn {
  background-color: #00d2ff;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  margin: 10px 0;
  transition: all 0.3s;
}

#locateBtn:hover, .nav-btn:hover {
  background-color: #009fdc;
}

.voice-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-left: 10px;
}

.route-step {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.route-step:last-child {
  border-bottom: none;
}

.hidden {
  display: none !important;
}

.accuracy-warning {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: 5px;
}

.address-text {
  font-size: 0.9rem;
  line-height: 1.4;
  max-height: 100px;
  overflow-y: auto;
}

.voice-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.navigation-mode #map {
  top: 80px;
  bottom: 120px;
  transition: all 0.3s ease;
}

.nav-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: rgba(14, 12, 12, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 15px;
  z-index: 3000;
  display: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-direction: column;
  justify-content: center;
}

.nav-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: none;
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-direction: column;
  justify-content: flex-end;
}

.main-instruction {
  font-size: 2rem;
  color: #00d2ff;
  margin-bottom: 8px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.secondary-instruction {
  font-size: 1.2rem;
  color: #ffffff;
  opacity: 0.9;
  font-weight: 400;
}

.nav-time-distance {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.nav-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.nav-control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.eta-display {
  font-size: 1.4rem;
  color: #00d2ff;
}

.distance-display {
  font-size: 1.2rem;
}

.steps-modal {
  position: fixed;
  top: 80px;
  bottom: 120px;
  right: -400px;
  width: 350px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  transition: right 0.3s ease;
  padding: 20px;
  overflow-y: auto;
  z-index: 4000;
}

.steps-modal.active {
  right: 0;
}

.step-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.step-item.active {
  color: #00d2ff;
  font-weight: 600;
}

.sound-wave {
  display: inline-block;
  position: relative;
  height: 20px;
  width: 25px;
}

.sound-wave span {
  position: absolute;
  bottom: 0;
  width: 3px;
  height: 100%;
  background: #00d2ff;
  animation: soundwave 1.2s ease infinite;
}

.sound-wave span:nth-child(1) { left: 0; animation-delay: 0.2s; }
.sound-wave span:nth-child(2) { left: 5px; animation-delay: 0.4s; }
.sound-wave span:nth-child(3) { left: 10px; animation-delay: 0.6s; }

@keyframes soundwave {
  0% { height: 20%; }
  50% { height: 100%; }
  100% { height: 20%; }
}

.mobile-nav-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  padding: 12px 5px;
  z-index: 3000;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  justify-content: space-around;
}

.nav-item {
  flex: 1;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px;
  text-align: center;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  min-width: 60px;
}

.nav-item.active {
  color: #00d2ff;
  transform: translateY(-5px);
}

.nav-item i {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
  .mobile-nav-bar {
    display: flex;
  }
  .toggle-btn{
    display: block;
  }
  .sidebar {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-height:100px;
    top: auto;
    bottom: 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px 20px 0 0;
    padding: 20px 15px;
    z-index: 3500;
  }
  
  .sidebar.active {
    transform: translateY(0) !important;
  }
  
  .sidebar h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
  
  .info-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    margin: 10px 0;
  }
  
  .nav-top-bar {
    top: env(safe-area-inset-top);
    height: 80px;
  }
  
  .nav-bottom-bar {
    height: 90px;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media screen and (max-width: 768px) {
  .mobile-nav {
    display: block;
  }
  .toggle-btn{
    display:block;
  }

  .mobile-controls {
    display: block;
  }

  .sidebar {
    width: 100%;
    height: auto;
    max-height: 60vh;
    position: fixed;
    bottom: 0;
    left: 0;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    padding: 15px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
  }

  .sidebar.active {
    transform: translateY(0);
  }

  .left-sidebar {
    left: 0;
    top: auto;
  }

  .right-sidebar {
    right: 0;
    top: auto;
  }

  .toggle-btn {
    display: block;
  }

  .info-box {
    padding: 10px;
    margin: 10px 0;
  }

  h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .value {
    font-size: 1rem;
  }

  #locateBtn, .nav-btn {
    padding: 12px;
    font-size: 0.9rem;
  }

  .navigation-mode #map {
    top: 60px !important;
    bottom: 100px !important;
  }

  .nav-top-bar {
    height: 60px;
    padding: 10px;
  }

  .nav-bottom-bar {
    height: 100px;
    padding: 10px;
  }

  .main-instruction {
    font-size: 1.4rem;
    margin-bottom: 4px;
  }

  .secondary-instruction {
    font-size: 1rem;
  }

  .nav-time-distance {
    margin-top: 5px;
  }

  .eta-display {
    font-size: 1.1rem;
  }

  .distance-display {
    font-size: 1rem;
  }

  .nav-control-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .steps-modal {
    top: 60px;
    bottom: 100px;
    width: 100%;
    right: -100%;
  }

  .steps-modal.active {
    right: 0;
  }

  .step-item {
    padding: 10px 0;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .sidebar-overlay.active {
    display: block;
  }
}

@media screen and (max-width: 480px) {
  .nav-top-bar {
    height: 50px;
  }
.toggle-btn{
  display: block;
}
  .nav-bottom-bar {
    height: 80px;
  }

  .main-instruction {
    font-size: 1.2rem;
  }

  .secondary-instruction {
    font-size: 0.9rem;
  }

  .nav-control-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .eta-display, .distance-display {
    font-size: 0.9rem;
  }
}