import { css } from 'lit';
export default css `
  :host {
    display: block;
    font-family: var(--md-sys-typescale-body-medium-font);
    color: var(--md-sys-color-on-surface);
    outline: none;
    box-sizing: border-box;

    --_outline-color: var(--md-focus-ring-color, var(--md-sys-color-secondary));
    --_search-overlay-offset: 300px;

    outline: 0 solid var(--_outline-color);
  }

  :host(:focus-visible) {
    border-radius: 4px;
    animation: focus-outline-inward var(--md-focus-ring-duration, 600ms) cubic-bezier(0.2, 0, 0, 1) forwards;
  }

  .hierarchy-tree {
    padding: 8px;
    position: relative;
  }

  .tree-item {
    display: block;
    margin: 2px 0;
  }

  .item-content {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    min-height: 32px;
    transition: background-color 0.2s ease;
    position: relative;
    user-select: none;

    outline: 0 solid var(--_outline-color);
  }

  .search-input {
    min-width: 80px;
    flex: 1;
  }

  .expand-icon {
    margin-right: 4px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    transition: transform 0.2s ease;
    color: var(--md-sys-color-on-surface-variant);
  }

  .expand-icon.expanded {
    transform: rotate(90deg);
  }

  .expand-icon:hover {
    color: var(--md-sys-color-on-surface);
  }

  .item-content:hover {
    background-color: var(--md-sys-color-surface-container-high);
  }

  .item-content.selected {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
  }

  .item-content.highlighted {
    background-color: var(--md-sys-color-tertiary-container);
    color: var(--md-sys-color-on-tertiary-container);
  }

  .item-content.multi-selected {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
  }

  .item-content.drag-over {
    background-color: var(--md-sys-color-tertiary-container);
    outline: 2px dashed var(--md-sys-color-tertiary);
  }

  .item-content.drag-source {
    opacity: 0.5;
  }

  .item-content.cut {
    opacity: 0.6;
    background-color: var(--md-sys-color-surface-container);
    border: 1px dashed var(--md-sys-color-outline);
  }

  .item-content:focus-visible {
    animation: focus-outline-inward var(--md-focus-ring-duration, 600ms) cubic-bezier(0.2, 0, 0, 1) forwards;
  }

  .item-icon {
    margin-right: 8px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
  }

  .item-label {
    flex: 1;
    font-size: var(--md-sys-typescale-body-medium-size);
    line-height: var(--md-sys-typescale-body-medium-line-height);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .children {
    margin-left: 24px;
    border-left: 1px solid var(--md-sys-color-outline-variant);
  }

  .empty-state {
    padding: 24px;
    text-align: center;
    color: var(--md-sys-color-on-surface-variant);
  }

  .multi-selection-info {
    position: sticky;
    top: 0;
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    padding: 8px 16px;
    font-size: var(--md-sys-typescale-body-small-size);
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
  }

  .multi-selection-info.cut-items {
    background-color: var(--md-sys-color-tertiary);
    color: var(--md-sys-color-on-tertiary);
  }

  .domain-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 4px;
    height: 48px;
  }

  .domain-title {
    margin: 0;
    font-size: var(--md-sys-typescale-title-small-size);
    font-weight: var(--md-sys-typescale-title-small-weight);
    color: var(--md-sys-color-on-surface);
  }

  .expand-controls {
    display: flex;
  }

  .expand-placeholder {
    width: 20px;
    margin-right: 4px;
  }

  .external-domains-header {
    margin-bottom: 8px;
  }

  .external-domain-header {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .external-domain-title {
    flex: 1;
  }

  .external-domain-badge {
    border-radius: var(--md-sys-shape-corner-medium);
    border: 1px solid var(--md-sys-color-outline);
    padding: 4px 8px;
  }

  .empty-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;

    color: var(--md-sys-color-on-surface-variant);
    font-family: var(--md-sys-typescale-body-large-font);
    font-weight: var(--md-sys-typescale-body-large-weight);
    font-size: var(--md-sys-typescale-body-large-size);
    letter-spacing: var(--md-sys-typescale-body-large-tracking);
    line-height: var(--md-sys-typescale-body-large-height);
  }

  .empty-view .empty-message,
  .empty-view .info {
    text-align: center;
  }

  .navigation-sub-title {
    padding: 18px 16px;

    color: var(--md-sys-color-on-surface);
    font-family: var(--md-sys-typescale-title-small-font);
    font-weight: var(--md-sys-typescale-title-small-weight);
    font-size: var(--md-sys-typescale-title-small-size);
    letter-spacing: var(--md-sys-typescale-title-small-tracking);
    line-height: var(--md-sys-typescale-title-small-height);
  }

  @keyframes focus-outline-inward {
    0% {
      outline-width: 0;
      outline-offset: 0;
    }
    50% {
      outline-width: var(--md-focus-ring-active-width, 8px);
      outline-offset: calc(-1 * var(--md-focus-ring-active-width, 8px));
    }
    100% {
      outline-width: var(--md-focus-ring-width, 3px);
      outline-offset: calc(-1 * var(--md-focus-ring-width, 3px));
    }
  }

  /* Search Results Overlay */
  .search-results-overlay {
    position: absolute;
    z-index: 10;
    background: var(--md-sys-color-surface-container);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-small);
    box-shadow: var(--md-sys-elevation-2);
    max-height: calc(100vh - var(--_search-overlay-offset));
    overflow: hidden;
  }

  .search-no-results {
    padding: 24px 16px;
    text-align: center;
    color: var(--md-sys-color-on-surface-variant);
  }

  .search-results-list {
    max-height: calc(100vh - var(--_search-overlay-offset));
    overflow-y: auto;
    overflow-x: hidden;
  }

  .search-result-item {
    display: block;
    cursor: pointer;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    transition: background-color 0.2s ease;
  }

  .search-result-item:last-child {
    border-bottom: none;
  }

  .search-result-item:hover {
    background: var(--md-sys-color-secondary-container);
  }

  .search-result-content {
    padding: 12px 16px;
  }

  .search-result-main {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
  }

  .search-result-icon {
    flex-shrink: 0;
    color: var(--md-sys-color-on-surface-variant);
  }

  .search-result-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
  }

  .search-result-name {
    color: var(--md-sys-color-on-surface);
    font-weight: 500;
  }

  .search-result-badge {
    background: var(--md-sys-color-tertiary-container);
    color: var(--md-sys-color-on-tertiary-container);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
  }

  .search-result-description {
    color: var(--md-sys-color-on-surface-variant);
    margin: 4px 0;
    line-height: 1.4;
  }

  .search-result-matches {
    margin-top: 6px;
  }

  .search-result-matches .label-small {
    color: var(--md-sys-color-primary);
    font-style: italic;
  }

  @media (prefers-reduced-motion) {
    .item-content:focus-visible {
      animation: none;
      outline-width: var(--md-focus-ring-width, 3px);
      outline-offset: calc(-1 * var(--md-focus-ring-width, 3px));
    }
  }
`;
//# sourceMappingURL=DomainNavigation.styles.js.map