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

/* Edit Drawer — transition utilities */
.drawer-panel {
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer-panel-mobile {
  transform: translateY(100%);
}
.drawer-panel-mobile.drawer-open {
  transform: translateY(0);
}
@media (min-width: 768px) {
  .drawer-panel-desktop {
    transform: translateX(100%);
  }
  .drawer-panel-desktop.drawer-open {
    transform: translateX(0);
  }
}
.drawer-backdrop {
  transition: opacity 300ms ease;
  opacity: 0;
}
.drawer-backdrop.drawer-open {
  opacity: 1;
}

/* Flash Notice Styles */
.flash-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  max-width: 28rem;
}

.flash-message {
  margin-bottom: 1rem;
  padding: 1rem 3rem 1rem 1rem;
  border-radius: 0.5rem;
  border: 2px solid;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  position: relative;
  font-size: 0.875rem;
  line-height: 1.5;
}

.flash-message.notice {
  background-color: #F3E8FF;
  border-color: #B388FF;
  color: #581C87;
}

.flash-message.alert {
  background-color: #FEF9E7;
  border-color: #D4A020;
  color: #654708;
}

.flash-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #737373;
  transition: color 0.15s ease-in-out;
}

.flash-close:hover {
  color: #404040;
}

.flash-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Onboarding carousel transitions */
.onboarding-slide {
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1), opacity 400ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-slide {
    transition: none;
  }
}
