.query-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.query-tag {
    display: flex;
    align-items: center;
    background-color: #f8f9fa; /* Darker gray for background */
    border: 1px solid #d6d8db; /* Slightly darker border */
    border-radius: 20px; /* Rounded pill-style tags */
    padding: 6px 14px; /* Consistent padding */
    font-size: 14px;
    color: #495057; /* Darker gray for text */
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15); /* Subtle shadow */
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.query-tag i {
    margin-right: 8px;
    color: #343a40; /* Darker gray for icons */
    font-size: 16px; /* Adjusted size for better alignment */
}

.query-tag .close-tag {
    background: none;
    border: none;
    color: #6c757d; /* Darker gray for close button */
    font-size: 16px; /* Consistent size */
    font-weight: normal; /* Reduce boldness */
    cursor: pointer;
    margin-left: 10px;
    line-height: 1;
    transition: color 0.2s ease;
}

.query-tag .close-tag:hover {
    color: #6c757d; /* Even darker gray on hover */
}

.query-tag:hover {
    background-color: #dee2e6; /* Slightly darker background on hover */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15); /* More prominent shadow */
}

.query-tags {
    max-width: 100%;
    overflow-x: auto; /* Ensure it is scrollable for many tags */
}

.clean-filters-btn {
    display: inline-flex;
    align-items: center;
    background-color: #dc3545; /* Red (Bootstrap Danger) */
    color: #fff;
    border: none;
    border-radius: 20px; /* Same rounded pill style */
    padding: 6px 14px; /* Consistent padding with query-tag */
    font-size: 14px;   /* Matches the query-tag font-size */
    cursor: pointer;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15); /* Subtle shadow for consistency */
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    margin-left: 10px; /* A bit of spacing from query tags */
    white-space: nowrap; /* Prevent text wrapping */
  }
  
  .clean-filters-btn i {
    margin-right: 8px; /* If you decide to include an icon */
  }
  
  .clean-filters-btn:hover {
    background-color: #bd2130; /* Darker red on hover */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
  }
  

/* Styles for the checkbox container and labels */
.sigstruct-checkbox-container {
    padding-left: 8px;
    display: flex;
    align-items: center;
    gap: 1em;              /* space between each checkbox label */
    margin: 10px 0;        /* vertical margin to separate from other content */
    margin-top: 0;
  }
  .sigstruct-checkbox-container label {
    display: flex;
    align-items: center;
    font-weight: normal;
  }
  .sigstruct-checkbox-container input[type="checkbox"] {
    margin-right: 0.3em;   /* space between checkbox and its label text */
  }