/* public/css/sub-header.css */
/* Improved global filter styles */

.sub-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem;
    padding: 1rem;
    background-color: var(--background-light);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 10;
    position: relative;
  }
  
  .sub-header .text-filter {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    transition: all 0.2s ease;
  }
  
  .sub-header .category-filter {
    min-width: 180px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  /* Focus styles */
  .sub-header .text-filter:focus,
  .sub-header .category-filter:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
  }
  
  /* Hover styles */
  .sub-header .text-filter:hover,
  .sub-header .category-filter:hover {
    border-color: #b0b0b0;
  }
  
  /* Hide old filter controls in individual views */
  .filter-controls {
    display: none !important;
  }
  
  /* Responsive styles */
  @media (max-width: 768px) {
    .sub-header {
      flex-direction: column;
      margin: 0.5rem;
      padding: 0.75rem;
    }
    
    .sub-header .text-filter,
    .sub-header .category-filter {
      width: 100%;
      padding: 0.5rem 0.75rem;
    }
  }
  
  /* Add a clear icon for text filter */
  .text-filter::-webkit-search-cancel-button,
  .text-filter::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
  }
  
  .text-filter::-ms-clear {
    display: none;
  }
  
  /* No plants message styling */
  .no-plants-message {
    padding: 2rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--light-text);
    background-color: var(--background-light);
    border-radius: 8px;
    margin: 1rem;
  }