.filter-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.filter-checkboxes-container {
  height: 200px;
  max-height: 200px;
  overflow-y: auto;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex: 1;
}

.filter-checkboxes-container::-webkit-scrollbar {
  width: 6px;
}

.filter-checkboxes-container::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 3px;
}

.filter-checkboxes-container::-webkit-scrollbar-thumb {
  background: #ced4da;
  border-radius: 3px;
}

.filter-checkboxes-container::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
}

.form-check {
  margin-bottom: 0.4rem;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.form-check:hover {
  background-color: #f8f9fa;
  border-color: #e9ecef;
}

.form-check-input {
  position: absolute;
  left: 30px;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 2px solid #adb5bd;
  flex-shrink: 0;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--link-color);
  border-color: var(--link-color);
}

.form-check-input:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(33, 121, 184, 0.25);
}

.form-check-label {
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  color: #495057;
  margin-bottom: 0;
  margin-left: 30px;
  line-height: 1.3;
  flex: 1;
  padding-right: 30px;
}

.form-check-input:checked + .form-check-label {
  color: var(--link-color);
  font-weight: 500;
}

.selected-filters-container {
  background: linear-gradient(135deg, #e7f1ff 0%, #d4e6ff 100%);
  border: 2px solid #b6d4fe;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
}

.filter-badge {
  background: linear-gradient(135deg, var(--link-color) 0%, #1a5d8f 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 11px;
  margin-right: 6px;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: default;
}

.filter-badge .remove-filter {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
}

.filter-badge .remove-filter:hover {
  background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .filter-checkboxes-container {
    height: 140px;
    min-height: 140px;
    padding: 8px;
  }

  .form-check {
    padding: 0.25rem 0.3rem;
    margin-bottom: 0.3rem;
  }

  .form-check-label {
    font-size: 0.8rem;
    padding-right: 25px;
  }
}

.filters-applying {
  opacity: 0.7;
  pointer-events: none;
}

.filter-group.has-selection .filter-checkboxes-container {
  border-color: var(--link-color);
  box-shadow: 0 0 0 1px rgba(33, 121, 184, 0.2);
}

.filter-group.has-selection .form-label {
  color: var(--link-color);
  font-weight: 600;
}

.row.g-2 {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.75rem;
}

.filter-group .form-label {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  cursor: default;
}

.filter-icon.text-primary {
  color: var(--link-color) !important;
}

.filter-icon.text-muted {
  color: #6c757d !important;
}

.clear-filters-btn {
  display: none;
}

.filter-panel {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.filter-panel.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.filter-panel.expanded {
    opacity: 1;
}

.filter-toggle-btn {
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-toggle-btn:hover {
    background-color: #f8f9fa;
}

.filter-icon {
    transition: transform 0.3s ease;
}

.filter-icon.rotated {
    transform: rotate(180deg);
}

.filter-group-title {
    margin-top: 0 !important;
    font-weight: bold;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #dee2e6;
    font-size: 1rem;
}

.accordion-body{
    padding: 0 !important;
}

.filter-group-title{
    color: var(--link-color) !important;
}

.filter-item {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.filter-checkboxes-container {
    height: 200px;
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.filter-panel {
    padding-bottom: 0 !important;
}