/* Menu Bar */

.menu-bar {
  display: flex;
  align-items: center;
  height: 30px;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  padding: 0 4px;
  font-size: 13px;
  user-select: none;
  -webkit-user-select: none;
}

.menu-bar-left {
  display: flex;
  align-items: center;
  height: 100%;
}

.menu-bar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
}

.menu-bar-user-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  margin-right: 6px;
}

.menu-bar-user {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Top-level menu items */
.menu-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.menu-item-label {
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  font-size: 13px;
  font-family: inherit;
  white-space: nowrap;
  transition: color 0.1s, background 0.1s;
}

.menu-item-label:hover,
.menu-item.open .menu-item-label {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

/* Dropdown */
.menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 0;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

.menu-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background 0.1s;
}

.menu-action:hover {
  background: var(--accent-dim);
}

.menu-action:disabled {
  color: var(--text-muted);
  cursor: default;
}

.menu-action:disabled:hover {
  background: none;
}

.menu-action .shortcut {
  color: var(--text-muted);
  font-size: 11px;
  margin-left: 24px;
}

.menu-action .check {
  width: 16px;
  margin-right: 4px;
  text-align: center;
  font-size: 11px;
  flex-shrink: 0;
}

.menu-separator {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}
