.menu, .menu-bar {
    position: fixed;
    height: 100%;
    list-style-type: none;
    margin: 0;
    padding: 0;
    background: var(--color-bg-surface); /* layout only: color comes from tokens */
    z-index: 2000;
    overflow:hidden;
    box-shadow: none;    /* låt card/layout stå för djup */
    width: var(--sidebar-w);
    text-align: center;
    color: var(--color-text-primary);
    display: none; /* Dölj sidomenyn som standard nu */
}

/* Ny Toppmeny */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-sm);
    padding: 0 var(--page-pad);
    position: sticky;
    top: 0;
    z-index: 1500;
}

.top-nav-left, .top-nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.top-nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.app-logo-header {
    height: 40px;
    width: auto;
    cursor: pointer;
}

.top-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--space-2);
}

.top-nav-menu li a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.top-nav-menu li a:hover {
    background: var(--color-bg-muted);
    color: var(--color-primary);
}

.org-selector-container {
    margin: 0 var(--space-4);
}

#globalOrgSelector {
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-strong);
    background: var(--color-bg-surface);
    font-size: var(--font-size-sm);
}
.menu li a {
    font-size: 18px;
    opacity: 0.85;
    display: inline-block;
    text-indent: -500em;
    height: 2em;
    width: 2em;
    line-height: 2em;
    text-align:center;
    color: var(--color-text-secondary);
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.1s ease-in-out;
}

.menu li {
    padding-top: 0;
}

.menu li a:before {
    font-family: 'Font Awesome 6 Pro';
    speak: none;
    text-indent: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 1.5em;
    color: var(--text-color);
}

.top-menu-button, .menu-button {
    cursor: pointer;
}

.top-menu-button {
    font-size: 1.5em;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.top-menu-button:hover {
    color: var(--color-primary);
}

.menu-bar {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: auto;
    width: var(--drawer-w);
    height: calc(100dvh - var(--header-h));
    box-shadow: var(--shadow-md);
    transition: all 0.1s ease-in-out;
    background-color: var(--color-bg-surface);
    display: none;
}

.menu-bar li a{
    display: block;
    height: 1.8em;
    line-height: 1.3em;
    text-align:center;
    color: var(--color-text-secondary);
    text-decoration:none;
    position: relative;
    font-family:verdana;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.1s ease-in-out;
}
.menu-bar li:first-child a{
    height:2em;
    background: var(--color-primary);
    color: var(--color-primary-text);
}

.para {
    color:#033f72;
    padding-left:100px;
    font-size:3em;
    margin-bottom:20px;
}

.open {
    height:100%;
    display: block !important;
}

@media all and (max-width: 500px) {
    .container{
        margin-top:100px;
    }
    .menu {
        height:100%;
        width: 3em;
    }
    .menu li{
        display:inline-block;
    }
    .menu-bar li a{
        width:100%;
        white-space: nowrap;
    }
    .menu-bar{
        width:100%;
        bottom: 0;
        height:0;
        top:0;
        left:3em;
    }
    .std-menu-button {
        font-size: 3em;
    }
    .menu-button, .tool-menu-button, .top-menu-button {
        font-size: 1.5em;
    }
    .open {
        width:auto;
        height:auto;
    }
    .para{
        padding-left:5px;
    }
}
@media screen and (max-height: 34em){
    .menu li,
    .menu-bar {
        font-size:70%;
    },
    .top-menu-button {
        font-size: 1.5em;
    }
}
@media screen and (max-height: 34em) and (max-width: 500px){
    .menu {
        height:3.5em;
    }
}

/* Show only when toggled */
.menu-bar.open {
    display: block;
}
