@import 'variables';
@import 'theme-colors';

.widget-task-counter {
  line-height: 1;

  .widget-task-bar {
    .bar {
      width: 25px;
      height: 4px;
      margin: 0 3px;
      border-radius: 3px;
      display: inline-block;
      background-color: lighten($muted-color, 5%);

      &:first-child {
        margin-left: 0;
      }

      &:last-child {
        margin-right: 0;
      }

      &.completed {
        background-color: $brand-color;
      }
    }
  }
}

// Chart widget
.chart-widget {
  border-radius: $default-radius;
  box-shadow: var(--default-box-shadow);
  background-color: var(--default-card-bg);

  .chart-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: $default-padding-margin;
    margin-bottom: $default-padding-margin;

    .widget-icon {
      width: 50px;
      height: 50px;
      display: flex;
      flex-shrink: 0;
      align-items: center;
      justify-content: center;
      border-radius: $default-radius;
      background-color: rgba($brand-color, 0.2);

      svg {
        color: $brand-color;
      }
    }
  }

  &.success-widget {
    .chart-widget-header {
      .widget-icon {
        background-color: rgba($success-color, 0.2);

        svg {
          color: $success-color;
        }
      }
    }
  }

  &.info-widget {
    .chart-widget-header {
      .widget-icon {
        background-color: rgba($info-color, 0.2);

        svg {
          color: $info-color;
        }
      }
    }
  }

  &.warning-widget {
    .chart-widget-header {
      .widget-icon {
        background-color: rgba($warning-color, 0.2);

        svg {
          color: $warning-color;
        }
      }
    }
  }

  &.danger-widget {
    .chart-widget-header {
      .widget-icon {
        background-color: rgba($danger-color, 0.2);

        svg {
          color: $danger-color;
        }
      }
    }
  }
}