* {
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, #f1f2f3 0%, #e6e9f0 100%);
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1540px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
}

h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.subtitle {
  font-size: 16px;
  color: #5a6b7c;
  max-width: 95%;
  margin: 0 auto;
  line-height: 1.6;
}

.main-content {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.input-section {
  flex: 1;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.input-section h2 {
  margin-bottom: 20px;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2c3e50;
}

textarea {
  width: 100%;
  height: 550px;
  padding: 20px;
  font-size: 17px;
  border: 2px solid #e0e6ed;
  border-radius: 12px;
  resize: none;
  transition: all 0.3s ease;
  line-height: 1.6;
}

textarea:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
}

.button-group {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-example {
  background: linear-gradient(to right, #4a90e2, #5fa3ff);
  color: white;
}

.btn-clear {
  background: linear-gradient(to right, #ff6b6b, #ff8e8e);
  color: white;
}

.btn-copy {
  background: linear-gradient(to right, #34a853, #4caf50);
  color: white;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(1px);
}

.stats-section {
  flex: 1;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.stats-header h2 {
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2c3e50;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  flex-grow: 1;
}

.stat-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #edf2f7 100%);
  border-radius: 14px;
  padding: 15px 10px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
}

.stat-title {
  font-size: 18px;
  color: #5a6b7c;
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  color: #2c3e50;
}

.stat-desc {
  font-size: 13px;
  color: #7f8c8d;
  margin-top: 8px;
}

.examples-section {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: transform 0.3s ease;
}

.examples-section h2 {
  margin-bottom: 25px;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2c3e50;
}

.examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.example {
  background: linear-gradient(135deg, #f8f9fa 0%, #edf2f7 100%);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.example:hover {
  background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.example-title {
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: #2c3e50;
}

.example-content {
  font-size: 15px;
  color: #5a6b7c;
  line-height: 1.6;
}

footer {
  text-align: center;
  margin-top: 20px;
  color: #5a6b7c;
  font-size: 15px;
  padding: 20px;
}

.highlight {
  color: #4a90e2;
  font-weight: 600;
}

.notification {
  position: fixed;
  top: 30px;
  right: 30px;
  background: #4caf50;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateX(200%);
  transition: transform 0.4s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification.show {
  transform: translateX(0);
}
