/* Toolbar and header styles */
.toolbar {
  height: 50px;
  background: var(--surface-color);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
  justify-content: space-between;
  box-sizing: border-box;
}

.actions button,
.btn-tool {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 30px; /* Space between logo and actions */
}

.image-logo img {
  height: 32px;
  display: block;
}

.logo {
  font-weight: bold;
  font-size: 18px;
}
.logo-robo {
  color: var(--text-color); /* ฟ้า/ไซไฟ */
}

.logo-python {
  color: var(--text-color); /* เหลือง python */
}

#status {
  font-size: 12px;
  color: var(--secondary-text);
  width: 50px;
  text-align: right;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.github-container {
  display: flex;
  min-width: 100px;
  justify-content: flex-end;
  padding: 10px 0 10px 10px; /* Remove right padding to get closer to edge */
  margin-left: auto; /* Push to the far right */
  gap: 20px; /* Increase gap between github and tour buttons */
  align-items: center;
}

.github-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: var(--text-color);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.github-button:hover {
  opacity: 0.8;
}

.btn-tour-icon {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s,
    color 0.2s;
  border-radius: 50%;
}

.btn-tour-icon:hover {
  color: var(--secondary-text);
  transform: scale(1.1);
}


/* Language Switcher */
.lang-switcher {
  display: flex;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  height: 28px;
  margin-right: -10px; /* Adjust spacing near github button */
}

.lang-btn {
  background: none;
  border: none;
  color: var(--secondary-text);
  padding: 0 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
}

.lang-btn.active {
  background: var(--primary-color);
  color: #fff;
}
