import { css } from '//resources/lit/v3_0/lit.rollup.js';
import '//resources/cr_elements/cr_shared_vars.css.js';
let instance = null;
export function getCss() {
    return instance || (instance = [...[], css `
:host {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  background-color: #f8f9fa;
  color: var(--cr-primary-text-color);
}

button,
select,
input {
  color: var(--cr-primary-text-color);
}

@media(prefers-color-scheme: dark) {
  :host {
    background-color: #3c3c3c;
  }

  button,
  select,
  input {
    background-color: #464646;
    border-color: #f0f0f0;
  }
}

div {
  margin: 5px;
}

button {
  margin-inline-end: 5px;
}

/* Header */

#logOptionsContainer button {
  margin-inline-end: 8px;
}

#logCheckboxContainer,
#logOptionsContainer,
label {
  align-items: center;
  display: inline-flex;
}

#logLevelSelect {
  margin: 0 3px;
  padding: 0 5px;
}

/* Log */

#logContainer {
  border: 1px solid var(--cr-separator-color);
  flex: 1 1 100%;
  font-size: 12px;
  overflow: auto;
  padding: 5px;
}

#logContainer p {
  font-family: monospace;
  line-height: 20px;
  margin: 2px;
}

/* Log Level tags  */

.level-tag {
  border: 1px solid;
  border-radius: 2px;
  float: left;
  height: 14px;
  margin-inline-end: 5px;
  margin-top: 2px;
  padding: 0 4px 2px 4px;
  width: 50px;
}

.log-level-error {
  color: var(--google-red-800);
}

.log-level-user {
  color: var(--google-blue-800);
}

.log-level-event {
  color: var(--cr-primary-text-color);
}

.log-level-debug {
  color: var(--google-grey-800);
}

@media(prefers-color-scheme: dark) {
  .log-level-error {
    color: var(--google-red-300);
  }

  .log-level-user {
    color: var(--google-blue-200);
  }

  .log-level-debug {
    color: var(--google-grey-300);
  }
}

/* Log Type tags */

.type-tag {
  border: 1px solid;
  border-radius: 2px;
  float: left;
  font-weight: bold;
  height: 14px;
  margin-inline-end: 5px;
  margin-top: 2px;
  padding: 0 4px 2px 4px;
  width: 80px;
}

.log-type-login {
  color: var(--google-green-800);
}

.log-type-network {
  color: var(--google-blue-800);
}

.log-type-power {
  color: var(--google-purple-900);
}

.log-type-fido {
  color: var(--google-yellow-700);
}

@media(prefers-color-scheme: dark) {
  .log-type-login {
    color: var(--google-green-200);
  }

  .log-type-network {
    color: var(--google-blue-200);
  }

  .log-type-power {
    color: var(--google-purple-200);
  }

  .log-type-fido {
    color: var(--google-yellow-200);
  }
}`]);
}
