.translator-container {
  max-width: 1200px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

.language-selector {
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
}

.lang-option {
  flex: 1;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 14px;
  color: #5f6368;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

.lang-option.active {
  color: #1a73e8;
}

.lang-option.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #1a73e8;
}

.swap-button {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1;
}

.swap-button:hover {
  background: #f1f3f4;
}

.swap-icon {
  width: 20px;
  height: 20px;
}

.translation-panels {
  display: flex;
  min-height: 200px;
}

.panel {
  flex: 1;
  position: relative;
  background: #fff;
}

.panel.source {
  border-right: 1px solid #e0e0e0;
}

.panel-content {
  padding: 1.5rem;
  position: relative;
}

.text-input, .text-output {
  width: 100%;
  min-height: 120px;
  border: none;
  outline: none;
  font-size: 22px;
  color: #3c4043;
  resize: none;
  font-family: 'Google Sans Text', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

.text-output {
  background: transparent;
}

.panel-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

.char-counter {
  font-size: 13px;
  color: #5f6368;
}

.panel-actions {
  display: flex;
  gap: 0.5rem;
}

.icon-button {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  color: #5f6368;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-button:hover {
  background: #f1f3f4;
}

.clear-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #5f6368;
  font-size: 18px;
  display: none;
}

.clear-button.visible {
  display: block;
}

.translate-button {
  background: #1a73e8;
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.translate-button:hover {
  background: #1557b0;
}

.translate-button:disabled {
  background: #dadce0;
  cursor: not-allowed;
}

.info-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.info-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.info-card h2 {
  color: #1a73e8;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.info-card h3 {
  color: #3c4043;
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.info-card p {
  color: #5f6368;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-item {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.feature-item h4 {
  color: #3c4043;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-item p {
  color: #5f6368;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .translation-panels {
    flex-direction: column;
  }

  .panel.source {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .swap-button {
    transform: translateX(-50%) rotate(90deg);
  }
}
