* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f4f6f9;
  color: #333;
}

header {
  background: linear-gradient(to right, #2980b9, #3498db);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 600;
  gap: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.container {
  max-width: 500px;
  margin: 50px auto;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.3s ease-out;
}

h2 {
  margin-top: 0;
  font-size: 20px;
  color: #222;
  text-align: center;
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #444;
}

textarea {
  width: 100%;
  padding: 16px;
  height: 160px;
  border-radius: 12px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  color: #333;
  font-size: 14px;
  resize: vertical;
  transition: border 0.3s ease;
}

textarea:focus {
  border-color: #3498db;
  outline: none;
  background: #fff;
}

.button-container {
  text-align: center;
  margin-top: 24px;
}

button {
  width: 100%;
  background-color: #3498db;
  border: none;
  color: white;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #2980b9;
}

.hasil {
  margin-top: 24px;
  background: #f0f0f0;
  padding: 16px;
  border-radius: 12px;
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 14px;
  color: #333;
}

.loading {
  color: #555;
  font-style: italic;
  margin-top: 24px;
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .container {
    margin: 20px;
    padding: 24px;
  }
}
