/* ✅ Enhanced Input Styling - Modern, Accessible, Consistent */

.topbar .left-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.emoji-toggle {
  font-size: 18px;
  line-height: 1;
}

.controls.card {
  padding: 20px;
}

/* Label styling - unified for all inputs */
.controls.card label,
.controls.card .field label {
  color: var(--ink);
  font-family: Cairo, system-ui, Tahoma, Arial;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* ===== Select Dropdown Styling ===== */
.select-wrap {
  position: relative;
}

.select-wrap .sel {
  width: 100%;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--sea-600);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  padding-inline-start: 2.2rem;
  outline: none;
  appearance: none; /* Remove native dropdown arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: Cairo, system-ui, Tahoma, Arial;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-wrap .sel:hover {
  border-color: var(--sea-500);
}

.select-wrap .sel:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.select-wrap .sel option {
  font-family: Cairo, system-ui, Tahoma, Arial;
  color: #0f172a;
  background: #ffffff;
  padding: 8px;
}

.dark .select-wrap .sel {
  background: var(--card);
  color: var(--ink);
  border-color: var(--sea-600);
}

.dark .select-wrap .sel:hover {
  border-color: #60a5fa;
}

.dark .select-wrap .sel:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.dark .select-wrap .sel option {
  background: #1e293b;
  color: #f1f5f9;
}

/* Custom dropdown icon - replaces native arrow */
.select-wrap .sel-icon {
  position: absolute;
  inset-inline-start: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  color: var(--sea-500);
  transition: color 0.2s ease;
}

.select-wrap .sel-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.select-wrap .sel:focus ~ .sel-icon,
.select-wrap .sel:hover ~ .sel-icon {
  color: var(--primary);
}

.dark .select-wrap .sel-icon {
  color: #60a5fa;
}

.dark .select-wrap .sel:focus ~ .sel-icon,
.dark .select-wrap .sel:hover ~ .sel-icon {
  color: #93c5fd;
}

/* Muted text helper */
.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

#out h2,
#out h3 {
  color: var(--sea-600);
  margin: 0 0 8px;
}
.dark #out h2,
.dark #out h3 {
  color: #93c5fd;
}

#chips .chip {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.1);
  color: var(--sea-600);
  font-size: 0.82rem;
  border: 1px solid var(--sea-600);
  margin-inline-start: 6px;
  font-family: Cairo, system-ui, Tahoma, Arial;
}
.dark #chips .chip {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: #3b82f6;
}

#regen {
  display: none;
}

.brand-name {
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: clamp(44px, 6.2vw, 84px);
  margin: 0;
  color: #1e40af;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}
.dark .brand-name {
  color: #93c5fd;
  text-shadow: none;
}
.brand-tag {
  color: var(--muted);
  font-weight: 700;
  margin-top: 0.4rem;
}

@media (max-width: 640px) {
  .brand-name {
    font-size: 2.4rem;
  }
}
