import { css } from "lit";

export default css`
#app {
  display: grid;
  grid-template:
    "nav header" 64px
    "nav content" calc(100vh - 64px) / minmax(360px, 2fr) 10fr;
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);

  --workspace-background-color: transparent;
  --workspace-content-background-color: var(--md-sys-color-surface-variant);
  --workspace-content-box-shadow: var(--md-sys-elevation-1);
  --workspace-border-color: transparent;
  --workspace-content-border-radius: var(--md-sys-shape-corner-medium);
  --workspace-entity-box-shadow: var(--md-sys-elevation-2);
  --workspace-entity-border-color: transparent;
  --workspace-entity-border-radius: var(--md-sys-shape-corner-medium);
  --workspace-entity-background-color: var(--md-sys-color-surface);
  --workspace-entity-selection-background-color: var(--md-sys-color-primary-container);
  --workspace-entity-selection-color: var(--md-sys-color-on-primary-container);
  --workspace-entity-selection-border-color: transparent;
}

header {
  grid-area: header;
  display: flex;
  align-items: center;
  justify-content: start;

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

.nav {
  grid-area: nav;
  padding: 12px;
  margin-right: 24px;
}

main {
  grid-area: content;
  margin: 0px 12px 12px 0;
  box-sizing: border-box;
  padding: 0;
}

main {
  background-color: var(--md-sys-color-surface);
  border-radius: var(--md-sys-shape-corner-medium);
  color: var(--md-sys-color-on-primary-container);

  overflow: hidden;
  display: flex;
}

main .content {
  padding: 20px;
  position: relative;
  z-index: 0;
  border-radius: inherit;

  flex: 1;
  display: flex;
  flex-direction: column;

  overflow: hidden;
}

main.model .content {
  padding: 0;
}

main .content::before {
  content: '';
  background-color: var(--md-sys-color-primary);
  opacity: .05;
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

main .content > * {
  position: relative;
  z-index: 1;
}

schema-design-navigation {
  border-right: 1px var(--divider-color) solid
}

data-model-visualization {
  height: 100%;
}

.empty-state {
  max-width: 700px;
  margin: 40px auto;
  text-align: center;
}

contextual-menu {
  min-width: 256px;
}

data-entity-editor {
  overflow: auto;
  height: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}
`;
