/* ===========================================================================
 * Užsapno · dream_styles.css — voice recorder + small dream-specific helpers
 * Voice button styles use the design tokens; see DESIGN_SYSTEM.md.
 * ========================================================================= */

/* Voice recorder button (the .dream-voice-button base class is defined
   inline in the dream form view; these rules add state styling) */
button[data-voice-recorder-target="startButton"].recording {
  background: var(--color-amaranth) !important;
  color: var(--color-parchment) !important;
}

button[data-voice-recorder-target="startButton"].recording:hover {
  background: #8E5564 !important;
}

button[data-voice-recorder-target="startButton"].processing {
  background: var(--color-parchment-dim) !important;
  cursor: not-allowed !important;
  animation: dream-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

button[data-voice-recorder-target="startButton"]:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

@keyframes dream-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* Dropdown menu (used by application layout user dropdown) -------------- */
.relative .dropdown-menu {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.relative:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Dream form textarea minimums ---------------------------------------- */
textarea[name="dream[description]"] {
  min-height: 150px !important;
}

textarea[name="dream[connections]"],
textarea[name="dream[associations]"],
textarea[name="dream[actions]"] {
  min-height: 100px !important;
}
