body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-color: #000;
}

#map,
#satMap {
  height: 55vh;
}

#viewToggle,
#satProvider {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
  margin-left: 8px;
}

#satProvider {
  right: 150px;
}

.gm-style .gm-style-iw-tc::after {
  background: #000000;
  color: #fff;
}

#controls {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  height: 5vh;
  width: 100%;
  position: relative;
}
.wrap-swiper {
  width: 100%;
  height: 40vh;
}
#yearSelect {
    min-width: 200px;
    background: #000;
    color: #fff;
    border: 1px solid #ff6a00;
    padding: 3px;
}

.noUi-connect {
    background: #000000;
}

#slider {
  flex: 1;
  min-width: 200px;
}

#slider-values {
  min-width: 200px;
  text-align: center;
}

.swiper {
  width: 100%;
  padding: 20px 0;
}

.swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9em;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border: 2px solid #ddd;
  border-radius: 4px;
}

.swiper-button-next,
.swiper-button-prev {
  color: #0066cc;
}

#svModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1002;
  align-items: center;
  justify-content: center;
}

#svModal .container {
  position: relative;
  width: 80%;
  max-width: 800px;
  height: 80%;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

#svClose {
  position: absolute;
  top: 8px;
  right: 12px;
  background: #f44336;
  color: #fff;
  border: none;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  z-index: 1003;
}

#svContainer {
  width: 100%;
  height: 100%;
}

/* Contenedor del loader a pantalla completa */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease;
  /* transición para fade-out */
}

#loader.fade-out {
  opacity: 0;
}

/* Ajustes para el SVG de loader */
#loader svg {
  width: 15vw;
  max-width: 200px;
}

/* Animación del trazo */
.path {
  fill: transparent;
  stroke: rgb(255, 255, 255);
  /* puedes cambiar a '#fff' si prefieres blanco */
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  animation: drawStroke 2s ease forwards, fillIn 1s ease 2s forwards;
}

@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes fillIn {
  from {
    fill: transparent;
  }

  to {
    fill: #fff;
  }
}

/* --- App container con fade-in --- */
#app {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
  /* transición para fade-in */
}
a {
  color: #000;
}

#logoutBtn {
  background-color: transparent;
  border: 0;
  border-style: outset;
  color: #fff;
  padding: 0;
}

#pdfModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1002;
  align-items: center;
  justify-content: center;
}

#pdfModal .container {
  position: relative;
  width: 80%;
  max-width: 800px;
  height: 80%;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

#pdfViewer {
  width: 100%;
  height: 100%;
}

#pdfClose {
  position: absolute;
  top: 8px;
  right: 12px;
  background: #ff6a00;
  color: #000;
  border: none;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  z-index: 1003;
  border-radius: 50%;
}

#imgModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1002;
  align-items: center;
  justify-content: center;
}

#imgModal .container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  height: auto;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#imgClose {
  position: absolute;
  top: 8px;
  right: 12px;
  background: #ff6a00;
  color: #000;
  border: none;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  z-index: 1003;
  border-radius: 50%;
}

#imgBack {
  position: absolute;
  top: 8px;
  left: 12px;
  background: none;
  color: #000;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 1003;
}

#imgModal .img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 24px;
  z-index: 1003;
}

#imgPrev {
  left: 10px;
}
#imgNext {
  right: 10px;
}

#imgViewer {
  max-width: 100%;
  max-height: 100%;
}
#app.visible {
  visibility: visible;
  opacity: 1;
  width: 100vw;
  height: 100vh;
  display: block;
}

/* --- Login overlay --- */
#loginOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

#loginOverlay form {
  padding: 20px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 320px;
}

#loginError {
  color: #fff;
  display: none;
  text-align: center;
}

