/*
  Copyright (c) Microsoft Corporation.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/

:root {
  color-scheme: light dark;
}

body {
  --transparent-blue: #2196F355;
  --light-pink: #ff69b460;
  --gray: #888888;
  --sidebar-width: 250px;
  --box-shadow: rgba(0, 0, 0, 0.133) 0px 1.6px 3.6px 0px, rgba(0, 0, 0, 0.11) 0px 0.3px 0.9px 0px;
}

html, body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  display: flex;
  overscroll-behavior-x: none;
}

#root {
  width: 100%;
  height: 100%;
  display: flex;
}

body, dialog {
  background-color: var(--vscode-panel-background);
  color: var(--vscode-foreground);
  font-family: var(--vscode-font-family);
  font-weight: var(--vscode-font-weight);
  font-size: var(--vscode-font-size);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--vscode-textLink-foreground);
}

dialog {
  border: none;
  padding: 0;
  box-shadow: var(--box-shadow);
  line-height: 28px;
  max-width: 400px;
}

dialog .title {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 5px;
  height: 32px;
  background-color: var(--vscode-sideBar-background);
  max-width: 400px;
}

dialog .title .codicon {
  margin-right: 3px;
}

dialog .body {
  padding: 10px;
  text-align: center;
}

.button {
  color: var(--vscode-button-foreground);
  background: var(--vscode-button-background);
  margin: 10px;
  border: none;
  height: 28px;
  min-width: 40px;
  cursor: pointer;
  user-select: none;
}

.button:focus {
  outline: 1px solid var(--vscode-focusBorder);
}

.button:hover {
  background: var(--vscode-button-hoverBackground);
}

.button.secondary {
  color: var(--vscode-button-secondaryForeground);
  background: var(--vscode-button-secondaryBackground);
}

.button.secondary:hover {
  background: var(--vscode-button-secondaryHoverBackground);
}

* {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
}

*[hidden],
.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden !important;
}

svg {
  fill: currentColor;
}

.vbox {
  display: flex;
  flex-direction: column;
  flex: auto;
  position: relative;
}

.fill {
   position: absolute;
   top: 0;
   right: 0;
   bottom: 0;
   left: 0;
}

.hbox {
  display: flex;
  flex: auto;
  position: relative;
}

.spacer {
  flex: auto;
}

.codicon-check {
  color: var(--vscode-charts-green);
}

.codicon-error {
  color: var(--vscode-errorForeground);
}

.codicon-warning {
  color: var(--vscode-list-warningForeground);
}

.codicon-circle-outline {
  color: var(--vscode-disabledForeground);
}

input[type=text], input[type=search] {
  color: var(--vscode-input-foreground);
  background-color: var(--vscode-input-background);
  border: none;
  outline: none;
}

.codicon-loading {
  animation: spin 1s infinite linear;
}

::placeholder {
  color: var(--vscode-input-placeholderForeground);
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
