@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-pink: #f1b0c8;
  --text-dark: #333333;
  --border-radius-lg: 24px;
  --border-radius-sm: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Critical: #root must be full width so flex body doesn't collapse it */

#root {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: linear-gradient(rgb(255, 240, 245) 0%, rgb(255, 255, 255) 100%);
  background-attachment: fixed;
  color: #5c5c5c;
  min-height: 100vh;
  width: 100%;
  padding: 30px 24px;
  overflow-x: hidden;
}

/* Floating icons */

.floating-icons {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

.icon {
  position: absolute; font-size: 24px; opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.icon-blossom { top: 12%; left: 10%; animation-delay: 0s; }

.icon-heart { top: 18%; right: 15%; animation-delay: 1s; }

.icon-sparkle { top: 45%; left: 5%; animation-delay: 2s; }

.icon-unicorn { top: 50%; right: 8%; animation-delay: 3.5s; }

.icon-moon { bottom: 15%; left: 12%; animation-delay: 5s; }

/* Layout */

.container {
  max-width: 900px;
  width: 100%;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.main-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(241, 176, 200, 0.18);
  text-align: left;
  width: 100%;
}

/* Form */

.form-group { margin-bottom: 1.1rem; }

.label-hint {
  font-weight: 400; font-size: 0.8rem; color: #aaa; margin-left: 4px;
}

label {
  display: block; margin-bottom: 0.5rem;
  font-weight: 600; font-size: 0.85rem; color: var(--text-dark);
}

textarea, input[type="text"], select {
  width: 100%; padding: 0.65rem 1rem;
  background: #fdfdfd; border: 1.5px solid #f0f0f0;
  border-radius: var(--border-radius-sm);
  font-family: inherit; font-size: 0.9rem; color: #333;
  transition: border-color 0.2s;
}

textarea:focus, input[type="text"]:focus, select:focus {
  outline: none; border-color: var(--primary-pink); background: #fff;
}

textarea { min-height: 90px; resize: vertical; }

/* Advanced toggle */

.advanced-toggle {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem 1rem; margin-bottom: 0;
  background: #fdf5f8; border: 1.5px solid #f5dde6;
  border-radius: var(--border-radius-sm);
  cursor: pointer; font-weight: 600; font-size: 0.85rem; color: #c77a99;
  user-select: none; transition: background 0.2s;
}

.advanced-toggle:hover { background: #fbedf3; }

.toggle-arrow { font-size: 0.7rem; }

/* Advanced panel */

.advanced-panel {
  margin-top: 0.75rem;
  padding: 1rem;
  background: #fdf8fb;
  border: 1.5px solid #f5dde6;
  border-radius: var(--border-radius-sm);
}

.advanced-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem; margin-bottom: 0.9rem;
}

.checkbox-item {
  display: flex; align-items: center; padding: 0.55rem 0.75rem;
  background: #fff; border: 1.5px solid #f0f0f0;
  border-radius: 8px; cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 1rem; height: 1rem; margin-right: 0.5rem;
  accent-color: var(--primary-pink); flex-shrink: 0;
}

.checkbox-item label {
  margin: 0 !important; font-size: 0.78rem !important;
  font-weight: 500; color: #666; cursor: pointer;
}

.adv-fields { display: flex; flex-direction: column; gap: 0.6rem; }

.adv-field label { margin-bottom: 0.3rem; font-size: 0.8rem; color: #888; }

/* Buttons */

.button-group {
  display: flex; gap: 0.75rem; margin-top: 1.25rem;
}

.btn {
  flex: 1; padding: 0.8rem 1rem;
  border-radius: var(--border-radius-sm);
  font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: none; transition: all 0.25s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-pink), #ff9ebf);
  color: white; box-shadow: 0 6px 18px rgba(241, 176, 200, 0.4);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(241, 176, 200, 0.55); }

.btn-secondary {
  background: #fff; color: var(--text-dark);
  border: 1.5px solid #f0f0f0; box-shadow: none;
}

.btn-secondary:hover { border-color: var(--primary-pink); color: var(--primary-pink); }

/* Result */

.result-area {
  margin-top: 1.1rem; padding: 1rem;
  background: #fff5f8; border: 1.5px dashed #f1b0c8;
  border-radius: var(--border-radius-sm);
  word-break: break-all; font-family: monospace;
  font-size: 0.8rem; color: #777; position: relative;
}

.copy-success {
  position: absolute; top: -10px; right: 12px;
  background: #ff9ebf; color: white;
  padding: 2px 8px; border-radius: 4px; font-size: 0.7rem;
}

@media (max-width: 560px) {
  .advanced-grid { grid-template-columns: repeat(2, 1fr); }
  .button-group { flex-direction: column; }
}
