html, body {
    overflow-x: hidden; /* */
  /*   background: rgb(2,254,247);
    background: linear-gradient(315deg, rgba(2,254,247,1) 0%, rgba(3,9,32,1) 65%); */
  }

body#demo {
  background: 
      linear-gradient(
          to bottom, 
          rgba(64, 190, 182, 0.7),
          rgb(4, 38, 65) 
      ),
      url('../images/auth/city.webp'); 
  background-size: cover; 
  background-position: center;
  margin:0px;
  height: 100vh;
}

.toDemo{
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.login-box{
  z-index: 300;
}  

.dark .sidebar {
    background-color: rgba(3,9,32,.8);
    }
.dark .iq-navbar {
    background-color: rgba(3,9,32,.4);
    }
.card-body {
    background-color: rgba(3,9,32,.4);
    }

iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.boxmap {
  height: calc(100vh - 70px);
  margin-top: 3px;
  padding: 0px;
}

.map{
  padding:0px 10px;
}

.floating-filter {
    position: absolute;
    bottom: 0px; 
    left: 0px; 
    width: 100%;
    background-color: rgba(3,9,32,.8); 
    border-radius: 5px;
    text-decoration: none;
    color: rgb(255, 255, 255); 
    z-index: 10; 
    padding:0px 10px;
}

.floating-filter:hover {
    background-color: rgba(3,9,32,.4);
}

.floating-link-dashboard {
    position: absolute;
    top: 30px; 
    right: 30px; 
    background-color: rgba(3,9,32,.8);
    padding:10px;
    border-radius: 5px;
    text-decoration: none;
    color: rgb(255, 255, 255); 
    z-index: 10; 
}

.floating-link-dashboard:hover {
    background-color: rgba(3,9,32,1);
}

.floating-data {
    position: absolute;
    top: 0px; 
    right: 0px; 
    background-color: rgba(3,9,32,.2);
    padding: 4px;
    border-radius: 5px;
    text-decoration: none;
    color: rgb(255, 255, 255); 
    z-index: 10;
    width: 100%; 
    padding:2px 10px;
}

.floating-data:hover {
    background-color: rgba(3,9,32,.4);
}

#menu-filters {
    display: none; 
    transition: transform 0.3s ease, opacity 0.3s ease; 
    transform: translateY(20px); 
    opacity: 0; 
}

#menu-filters.show {
    display: block; 
    transform: translateY(0); 
    opacity: 1; 
}

#box-data {
    display: none; 
    transition: transform 0.3s ease, opacity 0.3s ease; 
    transform: translateY(-20px); 
    opacity: 0; 
}

#box-data.show {
    display: block; 
    transform: translateY(0); 
    opacity: 1; 
}

#btnFullscreen {
    font-size: 24px;
    line-height: 24px;
    cursor: pointer;
  }
  
  
  .fullscreen-icon::before {
    color:rgb(240, 240, 240);
    content: "⛶"; 
  }
  
  .exit-fullscreen-icon::before {
    color:black;
    content: "⛚";
  }
body#aigiscitylm{
  overflow: hidden;
}

 #aigiscity > .card {
    /*-webkit-box-shadow: 0 10px 30px 0 rgba(17, 38, 146, .05);
    box-shadow: 0 10px 30px 0 rgba(17, 38, 146, .05);*/
     margin-bottom: 0rem;
     margin-right: 12px; 
}

.marquee-container {
    width: 30%;
    border:1px solid #2154878a;
    padding: 8px 0;
    margin:0px 10px;
    border-radius: 4px;
  }
 
  .marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
  }
 
  .marquee-item {
    flex: 0 0 auto;
    padding: 0 12px;
    font-size: 0.85rem;
    color: #7ce1f3;
  }
 
  @keyframes marquee {
    0% {
      transform: translateX(100%);
    }
 
    100% {
      transform: translateX(-100%);
    }
  }

  .marquee-container:hover .marquee-content {
    animation-play-state: paused;
  }

  .loginbgbox {
    transform: rotate(-15deg);
    opacity: 0.15;
    scale: 1.5;
    position:absolute;
    bottom:0px;
    right:40%;
    z-index: 1;
  }

  @media (max-width: 1199.98px) {
    .marquee-container {
        display: none;
    }

    .container-fluid.navbar-inner{
        justify-content: flex-end;
    }
}

