.system-menu-container {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 2000;
}

.system-menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: rgba(20, 20, 20, 0.7);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.system-menu-toggle svg {
  width: 24px;
  height: 24px;
}

.system-menu-toggle:hover {
  background-color: var(--accent-color);
  color: var(--text-primary);
  transform: scale(1.1);
}

.system-menu-toggle:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  background-color: rgba(229, 9, 20, 0.8);
}

.system-menu-overlay {
  position: absolute;
  top: 50px;
  right: 0;
  background-color: rgba(28, 28, 28, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  min-width: 200px;
  padding-top: 8px;
  animation: fadeInMenu 0.2s ease-out;
}

.system-menu-overlay .legenda-content {
  --legenda-content-padding: 0;
}

@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.system-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.system-menu-item {
  padding: 12px 20px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.system-menu-item:hover,
.system-menu-item.focused {
  background-color: var(--accent-color);
  color: var(--text-primary);
}
