/* Global Library Conflict Fixes */

/* Disable MDB Ripple Effects Completely */
.ripple-surface,
.ripple-surface::before,
.ripple-surface::after,
*[class*="ripple"],
.btn.ripple-surface {
    pointer-events: auto !important;
    animation: none !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    overflow: visible !important;
    position: relative !important;
}

.ripple-surface .ripple-span,
.ripple-span,
*[class*="ripple-span"],
.btn .ripple-span {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* Completely disable any ripple wave animations */
.ripple-wave,
.ripple-surface-wave,
*[class*="ripple-wave"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    animation: none !important;
    transition: none !important;
}

/* Disable ripple for specific buttons */
.no-ripple,
.no-ripple.ripple-surface,
.no-ripple.ripple-surface::before,
.no-ripple.ripple-surface::after {
    pointer-events: auto !important;
    animation: none !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    overflow: visible !important;
}

.no-ripple .ripple-span,
.no-ripple *[class*="ripple"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Bootstrap 5 Modal Fixes */
.modal {
    --bs-modal-zindex: 1055;
}

.modal-backdrop {
    --bs-backdrop-zindex: 1050;
}

/* Button consistency fixes */
.btn {
    border: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

.btn:hover {
    transform: translateY(-1px) !important;
}

.btn:active {
    transform: translateY(0) !important;
}

/* Fix click responsiveness */
button, .btn, [role="button"] {
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Prevent double-tap zoom on mobile */
button, .btn, [role="button"] {
    touch-action: manipulation !important;
}

/* Event handling fixes */
.view-tree-btn,
.search-btn,
.modal-btn {
    pointer-events: auto !important;
    z-index: 1 !important;
    position: relative !important;
}