@media(max-width: 991.98px) {
    .loginbgbox {
        right: 10%;
        top: -50px;
        scale: 1.2;
    }
}


.offcanvas-backdrop {
  display: none !important; 
}

#menu {
  position: absolute;
  background: #efefef;
  padding: 3px;
  font-family: 'Open Sans', sans-serif;
  z-index: 1000;
  border-radius: 8px;
}

.overlay {
  position: absolute;
  top: 10px;
  right: 100px;
  z-index: 1005;
}

.overlay button {
  font:
      600 12px/20px 'Helvetica Neue',
      Arial,
      Helvetica,
      sans-serif;
  background-color: #3386c0;
  color: #fff;
  display: inline-block;
  margin: 0;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 3px;
}

.overlay button:hover {
  background-color: #4ea0da;
}

.overlay button:disabled {
  background: #f5f5f5;
  color: #c3c3c3;
}
#offcanvasRight  {
background-color: 222738f7;

}
#offcanvasRight .offcanvas-body-data {

  margin-bottom: 20px;
 }

 #offcanvasRight .offcanvas-body-data h5 {
  font-size: .85em;
  margin: 0px;
  color:#7ce1f3;
 }
#offcanvasRight .offcanvas-body-data p {
 font-size: .75em;
 margin: 0px;
}

#offcanvasRight .offcanvas-body .d-activity  {
  margin-top: 20px;
 }

#offcanvasRight .offcanvas-body .d-activity .apexcharts-title-text  {
  font-size: .85em;
  color:#7ce1f3;
 }

.popupsVideo .mapboxgl-popup-content {
  background:#222738f7;
  width: 340px;
 }

 /* ícono movil */
 .movil {
  background-image: url('../images/icons/police-car.svg');
  background-size: contain;
  background-position-x: 50%;
  background-repeat: no-repeat;
  background-color: #e5f50d80;
  border-radius: 70%; 
  cursor: pointer;
  width: 40px;
  height: 30px;
}

.ambulancia {
  background-image: url('../images/icons/icon-medical.svg');
  background-size: contain;
  background-position-x: 50%;
  background-repeat: no-repeat;
  background-color: #e5f50d80;
  border-radius: 70%; 
  cursor: pointer;
  width: 40px;
  height: 30px;
}

.robot_1 {
  background-image: url('../images/icons/icon-robot.svg');
  background-size: contain;
  background-position-x: 50%;
  background-repeat: no-repeat;
  background-color: #0d85f5b2;
  border-radius: 70%; 
  cursor: pointer;
  width: 40px;
  height: 30px;
}

.alert {
  background-image: url('../images/icons/icon-alert.svg');
  background-size: contain;
  background-position-x: 50%;
  background-repeat: no-repeat;
  /* background-color: #f50d0d80; */
  border-radius: 70%; 
  cursor: pointer;
  width: 40px;
  height: 30px;
}
.alert-resuelto {
  background-image: url('../images/icons/icon-alert-resuelto.svg');
  background-size: contain;
  background-position-x: 50%;
  background-repeat: no-repeat;
  /* background-color: #f50d0d80; */
  border-radius: 70%; 
  cursor: pointer;
  width: 40px;
  height: 30px;
}

.dron {
  background-image: url('../images/icons/icon-drone.svg');
  background-size: contain;
  background-position-x: 50%;
  background-repeat: no-repeat;
  background-color: #e5f50d80;
  border-radius: 70%; 
  cursor: pointer;
  width: 40px;
  height: 30px;
}

.police {
  background-image: url('../images/icons/icon-police.svg');
  background-size: contain;
  background-position-x: 50%;
  background-repeat: no-repeat;
  background-color: #0d85f5b2;
  border-radius: 70%; 
  cursor: pointer;
  width: 40px;
  height: 30px;
}

.btnLocate {
  font-size: 16px;
  line-height: 16px;
  cursor: pointer;
  border:none;
  background-color: transparent;
}

.locate-icon::before {
  color: rgba(245, 245, 245, 0.963);
}

.btnBlockchain {
  font-size: 16px;
  line-height: 16px;
  cursor: pointer;
  border:none;
  background-color: transparent;
}

.blockchain-icon::before {
  color: rgba(245, 245, 245, 0.963);
}

