* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  position: relative;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.subtitle {
  opacity: 0.9;
  font-size: 1.1rem;
}

.main-content {
  display: flex;
  padding: 20px;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 25px;
}

.input-section, .output-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#outputArea{
  height: 570px;
}

.section-title {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.section-title span {
  margin-right: 10px;
  font-size: 24px;
}

textarea {
  width: 100%;
  height: 300px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  resize: vertical;
  transition: border-color 0.3s;
}

textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.options {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.option-group {
  margin-bottom: 15px;
}

.option-group:last-child {
  margin-bottom: 0px;
}

.option-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #34495e;
  display: flex;
  align-items: center;
}

.option-title span {
  margin-right: 8px;
  font-size: 20px;
}

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-item {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio-item input {
  margin-right: 6px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}

button {
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button span {
  font-size: 18px;
}

#processBtn {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  flex: 1;
}

#exampleBtn {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

#copyBtn {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
}

#clearBtn {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

button:active {
  transform: translateY(1px);
}

.output-section textarea {
  background-color: #f9f9f9;
}

.footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  border-radius: 12px;
}

.footer-content {
  max-width: 100%;
  margin: 0 auto;
}

.footer h2 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.intro-item {
  margin-bottom: 15px;
  line-height: 1.6;
}
.intro-item:last-child {
  margin-bottom: 0;
}

.note {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin: 10px 0;
}

.counter {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 14px;
  color: #7f8c8d;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #3498db, transparent);
  margin: 25px 0;
}
