@import '../../../style/index';

.vtx-road-lane-rule-wrap {
  --bg-color: rgba(155, 155, 155, 0.08);
  --line-bg-color: #bfc3cb;
  display: flex;
  flex-direction: column;
  gap: 8px;
  &.vtx-road-lane-rule-wrap-dark {
    --bg-color: rgba(11,88,142,0.3);
    --line-bg-color: #BFC3CB;
  }
  .vtx-road-lane-rule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 64px;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--info-color);
    &-left {
      border: 2px dashed;
      height: 25px;
      &.blue {
        border-color: var(--blue-color);
      }
      &.green {
        border-color: var(--green-color);
      }
      &.purple {
        border-color: #b894f9;
      }
      &.orange {
        border-color: #ff8746;
      }
      &.yellow {
        border-color: #ffaa00;
      }
    }
    &-right {
      flex: 1;
      min-width: 0;
    }
    &-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    &-bottom {
      display: flex;
      align-items: center;
      gap: 8px;
      &-line {
        width: 2px;
        height: 8px;
        margin: 0 4px;
        background: var(--line-bg-color);
      }
    }
  }
}

.vtx-road-lane-mileage-item {
  color: var(--info-color);
  &-value,
  &-unit {
    font-weight: bold;
    font-size: 24px;
    color: var(--blue-color);
  }
  &-unit {
    font-size: 12px;
    margin-left: 4px;
  }
  &-img {
    width: 16px;
    height: 16px;
    margin-right: 2px;
  }
}

.vtx-road-work-type-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--info-color);
  margin-left: 20px;
  &-value {
    font-weight: bold;
    font-size: 16px;
  }
  &-unit {
    font-weight: bold;
    font-size: 12px;
  }
  &-green-text {
    background: linear-gradient(180deg, #23ea51, #00b129);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  &-blue-text {
    background: linear-gradient(180deg, #00a6ff, #3a6dff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  &-orange-text {
    background: linear-gradient(180deg, #faad14, #fa8314);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  &-red-text {
    background: linear-gradient(180deg, #ff6464, #ff3b3b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  &-gray-text {
    background: linear-gradient(180deg, #bec4cb, #9599a3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