.btnStatus {
  font-size: 16px;
  line-height: 16px;
  cursor: pointer;
  border:none;
  background-color: transparent;
}

.status-icon i {
  color: rgba(26, 212, 85, 0.872);
}

.status-icon-red i {
  color: rgba(246, 23, 23, 0.872);
}
.status-icon-green i {
  color: rgba(26, 212, 85, 0.872);
}

.btnInfo {
  font-size: 16px;
  line-height: 16px;
  cursor: pointer;
  border:none;
  background-color: transparent;
}

.info-icon::before {
  color: rgba(245, 245, 245, 0.963);
}

i {
  color: rgba(245, 245, 245, 0.763);
}


@keyframes hoverEffect {
  0%, 100% {
      transform: translateY(0px) rotateX(30deg);
  }
  50% {
      transform: translateY(-5px) rotateX(30deg);
  }
}

@keyframes fade {
    from { opacity: 1.0; }
    50% { opacity: 0.4; }
    to { opacity: 1.0; }
}

.blink {
    animation:fade 3000ms infinite;
    -webkit-animation:fade 3000ms infinite;
}

.flying {
  animation: hoverEffect 2s infinite ease-in-out; /* Movimiento suave */
}

.chat-movil {
  font-size: medium;
  color:white;
}

.popupAlert .mapboxgl-popup-content {
  background:#222738f7;
  width: 340px;
 }
.chatmovil .mapboxgl-popup-content {
  background:#222738f7;
  width: 340px;
 }

 .mapboxgl-popup-tip {
 /*  transform: translateY(-12px); */
 border-bottom-color:#222738f7 !important;
}
.action-movil{
  display:flex;
  width: 100%;
  align-items:center;
  justify-content: space-between;
}
a.linkPopup{
  border:1px solid #ffffffab;
  border-radius: 2px;
  padding:2px;
  display:block;
  width: 26px;
  height: 26px;
  margin:1px;
}
#offcanvasRight  {
  background-color: 222738f7;
  
  }


  .dropdown-item.active {
    color: rgb(15, 194, 200) !important;
    background-color: transparent !important;
    font-weight: bold;
}


.dropdown-item.inactive {
    color: gray !important;
}

.container-inner-alert{
  padding:6px;
  border-radius: 4px;
  border:1px solid #7ce1f397;
  margin:3px;
}

.container-inner-alert .timer {
  font-size: 2em;
  color:#7ce1f3;

}

.mapboxgl-popup-close-button:hover {
  color: rgb(15, 206, 187) !important;
}

.mapboxgl-popup-close-button {
  color: rgb(255 255 255 / 100%) !important;
}

input.dropdown-delito {
  width: 25px;
  height: 15px;
}
.dropdown-delito[value="Asaltos"]:checked {
  accent-color: rgba(255,0,0,0.8);
}

.dropdown-delito[value="Delitos sexuales"]:checked {
  accent-color: rgba(255, 166, 0, 0.8);
}

.dropdown-delito[value="Hurtos"]:checked {
  accent-color: rgba(0, 68, 255, 0.8);
}

.dropdown-delito[value="Roba a casa habitación"]:checked {
  accent-color: rgba(153, 0, 255, 0.8);
}

.dropdown-delito[value="Robo a mano armada"]:checked {
  accent-color: rgba(255, 0, 179, 0.8);
}

.dropdown-delito[value="Robo de vehículos"]:checked {
  accent-color: rgba(0, 255, 213, 0.8);
}

.dropdown-delito[value="Terrorismo"]:checked {
  accent-color: rgba(255, 0, 76, 0.8);
}

.dropdown-delito[value="Trafico de drogas"]:checked {
  accent-color: rgba(165, 137, 47, 0.75);
}

.dropdown-delito[value="Vandalismo"]:checked {
  accent-color: rgba(19, 18, 18, 0.92);
}

.dropdown-delito[value="Violencia doméstica"]:checked {
  accent-color: rgba(251, 255, 0, 0.9);
}


/* Sidebar */
.event-sidebar {
  position: fixed;
  top: 0;
  right: -400px; /* Oculto fuera de la pantalla */
  width: 400px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  z-index: 1050;
  overflow-y: auto;
}

.event-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
}

.event-sidebar-body {
  padding: 15px;
}

.event-sidebar.open {
  right: 0;
}

