.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;

    box-sizing: border-box;

    display: flex;
    align-items: center;

    padding: 0 24px;

    backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    overflow: visible;
    isolation: isolate;

    z-index: 10000;
}

.nav-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}
.nav-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.logo {
    font-weight: 600;
    font-size: 18px;
}

.nav-link {
    text-decoration: none;
    color: #111;
    font-size: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

.nav-link:hover {
    text-decoration: underline;
}

.account-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: auto;
    height: auto;
    object-fit: cover;
}
.account-menu img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.account-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111;
    text-decoration: none;
}

.account-link:hover #user-name {
    text-decoration: underline;
}

.qr-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    text-decoration: none;
    padding: 0;
    line-height: 1;
}

.qr-link:hover {
    color: var(--color-darkest);
}

.qr-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.nav-dropdown {
    position: relative;
    z-index: 10001;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 0;
    width: max-content;
    min-width: max-content;
    white-space: nowrap;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    z-index: 10002;
}

.nav-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #111;
    font: inherit;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

.hidden {
    display: none;
}

.hamburger {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);

    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;

    display: none;
}


@media (max-width: 768px) {
    .nav-left {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .nav-left.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        padding: 16px;
    }
    .nav-dropdown {
        width: 100%;
    }
    .dropdown-menu {
        position: static;
        margin-top: 8px;
        width: 100%;
        min-width: 0;
        white-space: normal;
    }
}
