body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f9;
  color: #333;
}

.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card .lorem-title {
  margin-top: 0;
  font-size: 26px;
  text-align: center;
  padding: 10px 0;
}

.subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

input[type="number"],
select {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  background-color: #1b4d91;
  color: white;
  padding: 10px 20px;
  border: none;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background-color: #1559c3;
}

.output-card {
  background: white;
  margin-top: 30px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  position: relative;
}

.output-card h2 {
  text-align: center;
  color: #1b4d91;
  margin: 10px 0 20px;
}

.button-row {
  position: absolute;
  top: 20px;
  right: 20px;
}

.button-row button {
  margin-left: 10px;
}

pre {
  background: #f8f9fa;
  padding: 20px;
  font-size: 14px;
  overflow-x: auto;
  min-height: 150px;
  white-space: pre-wrap;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.action-message {
  display: none;
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: #10b981;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: fadeInOut 1.5s ease-in-out forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(10px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}
