/*Write your custom css in this file.*/

/* Hide floating chat icon and popup globally - using Groups/Teams chat instead */
.init-chat-icon,
#js-init-chat-icon,
.chat-min-icon,
#js-chat-min-icon,
.rise-chat-wrapper,
#js-rise-chat-wrapper,
.rise-chat-body,
.chat-topbar,
.rise-chat-header {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    z-index: -1 !important;
}

/* Ensure the wrapper doesn't interfere even when not hidden */
body > .rise-chat-wrapper,
body > #js-rise-chat-wrapper,
body #js-rise-chat-wrapper,
body .rise-chat-wrapper {
    display: none !important;
}

.mobile-bottom-menu .mobile-bottom-menu-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr 1fr 1fr;
    align-items: center;
    padding: 0 14px;
    position: relative;
}

.mobile-bottom-menu .menu-item {
    text-align: center;
    padding: 16px 0 28px;
}

.mobile-bottom-menu .menu-spacer {
    pointer-events: none;
    visibility: hidden;
    width: 100%;
}

.mobile-bottom-menu .quick-add-fab {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    background: #23225e;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Native mobile bottom bar feel */
.mobile-bottom-menu {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-menu .mobile-bottom-menu-inner {
    padding: 6px 14px 10px;
}

.mobile-bottom-menu .menu-item {
    padding: 12px 0 18px;
    color: #6b7280;
}

.mobile-bottom-menu .menu-item .icon,
.mobile-bottom-menu .menu-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.mobile-bottom-menu .menu-item.active .icon,
.mobile-bottom-menu .menu-item.active svg {
    color: #111827;
}

.mobile-bottom-menu .menu-item.active::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    margin: 6px auto 0;
    border-radius: 50%;
    background: #23225e;
}

.mobile-bottom-menu .quick-add-fab {
    bottom: 26px;
    background: #23225e;
    box-shadow: 0 10px 24px rgba(35, 34, 94, 0.35);
}

/* Match chat header icons to bottom menu icon style */
.teams-chat-header .btn .icon,
.teams-chat-header .btn svg {
    width: 24px;
    height: 24px;
    color: #4e5e6a;
    stroke-width: 2;
}

.teams-chat-header .btn:hover .icon,
.teams-chat-header .btn:hover svg,
.teams-chat-header .btn:focus .icon,
.teams-chat-header .btn:focus svg {
    color: #000;
    transform: scale(1.1);
    transition: all 0.2s ease-in-out;
}

/* Mobile: keep all top header items vertically centered */
@media (max-width: 767px) {
    #default-navbar .container-fluid,
    #default-navbar .navbar-collapse,
    #default-navbar .navbar-nav,
    #default-navbar .navbar-nav .nav-item {
        display: flex;
        align-items: center;
    }

    #default-navbar .navbar-collapse {
        min-height: 66px;
    }

    #default-navbar .navbar-nav .nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #default-navbar #dashboard-link.brand-logo {
        display: inline-flex;
        align-items: center;
        min-height: 66px;
    }
}
