// 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 "../common";

.pf-modify-columns-node {
  .pf-exp-node-details-box strong {
    display: block;
    margin-bottom: 4px;
  }

  .pf-exp-node-details-box div {
    font-size: var(--pf-exp-font-size-sm);
    padding: 2px 0;
  }

  .pf-exp-node-details-message {
    font-style: italic;
    color: var(--pf-text-color-light);
  }

  .pf-columns-box-title {
    font-size: var(--pf-exp-font-size-md);
    font-weight: 500;
    margin: 0 0 1rem 0;
  }

  .pf-column {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1px 0;
  }

  .pf-drag-handle {
    opacity: 0;
    cursor: grab;
    transition: opacity 0.2s ease-in-out;
  }

  .pf-column:hover .pf-drag-handle {
    opacity: 1;
  }

  .pf-exp-modify-columns-node-buttons {
    display: flex;
    gap: 8px;
  }

  .pf-exp-switch-wrapper,
  .pf-exp-if-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    margin: 4px 0;
    background: var(--surface-color);
    border: 1px solid var(--separator-color);
    border-radius: 4px;
  }

  .pf-exp-switch-name-row,
  .pf-exp-if-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--separator-color);

    label {
      font-weight: 600;
      font-size: var(--pf-exp-font-size-sm);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--pf-text-color-secondary);
    }
  }

  .pf-exp-switch-component {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0 4px 0;
  }

  .pf-exp-switch-header {
    font-weight: 600;
    font-size: var(--pf-exp-font-size-sm);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--pf-text-color-secondary);
  }

  .pf-exp-switch-case {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--pf-exp-font-size-sm);
    color: var(--pf-text-color-secondary);
  }

  .pf-exp-switch-default-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--pf-exp-font-size-sm);
    color: var(--pf-text-color-secondary);
    margin-bottom: 4px;
  }
}

.pf-exp-node-details-card {
  padding: 4px;
  font-size: var(--pf-exp-font-size-sm);
}

.pf-exp-switch-summary,
.pf-exp-if-summary {
  font-size: var(--pf-exp-font-size-sm);
  padding: 2px 0;
}

.pf-exp-switch-keyword,
.pf-exp-if-keyword {
  font-weight: 600;
  color: var(--pf-primary-color);
}

.pf-exp-column-name {
  font-family: var(--pf-font-family-monospace);
  font-weight: 500;
}

.pf-exp-as-keyword {
  font-style: italic;
  color: var(--pf-text-color-light);
}

.pf-exp-alias-name {
  font-family: var(--pf-font-family-monospace);
  font-weight: 500;
  color: var(--pf-primary-color);
}

.pf-exp-if-component {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0 4px 0;
}

.pf-exp-if-clause,
.pf-exp-else-clause {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--pf-exp-font-size-sm);
  color: var(--pf-text-color-secondary);
}

.pf-exp-if-buttons {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
