/* Serial port controls styling */
.serial-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  margin-left: 20px;
}

.serial-port-button {
  background-color: #6c7fe8;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.serial-port-button:hover {
  background-color: #5b6ed7;
  transform: translateY(-1px);
}

.serial-port-button.connected {
  background-color: #4caf50;
}

.serial-port-button.error {
  background-color: #f44336;
}

.baud-rate-selector {
  background-color: #1e1e2e;
  color: #efefef;
  border: 1px solid #3d3d4d;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 13px;
  font-family: "Inter", sans-serif;
  cursor: pointer;
}

.baud-rate-selector:focus {
  outline: none;
  border-color: #6c7fe8;
  box-shadow: 0 0 0 2px rgba(108, 127, 232, 0.25);
}

/* Make the header more responsive with the new elements */
@media (max-width: 900px) {
  .header {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 16px;
  }

  .serial-controls {
    order: 3;
    margin-left: 0;
    margin-top: 8px;
    margin-bottom: 8px;
    width: 100%;
  }

  .header-nav {
    margin-left: auto;
  }
}
