/* Ensure holiday table header and cell align left for label and value */
.calendar-holiday-col {
  text-align: left !important;
}

#holidayTableBody td:nth-child(2) {
  text-align: left !important;
}

/* Left-align the first column (dates) in the public holidays modal table */
#holidayTableBody td:first-child {
  text-align: left !important;
}

/* Small fixed loader in the bottom-right corner */
#loader {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100; /* Behind the map and UI */
  background: none;
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.5em 1em;
  border-radius: 1.5em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
#loader .loader-text {
  color: #333;
  font-size: 1.1em;
  font-weight: 500;
}
/* Increase size of weather icons in the weather modal */
.weather-fa-icon.fa {
  font-size: 2.2em !important;
}

/*general styles*/
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#map {
  height: 100vh;
  width: 100vw;
  z-index: 0;
  overflow: hidden;
}

#selectContainer {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 300px;
}

#countrySelect {
  background-color: #ffffff;
  border: 2px solid #198754;
  font-weight: bold;
}


/* Modal customizations if needed */
.modal .modal-dialog {
  max-width: 600px;
}

.modal-header {
  align-items: center;
}

.modal-title {
  font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.table td {
  vertical-align: middle;
}

/* Optional: spacing around Leaflet easy buttons */
.leaflet-control-easybutton-button {
  margin-bottom: 4px;
}

.leaflet-control-layers {
  font-size: 0.9rem;
  background-color: #ffffffdd;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.list-group-item {
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

.list-group-item a {
    text-decoration: none;
    color: #198754;
}

.list-group-item a:hover {
    text-decoration: underline;
}

#wikiModalBody i.fa-globe {
  color: #0d6efd; /* Bootstrap blue */
}

#wikiModalBody i.fa-align-left {
  color: #198754; /* Bootstrap green */
}

#demographicsModalBody i.fa-user {
  color: #0d6efd;
}
#demographicsModalBody i.fa-chart-pie {
  color: #fd7e14;
}
#demographicsModalBody i.fa-heart-pulse {
  color: #dc3545;
}
#demographicsModalBody i.fa-city {
  color: #198754;
}


#pre-load, #demographicsPreload, #overviewPreload, #weatherPreload, #wikiPreload, #newsPreload {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
}

#pre-load::before, #demographicsPreload::before, #overviewPreload::before, #weatherPreload::before, #wikiPreload::before, #newsPreload::before {
    content: "";
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    border: 6px solid #f2f2f2;
    border-top: 6px solid #56829e ;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    -webkit-animation: animate-preloader 1s linear infinite;
    animation: animate-preloader 1s linear infinite;
}

@-webkit-keyframes animate-preloader {
    0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    }
    100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
    }
    }
    @keyframes animate-preloader {
    0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    }
    100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
    }
}

.img-fluid {
  max-height: 140px;
  object-fit: cover;
}

#demographicsModalBody {
  overflow-x: hidden !important;
}