import { css } from 'lit'

export default css`
  :host {
    display: flex;
    height: 100%;
    flex-direction: column;
    height: 100%;
    --_row-gap: 20px;
    gap: var(--_row-gap);
  }

  :host(.drop-target) {
    outline: 2px dashed var(--md-sys-color-primary);
    outline-offset: 12px;
    border-radius: var(--md-sys-shape-corner-medium, 12px);
  }

  p {
    padding: 0;
    margin: 0;
  }

  .header {
    display: flex;
    flex-direction: column;
    gap: var(--_row-gap);
  }

  .drop-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--_row-gap);
  }

  .trigger-button {
    display: flex;
    padding: 40px;
    justify-content: center;
    align-items: center;
    border-radius: 60px;
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: none;
  }

  .trigger-icon {
    --md-icon-size: 40px;
  }

  .import-loader {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--_row-gap);
  }

  .csv-options {
    display: flex;
    flex-direction: column;
    gap: var(--_row-gap);
  }

  .csv-options > .options {
    display: flex;
    flex-direction: row;
    gap: var(--_row-gap);
  }

  .table-wrapper {
    overflow: auto;
  }

  .data-table {
    table-layout: auto;
    width: 100%;
    border-collapse: collapse;
  }

  tr {
    border-bottom: 1px var(--md-sys-color-outline-variant) solid;
  }

  th,
  td {
    padding: 12px;
    min-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
    text-align: left;
    user-select: text;
  }
`
