.NavBar {
    font-family: system-ui, sans-serif;
}

.NavBar .dropdown {
    position: relative;
    display: inline-block;
}

.NavBar .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.5em 0;
    white-space: nowrap;
    z-index: 100;
    border-radius: 6px;
    box-shadow: var(--shadow-md);
}

.NavBar .dropdown-menu a {
    display: block;
    padding: 0.25em 1em;
    text-decoration: none;
    color: var(--text-nav-link);
}

.NavBar .dropdown-menu a:hover {
    background: var(--bg-panel);
    text-decoration: underline;
}

/* Logout is a POST form (mg #741); make its button look like the links. */
.menu-logout-form {
    margin: 0;
}

.menu-link-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--text-nav-link);
    cursor: pointer;
}

.NavBar .dropdown-menu .menu-link-button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.25em 1em;
}

.NavBar .dropdown-menu .menu-link-button:hover {
    background: var(--bg-panel);
    text-decoration: underline;
}

.NavBar .dropdown:hover .dropdown-menu {
    display: block;
}

body.distraction-free .NavBar {
    display: none !important;
}

/* Navigation Arrows */
.nav-arrow {
    display: inline-block;
    padding: 10px 20px;
    color: var(--text-on-accent);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 0 10px;
    background-color: var(--info);
}

.nav-arrow:hover {
    background-color: var(--info-hover);
}

.nav-arrow.disabled {
    opacity: 0.3;
    cursor: default;
    background-color: var(--neutral);
}

/* The PHP the server is running (mg #759), next to the Admin link for admins. */
.NavBar .PhpVersion {
    margin-left: 0.5em;
    color: var(--text-muted);
    font-weight: normal;
    font-size: 0.8em;
}
