/* Category Filters - UI Enhancements */

/* Keep RTL alignment and compact spacing */
.filters-form .form-group {
  margin-bottom: 0.75rem;
}

.filters-form label {
  font-weight: 600;
}

.filters-form select,
.filters-form input[type="text"],
.filters-form input[type="search"] {
  direction: rtl;
}

/* On small screens, add some gaps between columns */
@media (max-width: 576px) {
  .filters-form .form-row {
    row-gap: 10px;
  }
}

/* Optional: style a subtle loading state when submitting (can be toggled via JS if needed) */
body.filters-submitting::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.4);
  z-index: 9998;
}
body.filters-submitting::after {
  content: '\f110'; /* Font Awesome spinner */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  color: #333;
  animation: cf-spin 1s linear infinite;
  z-index: 9999;
}

@keyframes cf-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
