/* Mobile Offcanvas Menu Styles */
#mobileNavOffcanvas {
    width: 280px;
    max-width: 85vw;
}

/* Hamburger button: always visible below 992px, never shrinks */
@media (max-width: 991.98px) {
    [data-bs-target="#mobileNavOffcanvas"] {
        display: flex !important;
        flex-shrink: 0;
    }

    /* Prevent header nav icons from wrapping */
    .notika-nav {
        flex-wrap: nowrap;
        overflow: hidden;
    }
}

/* Hide offcanvas and hamburger menu completely on desktop */
@media (min-width: 992px) {
    #mobileNavOffcanvas,
    #mobileNavOffcanvas.show,
    .offcanvas-backdrop,
    [data-bs-target="#mobileNavOffcanvas"] {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Ensure body doesn't get offcanvas styles on desktop */
    body.modal-open {
        overflow: auto !important;
        padding-right: 0 !important;
    }
}

/* Prevent FOUC (Flash of Unstyled Content) on mobile menu */
#mobileNavOffcanvas .collapse {
    visibility: visible;
}

/* Simple fade animation - no height resizing! */
#mobileNavOffcanvas .collapse:not(.show) {
    display: none;
}

#mobileNavOffcanvas .collapse.show {
    display: block;
    animation: simpleFadeIn 0.15s ease-out;
}

/* Instant expand, just fade in - much cleaner */
#mobileNavOffcanvas .collapse.collapsing {
    display: block;
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

@keyframes simpleFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#mobileNavOffcanvas .nav-link {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

#mobileNavOffcanvas .nav-link:hover {
    background-color: #f8f9fa;
    color: #00c292;
}

#mobileNavOffcanvas .nav-item {
    position: relative;
}

#mobileNavOffcanvas .collapse .nav-link {
    font-size: 14px;
    color: #666;
    padding-left: 2.5rem;
}

#mobileNavOffcanvas .collapse .nav-link:hover {
    color: #00c292;
    background-color: rgba(0, 194, 146, 0.05);
}

/* Chevron rotation for expanded items */
#mobileNavOffcanvas .nav-link[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

#mobileNavOffcanvas .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #999;
}

/* Active state */
#mobileNavOffcanvas .nav-link.active {
    color: #00c292;
    background-color: rgba(0, 194, 146, 0.1);
}

/* Ensure proper spacing */
#mobileNavOffcanvas .nav-item:last-child {
    border-bottom: none !important;
}

/* Remove redundant transition (handled by .collapsing state) */

/* Offcanvas overlay */
.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}