.wrap {
  position: relative;
  height: 100%;
  width: 100%;
}
label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 1rem 0 1rem;
}
.layout {
  z-index: 1;
}
.layout .header {
  display: flex;
  align-items: center;
  padding: 20px;
}
.layout .content {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.layout .footer {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 0;
  z-index: 1;
  font-size: 1.1rem;
}

.footer {
  background-color: #ff6a00;
}

.footer small {
  color: #000;
}

.sidebar {
  color: #ffffff;
  overflow-x: hidden !important;
  position: relative;
}
.sidebar::-webkit-scrollbar-thumb {
  border-radius: 4px;
}
.sidebar:hover::-webkit-scrollbar-thumb {
  background-color: #1a4173;
}
.sidebar::-webkit-scrollbar {
  width: 6px;
  background-color: #0c1e35;
}
.sidebar .image-wrapper {
  overflow: hidden;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: none;
}
.sidebar .image-wrapper > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.sidebar.has-bg-image .image-wrapper {
  display: block;
}
.sidebar .sidebar-layout {
  height: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #000000;
  z-index: 2;
}
.sidebar .sidebar-layout .sidebar-header {
  height: 100px;
  min-height: 100px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.sidebar .sidebar-layout .sidebar-header > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sidebar .sidebar-layout .sidebar-content {
  flex-grow: 1;
  padding: 10px 0;
}
.sidebar .sidebar-layout .sidebar-footer {
  height: 230px;
  min-height: 230px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.sidebar .sidebar-layout .sidebar-footer > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@keyframes swing {
  0%,
  30%,
  50%,
  70%,
  100% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(10deg);
  }
  40% {
    transform: rotate(-10deg);
  }
  60% {
    transform: rotate(5deg);
  }
  80% {
    transform: rotate(-5deg);
  }
}
.layout .sidebar .menu ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.layout .sidebar .menu .menu-header {
  font-weight: 600;
  padding: 10px 25px;
  font-size: 0.8em;
  letter-spacing: 2px;
  transition: opacity 0.3s;
  opacity: 1;
}
.layout .sidebar .menu .menu-item a {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 20px;
  color: #ffffff;
}
.layout .sidebar .menu .menu-item a .menu-icon {
  font-size: 1.2rem;
  width: 35px;
  min-width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  display: inline-block;
  margin-right: 10px;
  border-radius: 2px;
  transition: color 0.3s;
}
.layout .sidebar .menu .menu-item a .menu-icon i {
  display: inline-block;
}
.layout .sidebar .menu .menu-item a .menu-title {
  font-size: 0.9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-grow: 1;
  transition: color 0.3s;
}
.layout .sidebar .menu .menu-item a .menu-prefix,
.layout .sidebar .menu .menu-item a .menu-suffix {
  display: inline-block;
  padding: 5px;
  opacity: 1;
  transition: opacity 0.3s;
}
.layout .sidebar .menu .menu-item a:hover .menu-title {
  color: #dee2ec;
}
.layout .sidebar .menu .menu-item a:hover .menu-icon {
  color: #dee2ec;
}
.layout .sidebar .menu .menu-item a:hover .menu-icon i {
  animation: swing ease-in-out 0.5s 1 alternate;
}
.layout .sidebar .menu .menu-item a:hover::after {
  border-color: #dee2ec !important;
}
.layout .sidebar .menu .menu-item.sub-menu {
  position: relative;
}
.layout .sidebar .menu .menu-item.sub-menu > a::after {
  content: "";
  transition: transform 0.3s;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  width: 5px;
  height: 5px;
  transform: rotate(-45deg);
}
.layout .sidebar .menu .menu-item.sub-menu > .sub-menu-list {
  padding-left: 20px;
  display: none;
  overflow: hidden;
  z-index: 999;
}
.layout .sidebar .menu .menu-item.sub-menu.open > a {
  color: #dee2ec;
}
.layout .sidebar .menu .menu-item.sub-menu.open > a::after {
  transform: rotate(45deg);
}
.layout .sidebar .menu .menu-item.active > a .menu-title {
  color: #dee2ec;
}
.layout .sidebar .menu .menu-item.active > a::after {
  border-color: #dee2ec;
}
.layout .sidebar .menu .menu-item.active > a .menu-icon {
  color: #dee2ec;
}
.layout .sidebar .menu > ul > .sub-menu > .sub-menu-list {
  background-color: #0b1a2c;
}
.layout .sidebar .menu.icon-shape-circle .menu-item a .menu-icon,
.layout .sidebar .menu.icon-shape-rounded .menu-item a .menu-icon,
.layout .sidebar .menu.icon-shape-square .menu-item a .menu-icon {
  background-color: #0b1a2c;
}
.layout .sidebar .menu.icon-shape-circle .menu-item a .menu-icon {
  border-radius: 50%;
}
.layout .sidebar .menu.icon-shape-rounded .menu-item a .menu-icon {
  border-radius: 4px;
}
.layout .sidebar .menu.icon-shape-square .menu-item a .menu-icon {
  border-radius: 0;
}
.layout
  .sidebar:not(.collapsed)
  .menu
  > ul
  > .menu-item.sub-menu
  > .sub-menu-list {
  visibility: visible !important;
  position: static !important;
  transform: translate(0, 0) !important;
}
.layout .sidebar.collapsed .menu > ul > .menu-header {
  opacity: 0;
}
.layout .sidebar.collapsed .menu > ul > .menu-item > a .menu-prefix,
.layout .sidebar.collapsed .menu > ul > .menu-item > a .menu-suffix {
  opacity: 0;
}
.layout .sidebar.collapsed .menu > ul > .menu-item.sub-menu > a::after {
  content: "";
  width: 5px;
  height: 5px;
  background-color: currentcolor;
  border-radius: 50%;
  display: inline-block;
  position: absolute;
  right: 10px;
  top: 50%;
  border: none;
  transform: translateY(-50%);
}
.layout .sidebar.collapsed .menu > ul > .menu-item.sub-menu > a:hover::after {
  background-color: #dee2ec;
}
.layout .sidebar.collapsed .menu > ul > .menu-item.sub-menu > .sub-menu-list {
  transition: none !important;
  width: 200px;
  margin-left: 3px !important;
  border-radius: 4px;
  display: block !important;
}
.layout .sidebar.collapsed .menu > ul > .menu-item.active > a::after {
  background-color: #dee2ec;
}
.layout .sidebar.has-bg-image .menu.icon-shape-circle .menu-item a .menu-icon,
.layout .sidebar.has-bg-image .menu.icon-shape-rounded .menu-item a .menu-icon,
.layout .sidebar.has-bg-image .menu.icon-shape-square .menu-item a .menu-icon {
  background-color: rgba(11, 26, 44, 0.6);
}
.layout
  .sidebar.has-bg-image:not(.collapsed)
  .menu
  > ul
  > .sub-menu
  > .sub-menu-list {
  background-color: rgba(11, 26, 44, 0.6);
}
.layout.rtl .sidebar .menu .menu-item a .menu-icon {
  margin-left: 10px;
  margin-right: 0;
}
.layout.rtl .sidebar .menu .menu-item.sub-menu > a::after {
  transform: rotate(135deg);
}
.layout.rtl .sidebar .menu .menu-item.sub-menu > .sub-menu-list {
  padding-left: 0;
  padding-right: 20px;
}
.layout.rtl .sidebar .menu .menu-item.sub-menu.open > a::after {
  transform: rotate(45deg);
}
.layout.rtl .sidebar.collapsed .menu > ul > .menu-item.sub-menu a::after {
  right: auto;
  left: 10px;
}
.layout.rtl
  .sidebar.collapsed
  .menu
  > ul
  > .menu-item.sub-menu
  > .sub-menu-list {
  margin-left: -3px !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  font-family: "Poppins", sans-serif;
  color: #ffffff;
  font-size: 0.9rem;
}

a {
  text-decoration: none;
}

@media (max-width: 576px) {
  #btn-collapse {
    display: none;
  }

  .hide{
    display: none;
  }
  .noUi-target{
    display: none;
  }

  #slider-values{
    visibility: hidden;
  }

#map,
#satMap {
  height: 60vh;
}