/* Sidebar para el mapa */
.event-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  z-index: 1050;
  overflow-y: auto;
}

.event-sidebar.open {
  right: 0; 
}

.modal-content.bg-dark {
  background-color: #343a40; /* Fondo oscuro */
  color: #ffffff; /* Texto blanco */
}

.event-sidebar.bg-dark {
  background-color: #343a40; /* Fondo oscuro */
  color: #ffffff; /* Texto blanco */
}

.event-sidebar-header {
  border-bottom: 1px solid #6c757d; /* Borde gris */
}

.btn-close-white {
  filter: invert(1); /* Cambiar color del botón de cierre */
}
#btn-marker-drone {
  --bs-btn-hover-color: #c11717;
}

#level-control {
  position: absolute;
  top: 10px; 
  left: 50px;
  z-index: 1;
  background: white;
  padding: 6px;
  border-radius: 4px;
  font-family: sans-serif;
}

#popup-content {
  height: 95% !important;
}

.indoor-popup {
  display: none;
  position: absolute;
  top: 5%;
  left: 5%;
  width: 80vw;
  height: 80vh;
  background-color: rgba(187, 180, 180, 0.897);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  padding: 20px;
  overflow: auto;
  border-radius: 8px;                          
}

.basemaps{
  position: absolute;
  padding: 1px;
  font-family: 'Open Sans', sans-serif;
  z-index: 1000;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  left: 2px;
  top: 2px;
}

.basemaps img {
  height: 40px;
  max-width: 40px;
  border-radius: 8px;
}

.basemaps button {
  background:#eeebf0;
  border-radius: 8px; 
  border: 2px solid #eeebf0;
  cursor: pointer;
  padding: 0;
}

.menu {
  display: none;
}

.basemaps:hover .menu { 
      display: block; 
}

input[type="image"] {
  width: 40px;
  height: 40px; 
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.486); 
  border-radius: 8px; 
}

input[type="image"]:hover {
  border: 1px solid #7ce1f3; 
}

.distance-container {
    position: absolute;
    top: 10px;
    right: 50px;
    z-index: 1;
}

.distance-container > * {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    display: block;
    margin: 0;
    padding: 5px 10px;
    border-radius: 3px;
}

/* EStilos del panel de Ruteo*/

.control-panel {
    position: absolute;
    top: 10px;
    right: 45px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    max-width: 300px;
    z-index: 1;
}
#points-list {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}
.point-item {
    padding: 5px;
    border-bottom: 1px solid #eee;
}
button {
    margin-top: 10px;
    padding: 8px;
    background: #3887be;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
button:hover {
    background: #2a65a0;
}

.marker-label {
    position: absolute;
    top: -25px; 
    left: 50%;
    transform: translateX(-50%);
    background-color: #e02a46;
    color: white;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}



.fullscreen-iframe-container {
  height: calc(100vh - 115px - 56px) !important; 
  min-height: 800px;
}
.fullscreen-iframe-container .card,
.fullscreen-iframe-container .card-body {
  height: 100%;
}
.fullscreen-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


/* styles monitoring cameras*/
#layout-buttons {
  display: flex;
  gap: 10px;
    margin-left:5px;
    align-items: end;
    color:white
}

.layout-btn {
  width: 40px;
  height: 40px;
  background: #333;
  border: none;
  color:white;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;

}

.layout-btn.active {
  background: #d9dadce9;
}

.iconbtn {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #ffffff25;
  border-radius: 5px;
}
 /* */
.icon-1 {
  background-image: url('../images/dashboard/bt-layout-1.svg');
  background-size: cover;
}

.icon-4 {
  background-image: url('../images/dashboard/bt-layout-4.svg');
  background-size: cover;
}

.icon-9 {
  background-image: url('../images/dashboard/bt-layout-9.svg');
  background-size: cover;
}

.icon-featured {
  background-image: url('../images/dashboard/bt-layout-f.svg');
  background-size: cover;
}

.main-video-container {
  display: grid;
  gap:0px;
  padding: 0px;
  margin: 0 auto;
}

.video-item {
  position: relative;
  background: #333;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  transition: transform 0.2s;
}

.video-item:hover {
  transform: scale(1.02);
  z-index: 10;
}

.video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
  gap: 10px;
}

.video-item:hover .video-overlay {
  opacity: 1;
}

