/* App Bar / Navbar */
.app-bar {
    background: var(--md-sys-color-surface);
    padding: 16px 0;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    left: 0;
    right: 0;
}

.app-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.app-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-bar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.app-bar-icon {
    font-size: 2rem;
    text-decoration: none;
    color: var(--md-sys-color-on-surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
}

/* Logo inside app bar */
.app-logo {
    width: 32px;
    height: 32px;
    display: inline-block;
    background-color: var(--md-sys-color-primary);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

/* User Menu Container */
.user-menu-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* User Menu Toggle Button */
.user-menu-toggle {
    background: var(--md-sys-color-surface-container-highest);
    border: none;
    border-radius: var(--md-sys-shape-corner-medium);
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--md-sys-color-on-surface);
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
}

.user-menu-toggle:hover {
    background: var(--md-sys-color-surface-variant);
    border-color: var(--md-sys-color-outline);
}

.user-menu-toggle[aria-expanded='true'] .dropdown-arrow {
    transform: rotate(180deg);
}

.user-menu-toggle .menu-icon {
    font-size: 1.5rem;
}

/* Changelog notification bubble */
.changelog-nav-bubble {
    transform: translate(25%, -25%);
}

/* Theme Toggle Standalone Button (for unauthenticated users) */
.theme-toggle-standalone {
    background: var(--md-sys-color-surface-container-highest);
    border: none;
    border-radius: var(--md-sys-shape-corner-medium);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--md-sys-color-on-surface);
}

.theme-toggle-standalone:hover,
.theme-toggle-standalone:focus {
    background: var(--md-sys-color-surface-variant);
}

.theme-toggle-standalone .theme-mode-icon {
    font-size: 1.5rem;
}
