/* Menu bar shared by the Flask pages and the Dash pages (no JavaScript needed) */
.pq-nav, .pq-nav * { box-sizing: border-box; }
.pq-nav {
    position: relative; z-index: 1000;
    display: flex; align-items: center; flex-wrap: wrap;
    min-height: 52px; padding: 0 12px;
    background: rgba(10, 25, 40, .96); color: #fff;
    font-size: 16px; line-height: 1.3; text-align: left;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.pq-brand {
    display: flex; align-items: center; gap: 8px; margin-right: auto; padding: 8px 0;
    color: #fff !important; font-weight: 700; text-decoration: none !important;
}
.pq-brand img { width: 28px; height: 28px; margin: 0; }
.pq-mobile { display: none; margin-left: auto; }
.pq-burger { display: block; margin: 0; padding: 16px 8px; cursor: pointer; list-style: none; }
.pq-burger::-webkit-details-marker { display: none; }
.pq-burger span, .pq-burger span::before, .pq-burger span::after {
    display: block; width: 24px; height: 3px; border-radius: 2px; background: #fff; content: ""; position: relative;
}
.pq-burger span::before { position: absolute; top: -8px; }
.pq-burger span::after { position: absolute; top: 8px; }
.pq-links { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pq-item { position: relative; margin: 0; padding: 0; list-style: none; }
.pq-item > a, .pq-account-label {
    display: block; padding: 15px 12px; color: #fff !important; white-space: nowrap;
    text-decoration: none !important; cursor: pointer; background: none; border: 0; outline: 0;
}
.pq-item > a:hover, .pq-item > a:focus, .pq-item > a.active,
.pq-account:hover > .pq-account-label, .pq-account:focus-within > .pq-account-label { background: rgba(255, 255, 255, .15); }
.pq-item > a.pq-guest { margin: 0 2px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 4px; padding: 7px 12px; }
.pq-account-label::after { content: " \25BE"; }
.pq-sub {
    display: none; position: absolute; right: 0; top: 100%; min-width: 240px; margin: 0; padding: 6px 0;
    list-style: none; background: #0c1f31; border-radius: 0 0 6px 6px; box-shadow: 0 6px 14px rgba(0, 0, 0, .4);
}
.pq-account:hover > .pq-sub, .pq-account:focus-within > .pq-sub { display: block; }
.pq-sub li { margin: 0; padding: 0; list-style: none; }
.pq-sub a { display: block; padding: 10px 16px; color: #fff !important; text-decoration: none !important; }
.pq-sub a:hover, .pq-sub a:focus { background: rgba(255, 255, 255, .15); }

/* Narrow screens: the links fold behind the burger button */
@media (max-width: 767px) {
    .pq-links { display: none; }
    .pq-mobile { display: block; }
    .pq-links-mobile {
        position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 4px 12px 10px; list-style: none;
        background: rgba(10, 25, 40, .98); box-shadow: 0 6px 14px rgba(0, 0, 0, .4);
    }
    .pq-links-mobile .pq-item > a, .pq-links-mobile .pq-account-label { padding: 12px 6px; }
    .pq-links-mobile .pq-item > a.pq-guest { margin: 4px 0; text-align: center; }
    .pq-links-mobile .pq-account-label { font-weight: 700; border-top: 1px solid rgba(255, 255, 255, .2); background: none; }
    .pq-links-mobile .pq-account-label::after { content: ""; }
    .pq-links-mobile .pq-sub { display: block; position: static; min-width: 0; padding: 0 0 0 14px; background: transparent; box-shadow: none; }
}
