/*
  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.
*/

.drop-target {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: auto;
  flex-direction: column;
  background-color: var(--vscode-editor-background);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  line-height: 24px;
}

body .drop-target {
  background: rgba(255, 255, 255, 0.8);
}

:root.dark-mode .drop-target {
  background: rgba(0, 0, 0, 0.8);
}

.drop-target .title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
}

.drop-target .info {
  max-width: 400px;
  text-align: center;
}

.drop-target .processing-error {
  font-size: 24px;
  color: #e74c3c;
  font-weight: bold;
  text-align: center;
  margin: 30px;
  white-space: pre-line;
}

.drop-target input {
  margin-top: 50px;
}

.drop-target button {
  color: rgb(255, 255, 255);
  background-color: rgb(0, 122, 204);
  padding: 8px 12px;
  border: none;
  margin: 30px 0;
  cursor: pointer;
}

.drop-target .version {
  color: var(--vscode-disabledForeground);
  margin-top: 8px;
}

.progress-dialog {
  width: 400px;
  inset: 0;
  border: none;
  outline: none;
  background-color: var(--vscode-sideBar-background);
}

.progress-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.4);
}

.progress-content {
  padding: 16px;
}

.progress-content .title {
  /* This is set in common.css */
  background-color: unset;
  font-size: 18px;
  font-weight: bold;
  padding: 0;
}

.progress-wrapper {
  background-color: var(--vscode-commandCenter-activeBackground);
  width: 100%;
  margin-top: 16px;
  margin-bottom: 8px;
}

.inner-progress {
  background-color: var(--vscode-progressBar-background);
  height: 4px;
}

.workbench-loader-header {
  display: flex;
  background-color: var(--vscode-sideBar-background);
  flex: none;
  flex-basis: 48px;
  line-height: 48px;
  font-size: 16px;
  align-items: center;
  box-shadow: var(--vscode-scrollbar-shadow) 0 6px 6px -6px;
}

.workbench-loader {
  contain: size;
}

.workbench-loader .workbench-loader-header {
  flex-basis: 32px;
  line-height: 32px;
  font-size: 13px;
}

.workbench-loader .workbench-loader-header .toolbar-button {
  margin: 4px;
}

.workbench-loader .logo {
  margin-left: 16px;
  display: flex;
  align-items: center;
}

.workbench-loader .logo img {
  height: 32px;
  width: 32px;
  pointer-events: none;
  flex: none;
}

.workbench-loader .product {
  font-weight: 600;
  margin-left: 16px;
  flex: none;
}

.workbench-loader .workbench-loader-header .title {
  margin-left: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: nowrap;
}

/* Limit to a reasonable minimum viewport */
html, body {
  min-width: 550px;
  min-height: 450px;
  overflow: auto;
}
