/* Shared Omega sidebar menu + app shell */
:root {
    --omega-sidebar-width: 278px;
    --omega-bg-deep: #050811;
    --omega-panel: rgba(8, 13, 24, .92);
    --omega-line: rgba(255, 255, 255, .09);
    --omega-text: #eef4ff;
    --omega-muted: #8fa0bd;
    --omega-blue: #58a6ff;
    --omega-cyan: #00e5ff;
    --omega-orange: #ff9a3c;
}

.omega-app-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--omega-sidebar-width) minmax(0, 1fr);
    background: radial-gradient(circle at top left, rgba(0, 229, 255, .08), transparent 34%), var(--omega-bg-deep);
}

.omega-main-content {
    min-width: 0;
    width: 100%;
}

.omega-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 22px 18px;
    background: linear-gradient(180deg, rgba(8, 13, 24, .98), rgba(3, 6, 13, .98));
    border-right: 1px solid var(--omega-line);
    box-shadow: 18px 0 60px rgba(0, 0, 0, .35);
    z-index: 50;
}

.omega-menu-toggle {
    display: none;
    width: 44px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--omega-text);
    background: rgba(255, 255, 255, .05);
    font-weight: 900;
    cursor: pointer;
    margin-bottom: 14px;
}

.sidebar-brand {
    padding: 14px 14px 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    background: radial-gradient(circle at top, rgba(88, 166, 255, .16), rgba(255, 255, 255, .025));
    margin-bottom: 18px;
}

.sidebar-brand h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, var(--omega-cyan), var(--omega-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sidebar-brand .sub {
    margin-top: 6px;
    color: var(--omega-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 800;
}

.sidebar-nav {
    display: grid;
    gap: 7px;
}

.sidebar-section {
    margin: 15px 8px 6px;
    color: var(--omega-orange);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-weight: 900;
}

.sidebar-link {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 11px 13px;
    border-radius: 14px;
    color: #d8e6ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, .025);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.sidebar-link:hover {
    transform: translateX(3px);
    color: #fff;
    border-color: rgba(88, 166, 255, .25);
    background: rgba(88, 166, 255, .09);
}

.sidebar-link.active {
    color: #ffffff;
    border-color: rgba(0, 229, 255, .42);
    background: linear-gradient(135deg, rgba(0, 229, 255, .18), rgba(255, 154, 60, .08));
    box-shadow: inset 0 0 18px rgba(0, 229, 255, .08), 0 0 22px rgba(0, 229, 255, .06);
}

.omega-menu-error {
    padding: 18px;
    color: #ffd8a8;
    border: 1px solid rgba(255, 154, 60, .32);
    border-radius: 16px;
    background: rgba(255, 154, 60, .08);
    font-weight: 800;
}

body.omega-menu-collapsed .omega-app-layout {
    grid-template-columns: 88px minmax(0, 1fr);
}

body.omega-menu-collapsed .omega-sidebar {
    padding-inline: 12px;
}

body.omega-menu-collapsed .sidebar-brand .sub,
body.omega-menu-collapsed .sidebar-section,
body.omega-menu-collapsed .sidebar-link {
    font-size: 0;
}

body.omega-menu-collapsed .sidebar-brand h2 {
    font-size: 0;
}

body.omega-menu-collapsed .sidebar-brand h2::after {
    content: "Ω";
    font-size: 30px;
}

body.omega-menu-collapsed .sidebar-link::before {
    content: "•";
    font-size: 22px;
    margin: auto;
    color: var(--omega-cyan);
}

@media (min-width: 901px) {
    .omega-menu-toggle { display: inline-grid; place-items: center; }
}

@media (max-width: 900px) {
    .omega-app-layout { display: block; }
    .omega-sidebar {
        position: relative;
        height: auto;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid var(--omega-line);
    }
    .sidebar-nav {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }
}


/* Small home chip used on module headers */
.omega-home-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid rgba(0, 229, 255, .22);
    background: rgba(8, 13, 24, .76);
    color: #dce8ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    transition: .22s ease;
}
.omega-home-chip:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: rgba(255, 154, 60, .42);
    box-shadow: 0 0 24px rgba(0, 229, 255, .14);
}