#loader svg {
    width: 35vw;
    max-width: 200px;
}

  /* Hide date slider and its labels on small screens */
  #controls label:nth-of-type(2),
  #slider,
  #slider-values {
    display: none;
  }

}


#btn-toggle {
    background: #ff6a00;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}




.layout .sidebar .pro-sidebar-logo {
  display: flex;
  align-items: center;
}
.layout .sidebar .pro-sidebar-logo > div {
  width: 35px;
  min-width: 35px;
  height: 35px;
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: white;
  font-size: 24px;
  font-weight: 700;
  background-color: #ff8100;
  margin-right: 10px;
}
.layout .sidebar .pro-sidebar-logo > h5 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 20px;
  line-height: 30px;
  transition: opacity 0.3s;
  opacity: 1;
}
.pro-sidebar-logo img {
  width: 100%;
  position: relative;
  height: auto;
}
#evidenciaList {
  column-count: 2;
}
.menu-item img {
  width: 100%;
  height: auto;
  position: relative;
}
#evidenciaList .menu-item a {
  padding: 0;
}

.collapsed .pro-sidebar-logo .logo{
    display: none;
}

.collapsed .iso{
    display: block;
}

img.iso{
    display: none;
}
.layout .sidebar .footer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8em;
  padding: 20px 0;
  border-radius: 8px;
  width: 180px;
  min-width: 190px;
  margin: 0 auto;
  background-color: #ff6a00;
  color: #000;
}
.layout .sidebar .footer-box img.react-logo {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}
.layout .sidebar .footer-box a {
  color: #fff;
  font-weight: 600;
  margin-bottom: 10px;
}
.layout .sidebar .sidebar-collapser {
  transition: left, right, 0.3s;
  position: fixed;
  left: 260px;
  top: 40px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ff6a00;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  transform: translateX(50%);
  z-index: 111;
  cursor: pointer;
  color: white;
  box-shadow: 1px 1px 4px #0c1e35;
}
.layout .sidebar.collapsed .pro-sidebar-logo > h5 {
  opacity: 0;
}
.layout .sidebar.collapsed .footer-box {
  display: none;
}
.layout .sidebar.collapsed .sidebar-collapser {
  left: 60px;
}
.layout .sidebar.collapsed .sidebar-collapser i {
  transform: rotate(180deg);
}

.badge {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  color: #fff;
  background-color: #6c757d;
}
.badge.primary {
  background-color: #ab2dff;
}
.badge.secondary {
  background-color: #079b0b;
}

.sidebar-toggler {
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 999;
}

.social-links a {
  margin: 0 10px;
  color: #3f4750;
}

#masterKeyInput {
  margin-top: 1rem;
  height: 2rem;
  background-color: transparent;
  border: 1px solid #ff6a00;
  color: #fff;
  padding: 1rem;
}

.btn {
  background-color: #ff6a00;
  color: #000;
  height: 2rem;
  border: 1px solid #ff6a00;
  text-transform: uppercase;
}

.btn:focus-visible {
  outline: 4px dashed darkorange;
}

.swiper-button-next,
.swiper-button-prev {
  background-color: #000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 0.1rem;
}

.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
  content: "prev";
  font-size: 19px;
  color: #fff;
  font-weight: 600;
}

.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
  content: "next";
}

.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
  content: "next";
  font-size: 19px;
  color: #fff;
  font-weight: bold;
}

.layout .footer {
  height: 50px;
  min-height: 50px;
}
