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

/* Highlight fade-out on newly created entry */
@keyframes highlight-fade {
  0%   { box-shadow: inset 0 0 0 2px var(--color-ok); background-color: color-mix(in srgb, var(--color-ok) 12%, transparent); }
  60%  { box-shadow: inset 0 0 0 2px var(--color-ok); background-color: color-mix(in srgb, var(--color-ok) 12%, transparent); }
  100% { box-shadow: inset 0 0 0 0px transparent; background-color: transparent; }
}

.highlight-new {
  animation: highlight-fade 2.5s ease forwards;
}

/* Safe area utility — accounts for notch/status bar in PWA standalone mode */
.top-safe {
  top: max(1rem, calc(env(safe-area-inset-top, 0px) + 0.5rem));
}

.pt-safe {
  padding-top: max(1.5rem, calc(env(safe-area-inset-top, 0px) + 0.5rem));
}

.pt-safe-sm {
  padding-top: max(1rem, calc(env(safe-area-inset-top, 0px) + 0.5rem));
}

/* Combobox dropdown */
.combobox-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  margin-top: 2px;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.combobox-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.75rem;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-primary);
  font-size: 0.875rem;
}

.combobox-option:hover {
  background: var(--color-surface-sunken);
}

.combobox-option__count {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
}
