/*
 * 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 flash-highlight {
  0% { background-color: rgba(253, 224, 71, 0.5); }
  100% { background-color: transparent; }
}

.animate-flash {
  animation: flash-highlight 2s ease-out;
}

/* Sidebar customization for collapsed state */
aside.collapsed .group {
  justify-content: center;
  position: relative;
}

aside.collapsed .group svg {
  margin-right: 0 !important;
}

aside.collapsed .sidebar-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  margin-left: 0 !important;
  font-size: 0.65rem;
  padding: 0.125rem 0.25rem;
  min-width: 1rem;
  justify-content: center;
  border: 1px solid #f9fafb; /* bg-gray-50 */
  z-index: 10;
}

:is(.dark) aside.collapsed .sidebar-badge {
  border-color: #111827; /* bg-gray-900 */
}
