/* Sidebar — requires class .sidebar-ux on #layout-menu (see include/sidebar.php) */

.layout-menu.sidebar-ux {
    border-right: 1px solid #e2e8f0;
    box-shadow: 4px 0 20px rgba(15, 23, 42, 0.045);
}

/* Brand row */
.layout-menu.sidebar-ux .app-brand.demo {
    height: auto;
    min-height: 5.25rem;
    margin-top: 0;
    margin-bottom: 0.35rem;
    padding: 0.5rem 0.85rem 0.65rem;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 6;
    background: #fff;
    overflow: visible;
}

.layout-menu.sidebar-ux .app-brand-link {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.layout-menu.sidebar-ux .app-brand-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-right: 0.4rem;
}

.layout-menu.sidebar-ux .inspire-logo {
    display: block;
    max-height: 4.35rem;
    height: auto;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.layout-menu.sidebar-ux .layout-menu-toggle.menu-link {
    border-radius: 999px;
    width: 2.1rem;
    height: 2.1rem;
    min-width: 2.1rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: background 0.15s ease, color 0.15s ease;
}

.layout-menu.sidebar-ux .layout-menu-toggle.menu-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.layout-menu.sidebar-ux .menu-inner-shadow {
    position: sticky;
    top: 5.25rem;
    z-index: 5;
    background: #fff;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    display: block;
}

/* Top-level links */
.layout-menu.sidebar-ux.menu-vertical .menu-inner > .menu-item > .menu-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0.12rem 0.45rem;
    padding: 0.55rem 0.8rem;
    border-radius: 0.65rem !important;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    color: #1e293b;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.2s ease;
}

.layout-menu.sidebar-ux .menu-inner > .menu-item:not(.active) > .menu-link:not(.menu-toggle):hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.layout-menu.sidebar-ux .menu-icon {
    flex-shrink: 0;
    width: 1.35rem;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1;
    color: #334155;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.layout-menu.sidebar-ux .menu-icon.fa-solid,
.layout-menu.sidebar-ux .menu-icon.fas {
    font-family: "Font Awesome 6 Free", sans-serif !important;
    font-weight: 900 !important;
}

/* Active route — pill (matches industrial / “ETERNAL” style reference) */
.layout-menu.sidebar-ux .menu-inner > .menu-item.active:not(.open) > .menu-link:not(.menu-toggle),
.layout-menu.sidebar-ux .menu-inner > .menu-item.active.open > .menu-link.menu-toggle {
    background: linear-gradient(145deg, #0c4a5e 0%, #083445 50%, #0a3d52 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(8, 52, 69, 0.38);
}

.layout-menu.sidebar-ux .menu-inner > .menu-item.active:not(.open) > .menu-link:not(.menu-toggle) .menu-icon,
.layout-menu.sidebar-ux .menu-inner > .menu-item.active.open > .menu-link.menu-toggle .menu-icon {
    color: #fff !important;
}

/* Remove default theme active side tick for cleaner pill */
.layout-wrapper:not(.layout-horizontal) .layout-menu.sidebar-ux.bg-menu-theme .menu-inner > .menu-item.active::before {
    display: none;
}

/* Settings section label */
.layout-menu.sidebar-ux .menu-header {
    margin-top: 0.35rem;
    padding: 0.65rem 1rem 0.35rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
}

.layout-menu.sidebar-ux .menu-header-text {
    color: #64748b;
}

/* Settings parent when open (no leaf active) */
.layout-menu.sidebar-ux .menu-inner > .menu-item.open:not(.active) > .menu-link.menu-toggle {
    background: #f8fafc;
    color: #0f172a;
}

/* Settings submenu — no tree bullets (theme uses ::before tabler glyph) */
.layout-menu.sidebar-ux.bg-menu-theme .menu-sub .menu-item > .menu-link::before {
    content: none !important;
    display: none !important;
}

.layout-menu.sidebar-ux.menu-vertical .menu-sub > .menu-item > .menu-link {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    padding-left: 0.85rem !important;
    margin: 0.08rem 0.35rem 0.08rem 0.25rem;
    border-radius: 0.5rem !important;
    font-size: 0.875rem;
}

[dir=rtl] .layout-menu.sidebar-ux.menu-vertical .menu-sub > .menu-item > .menu-link {
    padding-left: 0.75rem !important;
    padding-right: 0.85rem !important;
}

.layout-menu.sidebar-ux.bg-menu-theme.menu-vertical .menu-sub > .menu-item .menu-link .menu-icon {
    display: inline-flex !important;
    flex-shrink: 0;
    font-size: 1rem;
    width: 1.25rem;
    min-width: 1.25rem;
    margin-right: 0;
    justify-content: center;
}

[dir=rtl] .layout-menu.sidebar-ux.bg-menu-theme.menu-vertical .menu-sub > .menu-item .menu-link .menu-icon {
    margin-left: 0;
}

.layout-menu.sidebar-ux .menu-sub > .menu-item.active > .menu-link {
    background: linear-gradient(145deg, #0c4a5e 0%, #0a3d52 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(8, 52, 69, 0.28);
}

.layout-menu.sidebar-ux .menu-sub > .menu-item.active > .menu-link .menu-icon {
    color: #fff !important;
}

.layout-menu.sidebar-ux .menu-sub > .menu-item:not(.active) > .menu-link:hover {
    background: #f1f5f9 !important;
}
