/* Application styles */

/* HMW Dialog Animations */
.hmw-dialog {
  border: none;
  padding: 0;
  max-width: none;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hmw-dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  animation: backdropFadeIn 0.2s ease-out;
}

.hmw-dialog.closing::backdrop {
  animation: backdropFadeOut 0.2s ease-in;
}

.hmw-dialog turbo-frame > div {
  animation: dialogSlideIn 0.3s ease-out;
}

.hmw-dialog.closing turbo-frame > div {
  animation: dialogSlideOut 0.2s ease-in;
}

@keyframes backdropFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}

@keyframes backdropFadeOut {
  from {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
  to {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
}

@keyframes dialogSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

/* Success Feedback Animation */
.hmw-success-overlay {
  animation: successFadeIn 0.2s ease-out;
}

.hmw-success-checkmark {
  animation: successBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes successBounce {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Tag Selector Styles */
.tag-option.selected {
  background-color: #fbf7ee;
  font-weight: 600;
  color: #893819;
}

.tag-option.selected::after {
  content: "✓";
  margin-left: 8px;
  color: #893819;
}
