/* ============================================
   Mobile Sidebar Drawer Styles
   ============================================ */

.mobile-sidebar-drawer .nav-pills .nav-link,
.mobile-sidebar-drawer .nav-pills .nav-link.active {
    color: hsl(var(--foreground)) !important;
    border-radius: var(--app-radius, 6px) !important;
}

.mobile-sidebar-drawer__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    padding: 0.5rem;
    box-sizing: border-box;
    overflow: hidden;
}

.mobile-sidebar-drawer .mantine-Drawer-header {
    position: relative;
    min-height: 48px;
    padding: 0.5rem 0.875rem 0.5rem 0.5rem;
    margin-bottom: 0;
}

.mobile-sidebar-drawer__logo-link,
.mobile-sidebar-drawer__logo-link:hover,
.mobile-sidebar-drawer__logo-link:focus,
.mobile-sidebar-drawer__logo-link:focus-visible,
.mobile-sidebar-drawer__logo-link:active,
.mobile-sidebar-drawer__logo-link:visited {
    display: inline-flex;
    align-items: center;
    color: inherit !important;
    text-decoration: none !important;
    background: transparent !important;
}

.mobile-sidebar-drawer__brand {
    display: block;
    height: 40px;
    width: auto;
    max-width: calc(100% - 64px);
    object-fit: contain;
}

.mobile-sidebar-drawer__close {
    position: absolute !important;
    top: 50%;
    right: 0.875rem;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    border: none !important;
    border-radius: var(--app-radius, 6px);
    background: transparent !important;
    box-shadow: none !important;
}

.mobile-sidebar-drawer__close:hover,
.mobile-sidebar-drawer__close:active,
.mobile-sidebar-drawer__close:focus-visible {
    transform: translateY(-50%) !important;
    background: hsl(var(--accent)) !important;
}

.mobile-sidebar-drawer .mantine-Drawer-content {
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-sidebar-drawer .mantine-Drawer-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 !important;
    overflow: hidden;
}

.sidebar__nav--mobile {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 0.5rem;
}

.mobile-sidebar-drawer__content .sidebar__footer {
    position: static;
    margin-top: auto;
    bottom: auto;
    padding-bottom: 0;
}
