.text-converter-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.text-editor textarea {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  transition: border-color 0.3s;
}

.text-editor textarea:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.controls {
  margin-bottom: 20px;
}

.case-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.case-buttons button {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  background-color: #333;
  color: white;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.case-buttons button:hover {
  background-color: #555;
}

.case-buttons button:active {
  transform: scale(0.98);
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.action-buttons button {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  background-color: #4a90e2;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.action-buttons button:hover {
  background-color: #3a7bc8;
}

.action-buttons button:active {
  transform: scale(0.98);
}

.counters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 6px;
  font-size: 14px;
}

.counters div {
  display: flex;
  justify-content: space-between;
}

.counters span {
  font-weight: 600;
}

@media (max-width: 600px) {
  .case-buttons {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  .counters {
    grid-template-columns: 1fr;
  }
}