/* Cross-browser compatibility fixes for Zotero Search Form
 * This file contains ONLY essential browser-specific fixes.
 * All styling (colors, sizes, spacing) should be handled by the theme.
 */

/* Firefox-specific: Remove native select styling for consistent appearance with other browsers */
.zotero-search-container #itemType.form-select {
  -moz-appearance: none;
  appearance: none;
}

/* Anchor offset for quick-search deep link target. */
#zoteroSearchForm {
  scroll-margin-top: 24px;
}

@media (max-width: 768px) {
  #zoteroSearchForm {
    scroll-margin-top: 72px;
  }
}

/* Lightweight loading indicator shown during Zotero API requests. */
.zotero-search-container .loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 0;
  min-height: 28px;
}

.zotero-search-container .loading-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-top-color: #0d3760;
  border-radius: 50%;
  animation: zotero-loading-spin 0.8s linear infinite;
}

.zotero-search-container .loading-text {
  font-size: 0.95rem;
}

@keyframes zotero-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

