/*
 * 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.
 */

body {
  background: #f0f0f0;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast {
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  animation: slideInRight 0.5s ease-out forwards;
}

.toast.hide {
  animation: slideOutRight 0.5s ease-in forwards;
}

.tiptap-editor {
  min-height: 150px;
  border: 1px solid #d1d5db; /* Tailwind border-gray-300 */
  border-radius: 0.375rem; /* Tailwind rounded-md */
  padding: 0.5rem; /* Tailwind p-2 */
  outline: none;
}

.tiptap-editor:focus {
  border-color: #3b82f6; /* Tailwind border-blue-500 */
  box-shadow: 0 0 0 1px #3b82f6; /* Tailwind ring-blue-500 */
}

textarea {
  max-height: calc(1.5rem * 6); /* Assuming line height is 1.5rem */
  overflow-y: auto; /* Ensure scroll appears when needed */
}