/* =========================================================
   OMEGA SIDEBAR HARD LOCK — prevents module page CSS from shrinking menu
   ========================================================= */
.omega-app-layout {
    grid-template-columns: var(--omega-sidebar-width, 278px) minmax(0, 1fr) !important;
}

#omega-menu-root,
#omega-menu-root *,
.omega-sidebar,
.omega-sidebar * {
    box-sizing: border-box !important;
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif !important;
}

.omega-sidebar {
    width: var(--omega-sidebar-width, 278px) !important;
    min-width: var(--omega-sidebar-width, 278px) !important;
    max-width: var(--omega-sidebar-width, 278px) !important;
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    padding: 22px 18px !important;
    background: linear-gradient(180deg, rgba(8, 13, 24, .98), rgba(3, 6, 13, .98)) !important;
    border-right: 1px solid rgba(255, 255, 255, .09) !important;
    box-shadow: 18px 0 60px rgba(0, 0, 0, .35) !important;
    z-index: 50 !important;
}

.omega-menu-toggle {
    display: none !important;
}

.sidebar-brand {
    display: block !important;
    padding: 14px 14px 18px !important;
    margin-bottom: 18px !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 22px !important;
    background: radial-gradient(circle at top, rgba(88, 166, 255, .16), rgba(255, 255, 255, .025)) !important;
    text-decoration: none !important;
}

.sidebar-brand h2 {
    margin: 0 !important;
    font-size: 28px !important;
    line-height: 1 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
    background: linear-gradient(90deg, #fff, var(--omega-cyan, #00e5ff), var(--omega-orange, #ff9a3c)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.sidebar-brand .sub {
    margin-top: 6px !important;
    color: var(--omega-muted, #8fa0bd) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: .16em !important;
    font-weight: 800 !important;
}

.sidebar-nav {
    display: grid !important;
    gap: 7px !important;
}

.sidebar-section {
    display: block !important;
    margin: 15px 8px 6px !important;
    color: var(--omega-orange, #ff9a3c) !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: .2em !important;
    font-weight: 900 !important;
}

.sidebar-link {
    display: flex !important;
    align-items: center !important;
    min-height: 40px !important;
    padding: 11px 13px !important;
    border-radius: 14px !important;
    color: #d8e6ff !important;
    text-decoration: none !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    letter-spacing: .02em !important;
    border: 1px solid transparent !important;
    background: rgba(255, 255, 255, .025) !important;
}

.sidebar-link:hover {
    transform: translateX(3px) !important;
    color: #ffffff !important;
    border-color: rgba(88, 166, 255, .25) !important;
    background: rgba(88, 166, 255, .09) !important;
}

.sidebar-link.active {
    color: #ffffff !important;
    border-color: rgba(0, 229, 255, .42) !important;
    background: linear-gradient(135deg, rgba(0, 229, 255, .18), rgba(255, 154, 60, .08)) !important;
    box-shadow: inset 0 0 18px rgba(0, 229, 255, .08), 0 0 22px rgba(0, 229, 255, .06) !important;
}

body.omega-menu-collapsed .omega-app-layout {
    grid-template-columns: var(--omega-sidebar-width, 278px) minmax(0, 1fr) !important;
}
body.omega-menu-collapsed .sidebar-brand h2,
body.omega-menu-collapsed .sidebar-brand .sub,
body.omega-menu-collapsed .sidebar-section,
body.omega-menu-collapsed .sidebar-link {
    font-size: revert !important;
}
body.omega-menu-collapsed .sidebar-brand h2 {
    font-size: 28px !important;
}
body.omega-menu-collapsed .sidebar-link::before,
body.omega-menu-collapsed .sidebar-brand h2::after {
    content: none !important;
}

@media (max-width: 900px) {
    .omega-app-layout { display: block !important; }
    .omega-sidebar {
        position: relative !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.09) !important;
    }
}
