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

@keyframes panel-flash {
  0%, 55% {
    box-shadow: 0 0 0 4px rgb(79 70 229), 0 0 0 14px rgb(199 210 254);
  }
  100% {
    box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent;
  }
}

.panel-flash {
  animation: panel-flash 1.6s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .panel-flash {
    animation-duration: 0.6s;
  }
}

.page-topbar {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto 0;
}

.page-topbar-inner {
  padding-left: 22rem;
}

.page-shell {
  padding-top: 5rem;
  padding-bottom: 2rem;
}

.page-side-menu {
  position: fixed;
  z-index: 20;
  top: 5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  width: 18rem;
  flex-direction: column;
  gap: 1.5rem;
}

.page-side-main {
  margin-left: 20rem;
  min-width: 0;
}

.page-side-menu [data-panel-nav-item] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-decoration: none;
}

.page-side-menu [data-panel-nav-item]:hover {
  background-color: #fff;
}

.page-side-menu .panel-nav-current,
.page-side-menu .panel-nav-current:hover {
  background-color: #0f172a;
  color: #fff;
  font-weight: 500;
}

.page-side-menu .panel-nav-handle {
  display: inline-flex;
  flex: none;
  cursor: grab;
}

.page-side-menu .panel-nav-handle svg {
  width: 0.875rem;
  height: 0.875rem;
}

dialog.library-picker {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(90rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: 0;
  transform: translate(-50%, -50%);
}

dialog.library-picker::backdrop {
  background: rgb(15 23 42 / 0.72);
}

.page-side-menu .panel-nav-label {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
