html,
body,
#container {
  height: 100%;
  width: 100%;
  overflow: hidden;
}
body {
  padding-top: 68px;
}
input[type="radio"],
input[type="checkbox"] {
  margin: 0;
}
#sidebar {
  display: block;
  width: 250px;
  height: 100%;
  max-width: 100%;
  float: left;
}
#map {
  width: auto;
  height: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
#loading {
  position: absolute;
  width: 220px;
  height: 19px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -110px;
  z-index: 20001;
}
#features {
  margin: 0px;
  border: none;
  border-radius: 0px;
  -webkit-box-shadow: none;
  box-shadow: none;
}
#sidebar-hide-btn {
  margin-top: -2px;
}
#aboutTabsContent {
  padding-top: 10px;
}
.progress-bar-full {
  width: 100%;
}
.white {
  color: #ffffff;
}
.panel-body:before,
.panel-body:after {
  display: table;
  content: " ";
}
.panel-body:after {
  clear: both;
}
.panel {
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid transparent;
  border-radius: 4px;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
.panel-body {
  width: 250px;
  padding: 5px;
}
.panel-heading {
  width: 250px;
  padding: 0px 0px;
  border-bottom: 1px solid transparent;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  background-color: #f5f5f5;
}
.panel-heading > .dropdown .dropdown-toggle {
  color: inherit;
}
.panel-title {
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: 5px;
  font-size: 18px;
  color: inherit;
}
.panel-title > a,
.panel-title > small,
.panel-title > .small,
.panel-title > small > a,
.panel-title > .small > a {
  color: inherit;
}
.panel-footer {
  padding: 10px 15px;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
}
.panel-default {
  border-color: #ddd;
}
.panel-default > .panel-heading {
  color: #333;
  background-color: #f5f5f5;
  border-color: #ddd;
}
/*   */
.feature-row {
  cursor: pointer;
  width: 250px;
}
.sidebar-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}
.sidebar-table {
  position: absolute;
  width: 100%;
  top: 80px;
  bottom: 0px;
  overflow: auto;
}
.leaflet-control-layers {
  overflow: auto;
}
.leaflet-control-layers label {
  font-weight: normal;
  margin-bottom: 0px;
}
.leaflet-control-layers-list input[type="radio"],
input[type="checkbox"] {
  margin: 2px;
}
.table {
  margin-bottom: 0px;
}
.navbar .navbar-brand {
  font-weight: bold;
  /* font-size: 25px; */
  color: #ffffff;
}
.navbar-collapse.in {
  overflow-y: hidden;
}
.navbar-header .navbar-icon-container {
  margin-right: 15px;
}
.navbar-header .navbar-icon {
  line-height: 50px;
  height: 50px;
}
.navbar-header a.navbar-icon {
  margin-left: 25px;
}
.dropdown-menu {
  background-color: #fff;
}
.dropdown-menu a {
  color: #333;
}
.dropdown-menu a:hover {
  background-color: #f8f8f8;
  color: #333;
}
.dropdown-divider {
  background-color: #e3e3e3;
}
.typeahead {
  background-color: #ffffff;
}
.tt-dropdown-menu {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px 4px 4px 4px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  margin-top: 4px;
  padding: 4px 0;
  width: 100%;
  max-height: 300px;
  overflow: auto;
}
.tt-suggestion {
  font-size: 14px;
  line-height: 20px;
  padding: 3px 10px;
}
.tt-suggestion.tt-cursor {
  background-color: #0097cf;
  color: #ffffff;
  cursor: pointer;
}
.tt-suggestion p {
  margin: 0;
}
.tt-suggestion + .tt-suggestion {
  border-top: 1px solid #ccc;
}
.typeahead-header {
  margin: 0 5px 5px 5px;
  padding: 3px 0;
  border-bottom: 2px solid #333;
}
.has-feedback .form-control-feedback {
  position: absolute;
  top: 2px;
  right: 0;
  display: block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
}
@media (max-width: 992px) {
  .navbar .navbar-brand {
    font-size: 18px;
  }
}
@media (max-width: 767px) {
  #sidebar {
    display: none;
  }
  .url-break {
    word-break: break-all;
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
  .dropdown-menu a i {
    color: #ffffff;
  }
}
/* Print Handling */
@media print {
  .navbar {
    display: none !important;
  }
  .leaflet-control-container {
    display: none !important;
  }
}

