/* Flash Animations */
@keyframes flash-enter {
  0% { 
    opacity: 0; 
    transform: scale(0.95) translateY(-10px);
    filter: blur(4px);
  }
  100% { 
    opacity: 1; 
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

@keyframes flash-exit {
  0% { 
    opacity: 1; 
    transform: scale(1) translateY(0);
  }
  100% { 
    opacity: 0; 
    transform: scale(0.95) translateY(-10px);
    filter: blur(4px);
  }
}

.animate-flash-enter {
  animation: flash-enter 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-flash-exit {
  animation: flash-exit 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Trix / ActionText Styling Overrides */
trix-editor {
  border: 1px solid #cbd5e1 !important; /* slate-300 */
  border-radius: 0.75rem !important;    /* rounded-xl */
  padding: 0.75rem 1rem !important;
  font-family: inherit !important;
  font-size: 0.875rem !important;       /* text-sm */
  line-height: 1.25rem !important;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;
  min-height: 12rem !important;
  background-color: white !important;
}

trix-editor:focus {
  border-color: #64748b !important;    /* slate-500 */
  ring-width: 1px !important;
  ring-color: #64748b !important;
  outline: none !important;
}

trix-toolbar {
  margin-bottom: 0.5rem !important;
}

trix-toolbar .trix-button-group {
  border: 1px solid #e2e8f0 !important; /* slate-200 */
  border-radius: 0.5rem !important;
  background-color: #f8fafc !important; /* slate-50 */
}

trix-toolbar .trix-button {
  border-bottom: none !important;
}

trix-toolbar .trix-button--icon::before {
  filter: grayscale(1) !important;
  opacity: 0.5 !important;
}

trix-toolbar .trix-button.trix-active {
  background-color: #f1f5f9 !important; /* slate-100 */
}

trix-toolbar .trix-button.trix-active::before {
  opacity: 1 !important;
}

/* Global Hover Transitions */
a, button, [role="button"], .group {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

/* Specific hover refinements for better feel */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.transition-smooth {
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Inline Flatpickr Styling */
.flatpickr-calendar.inline {
  width: 100% !important;
  box-shadow: none !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 1.5rem !important;
  background: #ffffff !important;
  padding: 1rem !important;
  margin: 0 auto !important;
}

.flatpickr-calendar.inline .flatpickr-innerContainer {
  display: flex !important;
  justify-content: center !important;
}

.flatpickr-calendar.inline .flatpickr-months {
  display: flex !important;
  justify-content: center !important;
}

.flatpickr-calendar.inline .flatpickr-months .flatpickr-month {
  flex: 1 !important;
}

.inline-flatpickr-container .flatpickr-day.selected {
  background: #0f172a !important;
  border-color: #0f172a !important;
}

.inline-flatpickr-container .flatpickr-day:hover {
  background: #f1f5f9 !important;
}

.inline-flatpickr-container .flatpickr-time {
  border-top: 1px solid #f1f5f9 !important;
  margin-top: 1rem !important;
  padding-top: 0.5rem !important;
}

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