// Copyright (C) 2025 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://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 governing permissions and
// limitations under the License.

@import "../../../../assets/theme";
@import "./filter.scss";
@import "./aggregations.scss";

.pf-exp-query-operations {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  .pf-exp-section {
    padding: 1rem;
    border: 1px solid var(--pf-color-border);
    border-radius: 0.5rem;
    background-color: var(--pf-color-background);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);

    h2 {
      margin-top: 0;
      margin-bottom: 1rem;
      font-size: 1.2em;
      font-weight: 500;
    }

    .pf-exp-operations-container {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      align-items: stretch;
    }
  }
}

.pf-exp-editor {
  display: flex;
  gap: 1rem;
  align-items: center;

  .pf-select,
  .pf-text-input {
    flex: 1;
  }

  .pf-exp-delete-button {
    color: var(--pf-color-text-muted);
    &:hover {
      color: var(--pf-color-danger);
    }
  }
}
