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

.snapshot-tab {
  display: flex;
  flex: auto;
  flex-direction: column;
  align-items: stretch;
  outline: none;
  --window-header-height: 40px;
  overflow: hidden;
}

.snapshot-controls {
  flex: none;
  background-color: var(--vscode-sideBar-background);
  color: var(--vscode-sideBarTitle-foreground);
  display: flex;
  box-shadow: var(--box-shadow);
  height: 32px;
  align-items: center;
  justify-content: center;
}

.snapshot-toggle {
  margin-top: 4px;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 20px;
  margin-left: 4px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.snapshot-toggle:hover {
  background-color: #ededed;
}

.snapshot-toggle.toggled {
  background: var(--gray);
  color: white;
}

.snapshot-tab:focus .snapshot-toggle.toggled {
  background: var(--blue);
}

.snapshot-wrapper {
  flex: auto;
  margin: 1px;
  padding: 10px;
  position: relative;
}

.snapshot-container {
  display: block;
  box-shadow: 0 12px 28px 0 rgba(0,0,0,.2),0 2px 4px 0 rgba(0,0,0,.1);
}

iframe#snapshot {
  width: 100%;
  height: calc(100% - var(--window-header-height));
  border: none;
  background: white;
}

.no-snapshot {
  text-align: center;
  padding: 50px;
}

.popout-icon {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--vscode-sideBarTitle-foreground);
  font-size: 14px;
  z-index: 100;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.popout-icon:not(.popout-disabled):hover {
  color: var(--vscode-foreground);
}

.popout-icon.popout-disabled {
  opacity: var(--vscode-disabledForeground);
}

.window-dot {
  border-radius: 50%;
  display: inline-block;
  height: 12px;
  margin-right: 6px;
  margin-top: 4px;
  width: 12px;
}

.window-address-bar {
  background-color: var(--vscode-input-background);
  border-radius: 12.5px;
  color: var(--vscode-input-foreground);
  flex: 1 0;
  font: 400 16px Arial,sans-serif;
  margin: 0 16px 0 8px;
  padding: 5px 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-menu-bar {
  background-color: #aaa;
  display: block;
  height: 3px;
  margin: 3px 0;
  width: 17px;
}

.window-header {
  align-items: center;
  background: #ebedf0;
  display: flex;
  padding: 8px 16px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  height: var(--window-header-height);
}

body.dark-mode .window-header {
  background: #444950;
}

.snapshot-tab .cm-wrapper {
  line-height: 23px;
}
