/*
  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;
  flex-basis: 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #ddd;
  padding: 20px 0 5px;
  cursor: text;
}

.timeline-divider {
  position: absolute;
  width: 1px;
  top: 0;
  bottom: 0;
  background-color: rgb(0 0 0 / 10%);
}

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

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

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

.timeline-lane.timeline-labels {
  margin-top: 10px;
}

.timeline-lane.timeline-bars {
  pointer-events: auto;
  margin-bottom: 10px;
  overflow: visible;
}

.timeline-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  background-color: red;
  border-radius: 3px;
  --action-color: 'transparent';
  background-color: var(--action-color);
}

.timeline-bar.selected {
  filter: brightness(70%);
  box-shadow: 0 0 0 1px var(--action-color);
}

.timeline-bar.click,
.timeline-bar.dblclick,
.timeline-bar.hover,
.timeline-bar.check,
.timeline-bar.uncheck,
.timeline-bar.tap {
  --action-color: var(--green);
}

.timeline-bar.fill,
.timeline-bar.press,
.timeline-bar.type,
.timeline-bar.selectOption,
.timeline-bar.setInputFiles {
  --action-color: var(--orange);
}

.timeline-bar.goto,
.timeline-bar.setContent,
.timeline-bar.goBack,
.timeline-bar.goForward,
.timeline-bar.reload {
  --action-color: var(--blue);
}

.timeline-bar.dialog {
  --action-color: var(--transparent-blue);
}

.timeline-bar.navigation {
  --action-color: var(--purple);
}

.timeline-bar.load {
  --action-color: var(--yellow);
}

.timeline-label {
  position: absolute;
  top: 0;
  bottom: 0;
  margin-left: 2px;
  background-color: #fffffff0;
  justify-content: center;
  display: none;
  white-space: nowrap;
}

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

.timeline-marker {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: black;
  pointer-events: none;
}

.timeline-marker.timeline-marker-hover {
  background-color: var(--light-pink);
}
