/* ============================================================
   DiveLog — New Dive Page Styles
   Solo stili non coperti da DS components.
   DS components usati: form-field, fieldset, button, card,
                         inline-header, modal, alert, file_upload,
                         toast, app-shell
   Token: css/tokens.css
   ============================================================ */

/* ── Form wrapper per max-width su desktop ── */
.new-dive-form-wrapper {
  max-width: 750px;
  margin: 0 auto;
  width: 100%;
}

/* ── Corso select wrapper (bottone affiancato) ── */
.corso-select-wrapper {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}

.corso-select-wrapper .form-field__input {
  flex: 1;
}

/* ── Decorative Bubbles ── */
.dashboard-bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -20px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.15;
  animation: bubble-rise linear infinite;
  pointer-events: none;
}

@keyframes bubble-rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.15;
  }
  100% {
    transform: translateY(-100vh) scale(0.5);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble {
    animation: none;
    display: none;
  }
}

/* ── Responsive ── */
@media (max-width: 599px) {
  .corso-select-wrapper {
    flex-direction: column;
  }
  .corso-select-wrapper .button {
    width: 100%;
  }
}

@media (max-width: 320px) {
  .new-dive-form-wrapper {
    padding: 0;
  }
}