/* Toolbar background band — absolutely positioned behind toolbar elements */
#app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0px;
    right: 0;
    height: var(--toolbar-height, 37px);
    background: url("../images/noted_logo_background.png") center 10px / auto 17px no-repeat,
                url("../images/low-contrast-linen.png") repeat;
    background-color: #1f1f1ffe;
    z-index: 1;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Toolbar — absolute overlay, not in document flow */
#toolbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--toolbar-height, 37px);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px 0;
    z-index: 2;
    pointer-events: none;
    border-bottom: 0.5px solid #666666;
    margin: 0px 0px 0px 48px;
}

/* Re-enable pointer events on interactive children */
#toolbar > * {
    pointer-events: auto;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-spacer {
    flex: 1;
}

.toolbar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.connected-users {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 5px;
}

.user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #8bc78b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #333333;
}

.toolbar-title {
    height: 16px;
}

.toolbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.toolbar-logo {
    height: 18px;
    width: auto;
}

.toolbar-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.toolbar-icon-btn:hover {
    background: #c8e6c0;
    color: var(--text-primary);
}

.toolbar-settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.toolbar-settings-btn:hover {
    background: #c8e6c0;
    color: var(--text-primary);
}

.toolbar-separator {
    width: 1px;
    height: 18px;
    background: #c0a86066;
    margin: 0 4px;
}

.toolbar-btn-active {
    background: #a8dda0;
}
