
/* Bootstrap warning fixes */
body {
  -webkit-text-size-adjust: 100%; /* Keep for Safari/iOS */
  text-size-adjust: 100%; /* Standard property */
}

th {
  text-align: -webkit-match-parent; /* Keep for legacy WebKit */
  text-align: match-parent; /* Standard property */
}

/* Add text-size-adjust to chat body */
.chat-body {
  background-color: #e9ecef;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Message bubbles */
.bg-primary {
  background-color: #494949 !important;
}

/* Fix any table headers if present */
th {
  text-align: -webkit-match-parent;
  text-align: match-parent;
}

/* Rest of your existing chat/map styles... */
.d-flex.mb-3 {
  margin-left: 10px;
  margin-right: 10px;
}

.chat-body::-webkit-scrollbar {
  width: 8px;
}

/* Loading spinner center */
.text-center {
  text-align: center;
}

/* Navbar active item */
.navbar-dark .navbar-nav .nav-link.active {
  font-weight: bold;
}

/* Map container */
#map {
  border-radius: 8px;
  border: 1px solid #dee2e6;
}



/* Badges */
.badge {
  font-size: 0.875em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .chat-body {
    height: 50vh !important;
  }
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-message {
  color: #dc3545;
  padding: 20px;
  text-align: center;
}




.message {
  margin-bottom: 12px;
  max-width: 70%;
}

.message.sent {
  margin-left: auto;
}

.message.received {
  margin-right: auto;
}

.message-content {
  padding: 10px 15px;
  border-radius: 18px;
  position: relative;
}


.sender-name {
  font-weight: bold;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.message-text {
  word-wrap: break-word;
}

.message-time {
  font-size: 0.7rem;
  text-align: right;
  margin-top: 4px;
  opacity: 0.8;
}

/* Loading control */
.loading-control {
  background: white;
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  font-size: 14px;
}

/* User location marker */
.user-location-marker {
  position: relative;
}

.user-marker-pin {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: #4285F4;
  position: absolute;
  transform: rotate(-45deg);
  left: 50%;
  top: 50%;
  margin: -15px 0 0 -15px;
}

.user-marker-pin::after {
  content: '';
  width: 24px;
  height: 24px;
  margin: 3px 0 0 3px;
  background: #fff;
  position: absolute;
  border-radius: 50%;
}


 .custom-marker {
      position: relative;
    }
    .marker-pin {
      width: 30px;
      height: 30px;
      border-radius: 50% 50% 50% 0;
      background: #c30b82;
      position: absolute;
      transform: rotate(-45deg);
      left: 50%;
      top: 50%;
      margin: -15px 0 0 -15px;
    }
    .marker-pin::after {
      content: '';
      width: 24px;
      height: 24px;
      margin: 3px 0 0 3px;
      background: #fff;
      position: absolute;
      border-radius: 50%;
    }

    #map { 
      height: 400px;
      border-radius: 8px;
    }
    .leaflet-popup-content {
      min-width: 200px;
    }
    .leaflet-popup-content h6 {
      margin-top: 0;
    }

#map {
  height: 300px;
  width: 100%;
  margin-top: 10px;
  border-radius: 8px;
  display: none;
  background-color: #f8f9fa;
}