/********************************************************************************
 * Eclipse Tractus-X - Industry Core Hub Frontend
 *
 * Copyright (c) 2025 Contributors to the Eclipse Foundation
 *
 * See the NOTICE file(s) distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Apache License, Version 2.0 which is available at
 * https://www.apache.org/licenses/LICENSE-2.0.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the
 * License for the specific language govern in permissions and limitations
 * under the License.
 *
 * SPDX-License-Identifier: Apache-2.0
********************************************************************************/

@use '../../config/variables' as *;
@use '../../config/mixins';

.parts-discovery-sidebar {
  background-color: #056b9991 !important;

  @media (max-width: 960px) {
    position: static !important;
    height: auto !important;
  }
  
  span, h6, h4, p {
    color: $brand-text;
  }

  span.MuiSlider-root span.MuiSlider-thumb {
    color: $dropdown-hover-bg;
  }

  .sidebar-section {
    padding: 16px;
  }

  .sidebar-section-title {
    color: $brand-text;
    margin-bottom: 8px;
    font-weight: 600;
  }

  .sidebar-text-field {
    .MuiOutlinedInput-root {
      background-color: rgba(255, 255, 255, 0.1);
      color: $brand-text;

      .MuiOutlinedInput-notchedOutline {
        border-color: rgba(255, 255, 255, 0.3);
      }

      &:hover .MuiOutlinedInput-notchedOutline {
        border-color: rgba(255, 255, 255, 0.5);
      }

      &.Mui-focused .MuiOutlinedInput-notchedOutline {
        border-color: $brand-text;
      }
    }

    .MuiInputLabel-root {
      color: rgba(255, 255, 255, 0.7);

      &.Mui-focused {
        color: $brand-text;
      }
    }

    .MuiSelect-icon {
      color: $brand-text;
    }
  }

  .filter-group {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;

    .filter-group-title {
      width: 100%;
      margin-bottom: 4px;
      color: rgba(255, 255, 255, 0.8);
      font-weight: 500;
      font-size: 0.7rem;
    }
  }

  .filter-chip {
    height: 24px;
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: $brand-text;
    border: 1px solid rgba(255, 255, 255, 0.3);

    &:hover {
      background-color: rgba(255, 255, 255, 0.25);
    }

    .MuiChip-deleteIcon {
      color: rgba(255, 255, 255, 0.8);

      &:hover {
        color: $brand-text;
      }
    }
  }
}