/* Statistics Panel Styles - Add to app.css */

#statistics-panel {
  display: none; /* Initially hidden, will be shown via JS */
  transition: all 0.3s ease;
}

#statistics-panel .list-group-item {
  padding: 8px 12px;
}

#statistics-panel .badge {
  font-size: 0.9rem;
  min-width: 40px;
}

/* Add animation for the panel */
.stats-slide-in {
  animation: slideIn 0.3s forwards;
}

.stats-slide-out {
  animation: slideOut 0.3s forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Make the panel responsive */
@media (max-width: 767px) {
  #statistics-panel {
    width: 200px !important;
    font-size: 0.9rem;
  }

  #statistics-panel .badge {
    font-size: 0.8rem;
    min-width: 30px;
  }
}

/* Make the distance badges wider to accommodate the unit */
#avg-distance,
#max-distance {
  min-width: 80px !important; /* Wider badge for distances */
  text-align: center;
}

/* Ensure proper font size for the distance values on all devices */
@media (max-width: 767px) {
  #avg-distance,
  #max-distance {
    min-width: 70px !important;
    font-size: 0.75rem !important;
  }
}

/* Singapore District Label Styles */
.district-label {
  background: none;
  border: none;
}

.district-label-text {
  color: #000000;
  font-weight: bold;
  font-size: 12px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 3px 5px;
  border-radius: 3px;
  box-shadow: 0 0 3px #fff;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff,
    1px 1px 0 #fff;
}

/* Better styling for filter buttons */
.status-filter.active {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  font-weight: bold;
}

#filtered-count-display {
  color: #666;
  font-style: italic;
}

/* Make the statistics panel a bit more compact */
#statistics-panel .list-group-item {
  padding: 0.5rem 0.75rem;
}

/* Add subtle transition for filter changes */
.feature-row {
  transition: opacity 0.3s ease;
}

/* Style for approval status indicators */
.approval-status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

.status-approved {
  background-color: #198754; /* success green */
}

.status-pending {
  background-color: #ffc107; /* warning yellow */
}

.status-rejected {
  background-color: #dc3545; /* danger red */
}

/* Nicer styling for the modal tabs */
#featureTabs {
  margin-bottom: 15px;
}

#featureTabs .nav-link {
  color: #495057;
}

#featureTabs .nav-link.active {
  font-weight: bold;
}

/* Better form styling */
#approval-form .form-label {
  font-weight: 500;
}

#approval-form textarea {
  resize: vertical;
}

/* Improve popup buttons */
.show-details-btn {
  transition: all 0.2s ease;
}

.show-details-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Buat statistics panel bisa di-scroll */
#statistics-panel .card-body {
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 8px;
}

/* Berikan padding dan spacing yang lebih baik */
#statistics-panel .list-group-item {
  padding: 6px 8px;
}

/* Buat badges lebih konsisten lebarnya */
#statistics-panel .badge {
  min-width: 60px;
  text-align: center;
}

/* Beri max-height ke panel untuk devices mobile */
@media (max-width: 767px) {
  #statistics-panel .card-body {
    max-height: 60vh;
  }
}

/* Modifikasi ukuran gambar ikon untuk menghemat space */
#statistics-panel .card-body img {
  width: 24px;
  height: 24px;
}

/* Buat badges lebih baik formatnya */
#statistics-panel .badge.bg-primary,
#statistics-panel .badge.bg-success,
#statistics-panel .badge.bg-info,
#statistics-panel .badge.bg-danger,
#statistics-panel .badge.bg-warning {
  color: white;
  font-weight: 600;
}

/* Tambahkan section divider yang lebih jelas */
#statistics-panel h6.border-bottom {
  padding-bottom: 6px;
  margin-bottom: 10px;
  font-weight: 600;
}