.video-overlay button {
  background: rgba(0, 123, 255, 0.9);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.video-overlay button:hover {
  background: #007bff;
} */

/* Featured Layout */
.featured {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.featured .video-item {
  width: 100%;
}

/* .featured .video-item:not(:first-child) {
  width: calc(100% / 3);
  aspect-ratio: 4 / 3; 
} */

/* Sidebar Right*/
#sidebarRight {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100vh;
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    background: #181818;
    z-index: 9999;
    transition: right 0.3s;
}
#sidebarRight.open {
    right: 0 !important;
    display: flex !important;
}
#sidebar-content-right {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
}
#sidebar-map-right-video {
    width: 100%;
    margin: 0;
    border-radius: 0px;
    min-height: 280px;
    height: 280px;
    position:absolute;
    bottom: 0px;
}

.sidebar-header-right {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#close-sidebar-right {
  background: none;
  color: white;
  border: none;
  font-size: 1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}
.material-icons{
  font-size: 1rem;
  color: white;
  cursor: pointer;
  width: 20px;
  height:20px;
}

.prioridad-alta { color: #e53935; font-weight: bold; text-transform: capitalize; }
.prioridad-media { color: #fbc02d; font-weight: bold; text-transform: capitalize; }
.prioridad-baja { color: #43a047; font-weight: bold; text-transform: capitalize;}

.logo-title {
    display: none;
}

.sidebar-hover:hover .logo-title {
    display: block;
    margin-left: 4px;
}

/* Ocultar UI para la página de monitoreo */
body.hide-interface .sidebar, body.hide-interface .footer,
body.hide-interface .position-relative.iq-banner {
    display: none;
}

body.hide-interface .main-content {
    margin-left: 0;
    padding-top: 0;
}

        #basic-table2 {
            height: auto;
            overflow-y: auto;
            display:block;
            width: 100%;
            
        }
        #basic-table2 th, #basic-table2 td {
            width: 100%;
            padding: 0; 
        }

        .grid-container {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            grid-gap: 10px;
        }
        .grid-item {
            position: relative;
        }
        .grid-item .zone-1 {
            background-color: #fff;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        .grid-item .zone-2 iframe {
            width: 100%;
            height: 200px;
            border: none;
        }
        .video-checkbox {
            position: absolute;
            top: 10px;
            left: 10px;
            display: none; 
        }

        .grid-item:hover .video-checkbox {
            display: block; 
        }
        
        .video-thumb {
            max-height: 180px;
        }

        .grid-item {
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .grid-item iframe {
            width: 180%;
            height: 180%;
        }
        #youtube-overlay {
            overflow: hidden;
            min-height: 22rem;
            align-items: center;
        }
        #youtube-overlay iframe {
            width: 100%;
            height: 180%;
        }
        @media screen and (max-width: 800px) {
            .grid-item {
                width: 100%;
            }
            .grid-container {
                display: flex;
                flex-wrap: wrap;
            }
        }


.avatar-50 {
    height: 20px !important;
    width: 20px !important;
    min-width: 20px !important;
}

    .alert-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      display: inline-block;
      margin-right: 8px;
    }
    .dot-danger { background-color: #dc3545; }
    .dot-warning { background-color: #ffc107; }
    .dot-success { background-color: #28a745; }
    .dot-info { background-color: #0d6efd; }
    .dot-secondary { background-color: #6c757d; }

    /* Fondo suave para cada alerta */
    .alert-item {
      padding: 12px 16px;
      border-radius: 8px;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .alert-danger-bg { background-color: rgba(220, 53, 69, 0.1); }
    .alert-warning-bg { background-color: rgba(255, 193, 7, 0.1); }
    .alert-success-bg { background-color: rgba(40, 167, 69, 0.1); }
    .alert-info-bg { background-color: rgba(13, 110, 253, 0.1); }
    .alert-secondary-bg { background-color: rgba(108, 117, 125, 0.1); }

    /* Texto secundario más pequeño */
    .alert-subtext {
      font-size: 0.85rem;
      color: var(--bs-secondary-color);
    }

    .card .card-body .iq-media-1 {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: -webkit-inline-flex;
    display: inline-flex
;
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-background-size: cover;
    background-size: cover;
    -webkit-border-radius: .125rem;
    border-radius: .125rem;
}