@import '../../style/themes/index';
@import '../../style/mixins/index';

.@{ant-prefix}-air-quality-trend-chart-aqi {
  &-title {
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    color: #1a1e24;
    margin-bottom: 20px;
  }
  &-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    &-label {
      font-weight: 400;
      font-size: 12px;
      color: #1a1e24;
      margin-right: 12px;
      line-height: 1;
    }
    &-progress {
      flex: 1;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      &-label {
        display: flex;
        justify-content: space-between;
        align-items: center;
        &-item {
          flex: 1;
          font-weight: 400;
          font-size: 12px;
          text-align: left;
          color: #1a1e24;
        }
      }
      &-core {
        margin-top: 4px;
        height: 12px;
        border-radius: 2px;
        overflow: hidden;
        position: relative;
      }
      &-default {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        height: 8px;
        //background: linear-gradient(90.00deg, #3dcd1a 0%, #f1bb1e 23.2%, #e51d30 32%, #f15b1e 38.9%, #f1bb1e 46.3%, #3dcd1a 60.6%, #3dcd1a 75.9%, #f1bb1e 80.8%, #3dcd1a 100%);
      }
      &-mark {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 30%;
        z-index: 2;
        //background: linear-gradient(90.00deg, #3dcd1a 0%, #bec11d 100%);
        border: 1px solid #2d343d;
        box-shadow: 0 4px 8px #dde1ec;
        cursor: pointer;
        cursor: -webkit-grab;
        cursor: grab;
        touch-action: pan-x;
        &:focus {
          border-color: tint(@primary-color, 20%);
          box-shadow: 0 0 0 5px tint(@primary-color, 50%);
          outline: none;
        }

        &:active {
          cursor: -webkit-grabbing;
          cursor: grabbing;
        }
      }
    }
  }
  &-footer {
    overflow: hidden;
    margin-top: 16px;
    width: 100%;
    &-core {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0 12px;
    }
  }
  &-panel {
    height: 500px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    &::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      right: -6px;
      width: 1px;
      height: 100%;
      background: fade(#8A979F, 30%);
    }
    &-header {
      margin-bottom: 8px;
      font-weight: 400;
      font-size: 14px;
      color: #1a1e24;
      span {
        padding-left: 56px;
      }
    }
    &-footer {
      flex: 1;
      overflow: hidden;
    }
  }
}
