[data-simplebar] {
  position: relative;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
  align-items: flex-start;
}

.simplebar-wrapper {
  overflow: hidden;
  width: inherit;
  height: inherit;
  max-width: inherit;
  max-height: inherit;
}

.simplebar-mask {
  direction: inherit;
  position: absolute;
  overflow: hidden;
  padding: 0;
  margin: 0;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  width: auto !important;
  height: auto !important;
  z-index: 0;
}

.simplebar-offset {
  direction: inherit !important;
  box-sizing: inherit !important;
  resize: none !important;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 0;
  margin: 0;
  -webkit-overflow-scrolling: touch;
}

.simplebar-content-wrapper {
  direction: inherit;
  box-sizing: border-box !important;
  position: relative;
  display: block;
  height: 100%; /* Required for horizontal native scrollbar to not appear if parent is taller than natural height */
  width: auto;
  max-width: 100%; /* Not required for horizontal scroll to trigger */
  max-height: 100%; /* Needed for vertical scroll to trigger */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.simplebar-content-wrapper::-webkit-scrollbar,
.simplebar-hide-scrollbar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.simplebar-content:before,
.simplebar-content:after {
  content: ' ';
  display: table;
}

.simplebar-placeholder {
  max-height: 100%;
  max-width: 100%;
  width: 100%;
  pointer-events: none;
}

.simplebar-height-auto-observer-wrapper {
  box-sizing: inherit !important;
  height: 100%;
  width: 100%;
  max-width: 1px;
  position: relative;
  float: left;
  max-height: 1px;
  overflow: hidden;
  z-index: -1;
  padding: 0;
  margin: 0;
  pointer-events: none;
  flex-grow: inherit;
  flex-shrink: 0;
  flex-basis: 0;
}

.simplebar-height-auto-observer {
  box-sizing: inherit;
  display: block;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 1000%;
  width: 1000%;
  min-height: 1px;
  min-width: 1px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.simplebar-track {
  z-index: 1;
  position: absolute;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

[data-simplebar].simplebar-dragging .simplebar-content {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

[data-simplebar].simplebar-dragging .simplebar-track {
  pointer-events: all;
}

.simplebar-scrollbar {
  position: absolute;
  left: 0;
  right: 0;
  min-height: 10px;
}

.simplebar-scrollbar:before {
  position: absolute;
  content: '';
  background: black;
  border-radius: 7px;
  left: 2px;
  right: 2px;
  opacity: 0;
  transition: opacity 0.2s linear;
}

.simplebar-scrollbar.simplebar-visible:before {
  /* When hovered, remove all transitions from drag handle */
  opacity: 0.5;
  transition: opacity 0s linear;
}

.simplebar-track.simplebar-vertical {
  top: 0;
  width: 11px;
}

.simplebar-track.simplebar-vertical .simplebar-scrollbar:before {
  top: 2px;
  bottom: 2px;
}

.simplebar-track.simplebar-horizontal {
  left: 0;
  height: 11px;
}

.simplebar-track.simplebar-horizontal .simplebar-scrollbar:before {
  height: 100%;
  left: 2px;
  right: 2px;
}

.simplebar-track.simplebar-horizontal .simplebar-scrollbar {
  right: auto;
  left: 0;
  top: 2px;
  height: 7px;
  min-height: 0;
  min-width: 10px;
  width: auto;
}

/* Rtl support */
[data-simplebar-direction='rtl'] .simplebar-track.simplebar-vertical {
  right: auto;
  left: 0;
}

.hs-dummy-scrollbar-size {
  direction: rtl;
  position: fixed;
  opacity: 0;
  visibility: hidden;
  height: 500px;
  width: 500px;
  overflow-y: hidden;
  overflow-x: scroll;
}

.simplebar-hide-scrollbar {
  position: fixed;
  left: 0;
  visibility: hidden;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}




/* TUTORIAL */

/* Estilos para el overlay del tutorial */
/*#tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;*/
    /* background-color: transparent; */ /* No necesitamos color aquí, el .tutorial-hole lo hará */
    /*z-index: 9998;
    display: none;*/ /* Oculto por defecto, JS lo mostrará */
    /* Las transiciones de clip-path ya no son necesarias aquí */
/*}*/

/* Estilo para el "agujero" que crea el efecto de enfoque */
/*.tutorial-hole {
    position: fixed;*/ /* Asegura que se posicione en relación a la ventana */
    /*pointer-events: none;*/ /* Permite que los clics pasen a elementos detrás si es necesario */
    /*border-radius: 4px;*/ /* Bordes ligeramente redondeados para el agujero */
    /*box-shadow: 0 0 0 100vmax rgba(0,0,0,0.7);*/ /* Esto crea el oscurecimiento alrededor */
    /*z-index: 9998;*/ /* Debe estar debajo de la burbuja y el elemento resaltado */
    /*transition: top 0.4s ease-in-out, left 0.4s ease-in-out, width 0.4s ease-in-out, height 0.4s ease-in-out, border-radius 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}*/

    /* Para elementos pequeños: añadir un borde azul visible alrededor del agujero */
    /*.tutorial-hole.small {
        box-shadow: 0 0 0 100vmax rgba(0,0,0,0.7), 0 0 0 2px #007bff;*/ /* Borde azul adicional */
    /*}*/

/* Estilos para la burbuja del tutorial */
/*.tutorial-bubble {
    position: absolute;*/ /* Posicionado absolutamente por JS */
    /*background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;*/ /* Siempre por encima del overlay y el agujero */
    /*max-width: 320px;
    opacity: 0;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, top 0.5s ease-in-out, left 0.5s ease-in-out;
    transform: translateY(15px) scale(0.95);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
}

    .tutorial-bubble.show {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

.tutorial-content {
    margin-bottom: 15px;
    line-height: 1.5;
}*/

/* Estilos para los botones dentro de la burbuja */
/*.tutorial-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

    .tutorial-buttons .btn {
        padding: 8px 15px;
        border-radius: 5px;
        font-size: 0.9em;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
    }

    .tutorial-buttons .btn-primary {
        background-color: #007bff;
        border-color: #007bff;
        color: #fff;
    }

        .tutorial-buttons .btn-primary:hover {
            background-color: #0056b3;
            border-color: #004085;
        }

    .tutorial-buttons .btn-secondary {
        background-color: #6c757d;
        border-color: #6c757d;
        color: #fff;
    }

        .tutorial-buttons .btn-secondary:hover {
            background-color: #5a6268;
            border-color: #4e555b;
        }

    .tutorial-buttons .btn-danger {
        background-color: #dc3545;
        border-color: #dc3545;
        color: #fff;
    }

        .tutorial-buttons .btn-danger:hover {
            background-color: #c82333;
            border-color: #bd2130;
        }*/

/* Esto era redundante, ya lo manejas con flexbox en .tutorial-buttons */
/* .tutorial-bubble button {
    margin-top: 10px;
    margin-right: 5px;
} */

/* Estilos para el elemento resaltado */
/*.tutorial-highlight {
    outline: 3px solid #007bff;
    box-shadow: 0 0 0 5px rgba(0, 123, 255, 0.3), 0 0 15px rgba(0, 123, 255, 0.7);
    position: relative;*/ /* Es importante que el elemento tenga un contexto de apilamiento */
    /*z-index: 10000;*/ /* Siempre por encima del overlay y la burbuja si es posible */
    /*transition: all 0.3s ease-in-out;
    animation: tutorialHighlightPulse 1.5s infinite alternate;
    border-radius: 5px;
}*/

/* Animación de pulso para el highlight */
/*@keyframes tutorialHighlightPulse {
    from {
        box-shadow: 0 0 0 5px rgba(0, 123, 255, 0.3), 0 0 15px rgba(0, 123, 255, 0.7);
    }

    to {
        box-shadow: 0 0 0 7px rgba(0, 123, 255, 0.5), 0 0 20px rgba(0, 123, 255, 1);
    }
}*/

/* Estilos para los elementos deshabilitados */
.menu-item-disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

/* Animación de desvanecimiento (si se usa para ocultar elementos) */
.fade-out {
    animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        visibility: visible;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Debugging Overlays (Mantenidos por si los necesitas para depuración) */
.debug-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    pointer-events: none;
    background: rgba(255, 0, 0, 0.1);
}

.debug-rect {
    position: absolute;
    border: 2px dashed rgba(255, 255, 0, 0.8);
}

.debug-corner {
    position: absolute;
    background: rgba(0, 0, 255, 0.8);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.coords-info {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 4px;
    margin: 10px;
    max-width: 80%;
}


.border-warning {
    border-left-color: #ffc107 !important;
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% {
        border-left-width: 5px;
    }

    50% {
        border-left-width: 8px;
    }

    100% {
        border-left-width: 3px;
    }
}