/* styles.css */
:root {
  --primary-color: #8e6c88; /* Elegant mauve */
  --secondary-color: #d4b8c7; /* Soft lavender */
  --accent-color: #a37b73; /* Muted terracotta */
  --text-color: #333;
  --light-bg: #f9f6f8;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body {
  font-family: 'Cormorant Garamond', serif;
  background-color: var(--light-bg);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 30px auto;
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 15px;
}

h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--secondary-color);
}

h4, h5 {
  color: var(--primary-color);
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

label {
  font-weight: 500;
  margin-top: 12px;
  display: block;
  color: var(--primary-color);
  font-size: 0.95rem;
}

input, select, textarea {
  width: 100%;
  padding: 12px 15px;
  margin-top: 8px;
  border: 1px solid #e0d0d9;
  border-radius: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(142, 108, 136, 0.2);
}

button {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 25px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

button:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

textarea {
  width: 100%;
  height: 350px;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #e0d0d9;
  border-radius: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-x: auto;
  background-color: rgba(255, 255, 255, 0.9);
}

#output-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
}

.alert {
  padding: 15px;
  border-radius: 6px;
  margin-top: 20px;
}

.row {
  margin-bottom: 15px;
}

/* Add some decorative elements */
.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  border-radius: 12px 12px 0 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 20px;
    margin: 15px;
  }
  
  h2 {
    font-size: 1.8rem;
  }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.container > * {
  animation: fadeIn 0.5s ease forwards;
}