* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
  line-height: 1.6;
  padding: 30px;
  max-width: 1400px;
  margin: 0 auto;
  background-color: #f0f2f5;
  color: #1a202c;
}

header {
  position: relative;
  background: linear-gradient(135deg, #4299e1, #2c5282);
  padding: 40px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

h1 {
  text-align: center;
  margin-bottom: 15px;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.description {
  text-align: center;
  color: #e2e8f0;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

.translation-container {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.translation-box {
  flex: 1;
  position: relative;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.language-label {
  font-weight: 600;
  color: #3182ce;
  margin-bottom: 12px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #3182ce;
  border-radius: 50%;
}

textarea {
  width: 100%;
  height: 400px;
  padding: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  resize: none;
  font-size: 16px;
  transition: all 0.3s ease;
  line-height: 1.6;
  margin-bottom: 10px;
}

textarea:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.char-count {
  position: relative;
  align-self: flex-end;
  color: #718096;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 15px;
}

.char-count.error {
  color: #e53e3e;
  font-weight: 600;
}

.error-message {
  position: relative;
  color: #e53e3e;
  font-size: 0.9rem;
  padding: 8px 12px;
  background-color: #fff5f5;
  border-radius: 4px;
  border-left: 4px solid #e53e3e;
  display: none;
  margin-top: 10px;
  white-space: nowrap;
}

.copy-btn {
  position: absolute;
  bottom: 75px;
  right: 35px;
  padding: 8px 16px;
  background-color: #3182ce;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-btn:hover {
  background-color: #2c5282;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copy-btn:active {
  transform: translateY(0);
}

.faq-section {
  margin-top: 80px;
  padding: 0 20px;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 50px;
  color: #2d3748;
  font-size: 2rem;
  font-weight: 700;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  padding: 25px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
  color: #2c5282;
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 600;
}

.faq-item p {
  color: #4a5568;
  line-height: 1.7;
  font-size: 1rem;
}

textarea:disabled {
  background-color: #f7fafc;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

@media (max-width: 768px) {
  .translation-container {
    flex-direction: column;
  }

  body {
    padding: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  .description {
    font-size: 1rem;
  }

  .translation-box {
    padding: 15px;
  }

  textarea {
    height: 250px;
  }
}

.language-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.lang-link {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.lang-link:hover {
  opacity: 1;
}

.lang-link.active {
  opacity: 1;
  font-weight: 700;
  border-bottom: 2px solid white;
}