/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Dialog Modals */
/* Custom styles for native <dialog> elements */
dialog {
  margin: auto;
  padding: 0;
  border: none;
  max-width: min(90vw, 672px);
  max-height: 90vh;
}

/* Backdrop styling with blur effect */
dialog::backdrop {
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Ensure dialog is centered vertically and horizontally */
dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Float Animation for Marketing Pages */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Metronome beat indicator animation */
.beat-flash {
  transform: scale(1.15);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
}

/* Hide scrollbar while maintaining scroll functionality */
.scrollbar-hide {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;  /* Chrome, Safari, Opera */
}

/* Toast UI Editor - constrain height and make scrollable */
.toastui-editor-defaultUI {
  max-height: 400px;
  display: flex;
  flex-direction: column;
}

.toastui-editor-defaultUI .toastui-editor-main {
  flex: 1;
  overflow: hidden;
}

.toastui-editor-defaultUI .toastui-editor-main .toastui-editor-ww-container {
  height: 100% !important;
}

.toastui-editor-defaultUI .toastui-editor-main .toastui-editor-ww-container .toastui-editor-contents {
  max-height: 320px;
  overflow-y: auto !important;
}
