body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", sans-serif;
  background-color: #f8f9fa;
}

.center-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.translator-box {
  width: 95%;
  max-width: 1100px;
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.language-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-select {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lang-btn {
  padding: 6px 14px;
  background-color: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.lang-btn:hover {
  background-color: #f1f1f1;
}

.lang-btn.active {
  background-color: #1a73e8;
  color: white;
  border-color: #1a73e8;
}

.center-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

#translate-button {
  background-color: #34a853;
  color: white;
  padding: 8px 16px;
  border: none;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#translate-button:hover {
  background-color: #2c9446;
}

#swap-btn {
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
}

.textarea-row {
  display: flex;
  gap: 10px;
}

.textarea-row textarea {
  width: 100%;
  height: 400px;
  font-size: 15px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: none;
  box-sizing: border-box;
  background-color: #fcfcfc;
}

.char-count-bar {
  text-align: right;
  font-size: 13px;
  color: #666;
}
