/**
 * Styling for Views Exposed Forms
 */

/* General form styling */
/* .views-exposed-form {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 1.25rem;
} */

/* Form items layout */
/* .views-exposed-form .form-item {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
} */

/* Labels styling */
.views-exposed-form label {
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: #333;
  font-size: 0.8125rem;
}

/* Hide fieldset legends visually but keep them accessible */
.views-exposed-form fieldset legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Text inputs styling */
.views-exposed-form input.form-text {
  padding: 0.6rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  width: 100%;
  background-color: white;
  font-size: 0.8125rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.views-exposed-form input.form-text:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: 0;
}

/* Select inputs styling */
.views-exposed-form select.form-select {
  padding: 0.6rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  width: 100%;
  background-color: white;
  appearance: none;
  font-size: 0.8125rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.views-exposed-form select.form-select:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: 0;
}

/* Submit button styling */
.views-exposed-form .form-actions {
  margin-top: 1.5rem;
}

.views-exposed-form .form-submit {
  padding: 0.6rem 1.25rem;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8125rem;
  transition: background-color 0.15s ease-in-out;
}

.views-exposed-form #edit-submit-arheio {
  background-color: #003068;
}

.views-exposed-form #edit-submit-arheio:hover {
  background-color: #002552;
}

.views-exposed-form #edit-reset {
  background-color: #e5e7eb;
  color: #1f2937;
}

.views-exposed-form #edit-reset:hover {
  background-color: #d1d5db;
}

/* Responsive adjustment for small screens */
@media (max-width: 767px) {
  .views-exposed-form {
    flex-direction: column;
    flex-wrap: wrap !important;
    align-items: stretch;
  }

  .views-exposed-form .form-item,
  .views-exposed-form .form-actions {
    width: 100%;
  }
}

/* Dark mode support */
.tw-dark .views-exposed-form {
  background: #2b3035;
}

.tw-dark .views-exposed-form label {
  color: #e6e6e6;
}

.tw-dark .views-exposed-form input.form-text,
.tw-dark .views-exposed-form select.form-select {
  background-color: #212529;
  border-color: #495057;
  color: #e6e6e6;
}

.tw-dark .views-exposed-form input.form-text:focus,
.tw-dark .views-exposed-form select.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.tw-dark .views-exposed-form .form-submit {
  background-color: #0d6efd;
}

.tw-dark .views-exposed-form .form-submit:hover {
  background-color: #0a58ca;
}
