html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

#map {
  height: 100vh;
  width: 100%;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(40, 40, 40, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

#loader .spinner {
  width: 70px;
  height: 70px;
  border: 6px solid rgba(255, 255, 255, 1);
  border-top-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}



.country-select-container {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1040;
  width: 280px;
  text-align: center;
}

.bootstrap-select .dropdown-toggle {
  background: rgba(25, 25, 25, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #f5f5f5 !important;
  border-radius: 12px !important;
  padding: 8px 14px !important;
  font-weight: 500;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease-in-out;
}

.bootstrap-select .dropdown-toggle:hover,
.bootstrap-select .dropdown-toggle:focus {
  background: rgba(40, 40, 40, 0.6) !important;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.bootstrap-select .dropdown-menu {
  background: rgba(20, 20, 20, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  color: #f5f5f5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  padding: 6px 0;
  overflow-y: auto;
  max-height: 260px;
  animation: dropdownFade 0.25s ease-out;
  scrollbar-width: none;
}

.bootstrap-select .dropdown-menu,
.bootstrap-select .inner {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

.bootstrap-select .dropdown-item {
  color: #f0f0f0;
  padding: 8px 0px;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 2px 0px;
  text-align: center;
}

.bootstrap-select .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: translateX(4px);
  color: #fff !important;
}

.bootstrap-select .bs-searchbox {
  padding: 8px;
  background: rgba(20, 20, 20, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: sticky;
  top: 0;
  z-index: 10;
  border-radius: 12px 12px 0 0;
}

.bootstrap-select .bs-searchbox input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  color: #f8f8f8 !important;
  font-size: 14px !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.25s ease;
}

.bootstrap-select.open .dropdown-toggle {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.bootstrap-select .dropdown-toggle:hover {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.bootstrap-select .dropdown-toggle:hover {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.dropdown-menu.show {
  animation: dropdownFade 0.25s ease-out;
}

.bootstrap-select .bs-searchbox input:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(-10);
  }
}

/* ------------------------------------------------------------------------------------------------- */
/* MODAL */
.table> :not(caption)>*>* {
  background-color: transparent !important;
  color: white;
}

.modal> :not(caption)>*>* {
  backdrop-filter: blur(8px);
}

#pre-load {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: rgba(40, 40, 40, 1);
}

#pre-load:before {
  content: "";
  position: fixed;
  width: 60px;
  height: 60px;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid rgba(255, 255, 255, 1);
  border-top: 6px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  -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);
  }
}

.fadeOut {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 1s, opacity 1s linear;
  pointer-events: none;
}

.modal-dialog-scrollable .modal-body {
  max-height: 65vh;
}

/*-----------------------------------*/
/*CURRECNY*/
.conversion-result {
  text-align: center;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px;
  font-weight: 400;
  font-size: 1.2em;
  min-height: 30px;
}


/* ------------------------------------------------------------------------------------------------------------ */
/* WIKI MODAL */

.wiki-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  margin-top: 5px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  transition: .2s ease;
}

.wiki-item:hover {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
}

.wiki-title-text {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.wiki-summary {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #e8e8e8;
  opacity: .95;
}

.wiki-link {
  align-self: start;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: .2s ease;
}

.wiki-link:hover {
  background: rgba(255, 255, 255, 0.25);
}

.wiki-empty {
  text-align: center;
  font-size: 13px;
  opacity: .9;
}

/* ---------------------------------------------------------------------------------------- */
/*  News Panel */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  color: white;
}

.news-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.news-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 6px;
  transition: 0.25s ease;
}

.news-item:hover {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
}

.news-item strong {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 2px;
}

.news-item p {
  font-size: 12px;
  color: #ccc;
  margin: 0 0 4px;
}

.news-item a {
  align-self: start;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: .2s ease;
}

.news-item a:hover {
  background: rgba(255, 255, 255, 0.25);
}

.news-empty {
  text-align: center;
  font-size: 13px;
  opacity: 0.9;
}

/* ------------------------------------------------------------------------------------------- */
/* BUTTONS */

.easy-button-button {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    border-radius: 8px !important;
    background: rgba(25, 25, 25, 0.45) !important;
    color: #fff !important;
    backdrop-filter: blur(8px);
    font-size: 20px !important;
    transition: all 0.25s ease;
}

.easy-button-button:hover {
  background: rgba(40, 40, 40, 0.7) !important;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.leaflet-control.easy-button-container {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
