/* Custom styles for the Web GIS application */

/* Basic body styling */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fa; /* Bootstrap light background */
}

/* Header styling */
header {
  background: linear-gradient(270deg,#71C0BB, #7ce8ff, #55d0ff, #00acdf, #0080bf);
  background-size: 1000% 1000%;
  font-family: 'Garamond', sans-serif;
  animation: animateGradient 15s ease infinite;
  color: rgb(197, 197, 197);
  text-align: center;
  padding: 20px;
}

/* Sidebar styling */
.col-md-3 {
  background-color: #ffffff;
  border-right: 1px solid #dee2e6; /* Bootstrap border color */
  padding: 1.5rem;
  box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

/* Form control enhancements */
.form-control, .form-select {
  border-radius: 0.5rem; /* Rounded corners */
  border: 1px solid #ced4da;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.075);
}

.form-control:focus, .form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Buttons styling */
.btn {
  border-radius: 0.5rem; /* Rounded corners */
  transition: all 0.2s ease-in-out;
}

.btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  color: #fff;
}

.logo-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.logo-hover:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Map container styling */
#map {
  border-radius: 0.5rem; /* Rounded corners for the map */
  overflow: hidden; /* Ensures map content respects border-radius */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Leaflet specific styles */
.leaflet-control-container .leaflet-control-draw-toolbar,
.leaflet-control-container .leaflet-draw-toolbar {
  margin-top: 10px;
  margin-left: 10px;
}

/* Blinking effect for selected land parcel */
.blinking-feature {
  animation: blink-animation 1.5s infinite alternate;
}

@keyframes blink-animation {
  from {
    fill-opacity: 0.2;
    stroke: #007bff;
  }
  to {
    fill-opacity: 0.6;
    stroke: #007bff;
    stroke-width: 7px;
  }
}

/* District labels on map */
.district-label {
  background-color: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid #333 !important;
  color: #333 !important;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  white-space: nowrap;
}

/* Custom Modal Styling */
.modal-content {
  border-radius: 0.75rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-header {
  background-color: #0d6efd;
  color: white;
  border-top-left-radius: 0.7rem;
  border-top-right-radius: 0.7rem;
}

.modal-footer .btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.modal-footer .btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .col-md-3 {
    border-right: none;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  #map {
    height: 50vh !important; /* Adjust map height for smaller screens */
  }
}


#suggestions {
  max-height: 150px;
  overflow-y: auto;
  z-index: 999;
}
#suggestions li {
  cursor: pointer;
}
#dashboard {
  display: flex;
  justify-content: space-around;
  padding: 10px;
  border: 2px dashed #ccc;
  margin: 10px;
  background: #fefefe;
}

@keyframes animateGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.leaflet-tooltip.district-label {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #000000b0;
  font-weight: bold;
  font-size: 10px;
  padding: 2px 6px;
  color: #333;
}
