import { css } from "lit";
import typography from '../../styles/m3/typography.module.js';

export default [typography, css`
:host {
  display: block;

  width: 420px;
  height: 400px;

  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
}

.content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.header {
  height: 56px;
  display: flex;
  align-items: center;
  position: relative;
  margin: 0 16px;
}

.header.withIcon {
  margin: 0 16px 0 4px;
}

.header .label {
  display: block;
}

.progress {
  position: absolute;
  bottom: -10px; /* aligns with the divider */
  width: 100%;
}

.list {
  overflow-y: auto;
  flex: 1;
  margin: 0;
  padding: 0;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0 16px;
}

.file-icon {
  margin-right: 12px;
}

.error {
  background-color: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
  display: block;
  padding: 8px 12px;
  border-radius: var(--md-sys-shape-corner-small);
}

.no-files {
  flex: 1;
  margin-left: 16px;
}
`];
