/**
 * Edge Browser Compatibility Styles
 */

/* Edge-specific class applied via JavaScript */
.edge-browser .navbar-toggler {
    cursor: pointer !important;
    touch-action: manipulation !important;
}

/* Ensure collapse animations work in Edge */
.edge-browser .collapsing {
    position: relative !important;
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease !important;
}

.edge-browser .collapse:not(.show) {
    display: none !important;
}

.edge-browser .collapse.show {
    display: block !important;
}

/* Fix dropdown visibility in Edge */
.edge-browser .dropdown-menu {
    display: block !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
}

.edge-browser .dropdown-menu.show {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile menu specific fixes for Edge */
@media (max-width: 991px) {
    .edge-browser .navbar-collapse {
        position: relative !important;
    }
    
    .edge-browser .navbar-collapse.collapsing {
        height: 0 !important;
        transition: height 0.35s ease !important;
    }
    
    .edge-browser .navbar-collapse.show {
        height: auto !important;
    }
    
    /* Ensure toggler button is always clickable */
    .edge-browser .navbar-toggler {
        position: relative !important;
        z-index: 1100 !important;
        -ms-touch-action: manipulation !important;
        touch-action: manipulation !important;
    }
    
    /* Fix for Edge mobile touch events */
    .edge-browser .navbar-toggler:active,
    .edge-browser .navbar-toggler:focus {
        outline: 2px solid #10BCC8 !important;
    }
}

/* Language dropdown fixes for Edge */
.edge-browser .language-toggle .dropdown-menu {
    position: absolute !important;
    will-change: transform !important;
}

/* Prevent text selection on buttons in Edge */
.edge-browser .navbar-toggler,
.edge-browser .dropdown-toggle {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Fix for Edge rendering issues with transforms */
.edge-browser .dropdown-menu {
    -ms-transform: none !important;
}

/* Ensure proper stacking context in Edge */
.edge-browser .navbar {
    position: relative !important;
    z-index: 1000 !important;
}

.edge-browser .navbar-collapse {
    z-index: 999 !important;
}