* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #111;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(10, 10, 10, 0.15);
}

h1 {
  color: #667eea;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
  color: #764ba2;
  margin-bottom: 15px;
  font-size: 1.3em;
  border-bottom: 3px solid #667eea;
  padding-bottom: 10px;
}

input,
textarea {
  display: block;
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background-color: #f9f9ff;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

button {
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-top: 8px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

button:active {
  transform: translateY(0);
}

section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9ff;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

#output {
  white-space: pre-wrap;
  word-wrap: break-word;
  background: #1e293b;
  color: #e0e7ff;
  padding: 15px;
  border-radius: 6px;
  margin-top: 15px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  max-height: 400px;
  overflow-y: auto;
  line-height: 1.5;
  border: 1px solid #334155;
}

#output::-webkit-scrollbar {
  width: 8px;
}

#output::-webkit-scrollbar-track {
  background: #0f172a;
  border-radius: 4px;
}

#output::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 4px;
}

#output::-webkit-scrollbar-thumb:hover {
  background: #764ba2;
}
