/****************************************************************************
 ** @license
 ** This demo file is part of yFiles for HTML 3.1.0.4.
 ** Copyright (c) 2026 by yWorks GmbH, Vor dem Kreuzberg 28,
 ** 72070 Tuebingen, Germany. All rights reserved.
 **
 ** yFiles demo files exhibit yFiles for HTML functionalities. Any redistribution
 ** of demo files in source code or binary form, with or without
 ** modification, is not permitted.
 **
 ** Owners of a valid software license for a yFiles for HTML version that this
 ** demo is shipped with are allowed to use the demo source code as basis
 ** for their own yFiles for HTML powered applications. Use of such programs is
 ** governed by the rights and conditions as set out in the yFiles for HTML
 ** license agreement.
 **
 ** THIS SOFTWARE IS PROVIDED ''AS IS'' AND ANY EXPRESS OR IMPLIED
 ** WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 ** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
 ** NO EVENT SHALL yWorks BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
 ** TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 ** PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 ** LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 ** NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 **
 ***************************************************************************/
.demo-content__components {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  height: 100%;
}

#timeline-component {
  height: 250px;
  width: 100%;
  background-color: #f3f4f6;
}

a,
a:hover,
a:visited {
  text-decoration: none;
}

.event-details-section {
  margin: 0;
  padding: 5px;
}

.event-title {
  font-size: 1.25rem;
  margin-left: 10px;
}

.event-avatar {
  border-radius: 50%;
  width: 3.125rem;
  border: 2px solid #4d4f54;
  filter: grayscale(100%);
}

#component-background {
  position: absolute;
  transition: opacity 0.3s ease-in-out;
  width: 100%;
  height: 100%;
  bottom: 0;
  background-color: rgb(0, 0, 0);
  opacity: 0;
  pointer-events: none;
}

.centric-circle {
  fill: rgba(97, 133, 157, 0.1);
  stroke: rgba(97, 133, 157, 0.8);
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress {
  height: 12px;
  background-color: rgba(109, 202, 230, 0.8);
  border-radius: 10px;
  border: 1px solid #00d8ff;
  flex: 1 1 auto;
  min-width: 0;
}

.progress-bar {
  height: 100%;
  border-radius: 10px;
  background-color: #e57373;
}

.progress-percent {
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: 3ch;
  text-align: right;
}

.full-grid-width {
  grid-column: 1 / -1;
}

.properties-view-header {
  margin-block-start: 0;
  padding: 10px 0 10px 10px;
  display: flex;
  align-items: center;
}

.indented-text {
  margin-left: 25px;
}

.event-description {
  font-size: 0.9rem;
  margin: 0 25px;
}

.yfiles-tooltip {
  display: block;
  background-color: #70757d;
  border: none;
  color: #00d8ff;
  box-shadow:
    0px 3px 5px -1px rgba(0, 0, 0, 0.2),
    0px 6px 10px 0px rgba(0, 0, 0, 0.14),
    0px 1px 18px 0px rgba(0, 0, 0, 0.12);
  padding: 10px;
  border-radius: 10px;
}
.graph-tooltip .title {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  max-width: 250px;
}
.graph-tooltip .title img {
  border-radius: 50%;
  border: 2px solid #00d8ff;
  filter: grayscale(100%);
  margin-right: 10px;
  flex: 0 0 50px;
  width: 3.125rem;
  height: 3.125rem;
}
.graph-tooltip .data-rows {
  margin: 10px 0;
}
.graph-tooltip .data-rows div {
  margin: 5px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}
.graph-tooltip .progress {
  margin-left: 0;
}
.edge-tooltip {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 10px;
}
.edge-tooltip .link-icon {
  font-size: 50px;
  margin: 0 40px;
}

.graph-mode-button.selected {
  background-color: #aec3d5;
  color: #2a3e50;
}

.button-title-container {
  display: flex;
  align-items: center;
}

.description-panel button {
  padding: 0.5rem 1.3rem;
  border-radius: 100px;
  appearance: none;
  color: inherit;
  border: 1px solid currentColor;
  background-color: transparent;
  outline: none;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.description-panel .graph-mode-button {
  display: inline-flex;
  align-items: center;
  width: 100%;
  background-repeat: no-repeat;
  background-position: 0.75rem center;
}

span.material-symbols-outlined {
  padding-right: 0.5rem;
}

.event-details-title {
  font-size: 1.2rem;
}

.demo-properties__settings {
  margin: 5px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 5px;
  align-items: center;
}

.badge-icon {
  font-size: 20px !important;
  width: 20px;
  height: 20px;
  background-color: #00d8ff;
  color: white;
  cursor: default;
}
/****************************************************************************
 ** @license
 ** This demo file is part of yFiles for HTML 3.1.0.4.
 ** Copyright (c) 2026 by yWorks GmbH, Vor dem Kreuzberg 28,
 ** 72070 Tuebingen, Germany. All rights reserved.
 **
 ** yFiles demo files exhibit yFiles for HTML functionalities. Any redistribution
 ** of demo files in source code or binary form, with or without
 ** modification, is not permitted.
 **
 ** Owners of a valid software license for a yFiles for HTML version that this
 ** demo is shipped with are allowed to use the demo source code as basis
 ** for their own yFiles for HTML powered applications. Use of such programs is
 ** governed by the rights and conditions as set out in the yFiles for HTML
 ** license agreement.
 **
 ** THIS SOFTWARE IS PROVIDED ''AS IS'' AND ANY EXPRESS OR IMPLIED
 ** WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 ** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
 ** NO EVENT SHALL yWorks BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
 ** TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 ** PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 ** LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 ** NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 **
 ***************************************************************************/
.timeline-component {
  position: relative;

  .timeline-toolbar {
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    z-index: 10;
  }
  .timeline-button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 99px;
    color: #2a3e50;
    background-color: transparent;
    opacity: 1;
    font-family: 'Material Symbols Outlined', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    &:disabled {
      opacity: 0.5;
    }

    &:hover {
      cursor: pointer;
      border: none;
      background-color: #aec3d5;
      color: #2a3e50;
    }

    &:focus {
      outline: none;
    }

    &:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }

  .yfiles-tooltip {
    background-color: #ffffff;
    color: #0e0e28;
    border: none;
    box-shadow:
      0 1px 2px 0 rgb(0 0 0 / 30%),
      0 1px 3px 1px rgb(0 0 0 / 15%);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    line-height: 20px;
    h3 {
      margin: 0 0 4px 0;
      font-size: 14px;
    }
  }
}
