@import url("./animations/animate.css");


body[data-sidebar-color="dark"] .left-side-menu {
    /* background-color: rgb(245, 245, 245); */
    background-color: rgb(42, 48, 66);
    /* #313844; */
    box-shadow: none;
}

body[data-sidebar-color="dark"] .navbar-custom {
    background-color: #ebeff2 !important;
}

body[data-sidebar-color="dark"] .logo-box {
    background-color: rgb(245, 245, 245);
    /* background-color: rgb(42, 48, 66); */
}

.tag_top {
    position: absolute;
    bottom: 20px;
    background: #ffffff;
    width: 200px;
    border-bottom-right-radius: 25px;
    border-top-right-radius: 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 5px 10px 10px -5px rgba(0, 0, 0, 0.36);
}

.shadow-drop-2-center {
    -webkit-animation: bounce-in-left 1.1s both;
    animation: bounce-in-left 1.1s both;

    /* -webkit-animation: wobble-hor-bottom 1.8s both;
    animation: wobble-hor-bottom 1.8s both; */
}



.modal.fade.modal-slide-right.show .modal-dialog {
    -ms-transform: translate(0, 0);
    transform: translate3d(0, 0, 0);
}

.modal.fade.modal-slide-right .modal-dialog {
    position: absolute;
    right: 0;

    width: 100%;
    height: 100%;
    margin: 0;

    -ms-transform: translate(100%, 0);
    transform: translate3d(100%, 0, 0);
}

.modal.fade.modal-slide-right .modal-dialog .modal-content-wrapper {
    height: 100%;
}

.modal.fade.modal-slide-right .modal-dialog .modal-content {
    height: 100%;
}

.modal.fade.modal-slide-right .modal-content {
    border-radius: 0;
}

@media (max-width: 767.98px) {
    .modal.fade.modal-slide-right .modal-dialog {
        width: 100%;
    }
}


/**
* Google Maps
*/


.gm-style .controls {
    font-size: 28px;
    /* this adjusts the size of all the controls */
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
    box-sizing: border-box;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 300;
    height: 1em;
    margin: 6px;
    text-align: center;
    user-select: none;
    padding: 2px;
    width: 1em;
}

.gm-style .controls button {
    border: 0;
    background-color: white;
    color: rgba(0, 0, 0, 0.6);
}

.gm-style .controls button:hover {
    color: rgba(0, 0, 0, 0.9);
}

.gm-style .controls.zoom-control {
    display: flex;
    flex-direction: column;
    height: auto;
}

.gm-style .controls.zoom-control button {
    font: 0.85em Arial;
    margin: 1px;
    padding: 0;
}

.gm-style .controls.maptype-control {
    display: flex;
    flex-direction: row;
    width: auto;
}

.gm-style .controls.maptype-control button {
    display: inline-block;
    font-size: 0.5em;
    margin: 0 1px;
    padding: 0 6px;
}

.gm-style .controls.maptype-control.maptype-control-is-map .maptype-control-map {
    font-weight: 700;
}

.gm-style .controls.maptype-control.maptype-control-is-satellite .maptype-control-satellite {
    font-weight: 700;
}

.gm-style .controls.fullscreen-control button {
    display: block;
    font-size: 1em;
    height: 100%;
    width: 100%;
}

.gm-style .controls.fullscreen-control .fullscreen-control-icon {
    border-style: solid;
    height: 0.25em;
    position: absolute;
    width: 0.25em;
}

.gm-style .controls.fullscreen-control .fullscreen-control-icon.fullscreen-control-top-left {
    border-width: 2px 0 0 2px;
    left: 0.1em;
    top: 0.1em;
}

.gm-style .controls.fullscreen-control.is-fullscreen .fullscreen-control-icon.fullscreen-control-top-left {
    border-width: 0 2px 2px 0;
}

.gm-style .controls.fullscreen-control .fullscreen-control-icon.fullscreen-control-top-right {
    border-width: 2px 2px 0 0;
    right: 0.1em;
    top: 0.1em;
}

.gm-style .controls.fullscreen-control.is-fullscreen .fullscreen-control-icon.fullscreen-control-top-right {
    border-width: 0 0 2px 2px;
}

