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

.timeline-view {
  flex: none;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 0 5px;
  cursor: text;
  user-select: none;
  margin-left: 10px;
  overflow-x: clip;
}

.timeline-divider {
  position: absolute;
  width: 1px;
  top: 0;
  bottom: 0;
  background-color: var(--vscode-panel-border);
}

.timeline-time {
  position: absolute;
  top: 4px;
  right: 3px;
  font-size: 80%;
  white-space: nowrap;
  pointer-events: none;
}

.timeline-time-input {
  cursor: pointer;
}

.timeline-lane {
  pointer-events: none;
  overflow: hidden;
  flex: none;
  height: 20px;
  position: relative;
}

.timeline-grid {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.timeline-bars {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

.timeline-bar {
  position: absolute;
  --action-color: gray;
  --action-background-color: #88888802;
  border-top: 2px solid var(--action-color);
}

.timeline-bar.active {
  background-color: var(--action-background-color);
}

.timeline-bar.action {
  --action-color: var(--vscode-charts-orange);
  --action-background-color: #d1861666;
}

.timeline-bar.action.error {
  --action-color: var(--vscode-charts-red);
  --action-background-color: #e5140066;
}

.timeline-bar.network {
  --action-color: var(--vscode-charts-blue);
  --action-background-color: #1a85ff66;
}

.timeline-bar.console-message {
  --action-color: var(--vscode-charts-purple);
  --action-background-color: #1a85ff66;
}

body.dark-mode .timeline-bar.action.error {
  --action-color: var(--vscode-errorForeground);
  --action-background-color: #f4877166;
}

.timeline-label {
  position: absolute;
  top: 0;
  bottom: 0;
  margin-left: 2px;
  background-color: var(--vscode-panel-background);
  justify-content: center;
  display: none;
  white-space: nowrap;
}

.timeline-label.selected {
  display: flex;
}

.timeline-marker {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  border-left: 3px solid var(--light-pink);
}

.timeline-window {
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

.timeline-window-center {
  flex: auto;
}

.timeline-window-drag {
  height: 20px;
  cursor: grab;
  pointer-events: all;
}

.timeline-window-curtain {
  flex: none;
  background-color: #3879d91a;
}

body.dark-mode .timeline-window-curtain {
  background-color: #161718bf;
}

.timeline-window-resizer {
  flex: none;
  width: 10px;
  cursor: ew-resize;
  pointer-events: all;
  position: relative;
  background-color: var(--vscode-panel-border);
  border-left: 1px solid var(--vscode-panel-border);
  border-right: 1px solid var(--vscode-panel-border);
}
