.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideUp 0.3s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #86b81b 0%, #86b81b 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ca3e26 0%, #dd2911 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #f59e0b 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.bg-gradient-light {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}


.glass {
    backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(209, 213, 219, 0.3);
}

.shadow-float {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

.input-focus:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgb(134, 184, 27) !important;
    border-color: rgb(134, 184, 27) !important;
}

.text-primary {
    color: #86b81b !important;
}

/* Estilos para autocomplete */
.autocomplete-item {
    transition: all 0.2s ease;
}

.autocomplete-item:hover {
    background-color: #f3f4f6 !important;
}

.autocomplete-item.bg-blue-100 {
    background-color: #dbeafe !important;
    border-left: 3px solid #3b82f6;
}

#relatedFolioDropdown {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
}

#relatedFolioDropdown::-webkit-scrollbar {
    width: 6px;
}

#relatedFolioDropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#relatedFolioDropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#relatedFolioDropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Estilos adicionales para el bottom sheet */
#bottomSheetContent {
    backdrop-filter: blur(10px);
}

/* Animación de entrada */
.bottom-sheet-enter {
    transform: translateY(100%);
}

.bottom-sheet-enter-active {
    transform: translateY(0);
}

/* Animación de salida */
.bottom-sheet-exit {
    transform: translateY(0);
}

.bottom-sheet-exit-active {
    transform: translateY(100%);
}

/* Scrollbar personalizado para el contenido */
#bottomSheetBody::-webkit-scrollbar {
    width: 6px;
}

#bottomSheetBody::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#bottomSheetBody::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#bottomSheetBody::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Mejoras para móviles */
@media (max-width: 768px) {
    #bottomSheetContent {
        height: 90vh;
        border-radius: 20px 20px 0 0;
    }

    #openBottomSheet {
        bottom: 80px;
        /* Evitar conflicto con la barra de navegación */
    }
}

/* Asegurar que el contenido sea scrolleable */
#bottomSheetBody {
    min-height: 0;
    overflow-y: auto;
}

/* Mejorar la transición del filtro */
.ubication-card {
    transition: all 0.3s ease;
}

.ubication-card.hidden {
    opacity: 0;
    transform: scale(0.95);
}

/* Efectos hover mejorados */
.ubication-card:hover {
    transform: translateY(-2px);
}

/* Estilo para botones deshabilitados */
button:disabled {
    pointer-events: none;
}

/* Animación sutil para los controles de cantidad */
.ubication-card input[type="number"]:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Mejorar el sticky del filtro */
.sticky {
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

.custom-scroll-green {
    scrollbar-width: thin;
    scrollbar-color: #86b81b #f3f4f6;
    -webkit-overflow-scrolling: touch;
}

.custom-scroll-green::-webkit-scrollbar {
    width: 8px;
}

.custom-scroll-green::-webkit-scrollbar-thumb {
    background: #86b81b;
    border-radius: 10px;
}

.custom-scroll-green::-webkit-scrollbar-thumb:hover {
    background: #6d9316;
    /* Versión más oscura para hover */
}

.custom-scroll-green::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}