.gm-style .controls.fullscreen-control .fullscreen-control-icon.fullscreen-control-bottom-left {
    border-width: 0 0 2px 2px;
    left: 0.1em;
    bottom: 0.1em;
}

.gm-style .controls.fullscreen-control.is-fullscreen .fullscreen-control-icon.fullscreen-control-bottom-left {
    border-width: 2px 2px 0 0;
}

.gm-style .controls.fullscreen-control .fullscreen-control-icon.fullscreen-control-bottom-right {
    border-width: 0 2px 2px 0;
    right: 0.1em;
    bottom: 0.1em;
}

.gm-style .controls.fullscreen-control.is-fullscreen .fullscreen-control-icon.fullscreen-control-bottom-right {
    border-width: 2px 0 0 2px;
}

/**
*
* Tracking Maps 
*
*/

.tracking-maps-card {
    position: absolute;
    width: 420px;
    padding: 0 !important;
    margin: 0 !important;
    left: 1%;
    top: 10%;
    border-radius: 25px;
    background: #007bff;
    z-index: 2003 !important;
}

.tracking-maps-card .card-body {
    padding: 0 !important;
    height: 75vh !important;
    overflow: scroll;
}

.active-card-maps {
    background-color: #f1fff3;
    border-left: 5px solid #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

.floating-card-maps {
    display: none;
    position: absolute;
    z-index: 2003;
    margin: 25px;
    background: #fff;
    border-radius: 2003px;
    box-shadow: 0px 0px 50px 1px #000;
}


.floating-card-maps.active {
    display: block;
}

 

.minimize-card-maps {
    display: none;
}

@media (max-width: 768px) {
 
  

    .tracking-maps-card {
        width: 90%;
        height: 500px;
        left: 5%;
        top: 50px;
    }
}


/**
*
* Tracking History
*
*/

.timeline-history {
    position: relative;
    margin: 2rem auto;
    padding-left: 40px;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 15px;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-history::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: #ddd;
}

.timeline-history-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-history-icon {
    position: absolute;
    left: -31px;
    top: 0px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 0.9rem;
}

.timeline-history-card {
    margin-left: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
}

.timeline-history-time {
    font-size: 0.85rem;
    color: #555;
    font-weight: 600;
}

.timeline-history-title {
    font-weight: 600;
    margin-left: 6px;
}

.timeline-history-meta {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
}

.timeline-history-detail {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #333;
}


/**
*
*PopUp del Marker
*/

.popup-info {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 0.9rem;
}

.popup-container {
  position: absolute;
  display: inline-block;
}

.popup-bubble-anchor {
  position: absolute;
  width: 100%;
  bottom: 8px;
  left: 0;
}

.popup-bubble {
  position: absolute;
  background: white;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -100%);
  white-space: nowrap;
  pointer-events: none;
}

.popup-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}



/**
*
* DVLICON para LeafLet
*
*/

.truck-label-container {
  pointer-events: none; /* no bloquea clics */
}

.truck-label {
  background: white;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -100%);
  white-space: nowrap;
  pointer-events: none;
  position: absolute !important;
  left: 20px !important; /* distancia al camión */
  top: -15px !important; /* ajusta altura */ 
}

.truck-label.bg-success {
    background-color: rgba(0, 128, 0, 0.429);
    color: #fff;
}

.truck-label.bg-danger {
    background-color: rgba(161, 65, 5, 0.423);
    color: #fff;
}

/* ======== ICONO PULSE ======== */
.pulse-icon {
  width: 40px;
  height: 40px;
  background-color: #007bff; /* azul o cámbialo al color de tu empresa */
  border: 2px solid blue;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(0, 123, 255, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(1, 39, 80, 0.807);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(1, 55, 113, 0.307);
  }
  70% {
    box-shadow: 0 0 0 0 rgba(1, 35, 71, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(3, 114, 234, 0);
  }
}

/* .truck-label::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: -15;
  transform: translateX(-50%);
  rotate: 90deg;
  border-width: 8px;
  border-style: solid;
  border-color: white transparent transparent transparent;
} */
