@use '../../../../styles/_globals.scss' as *;

.chart-section {
  margin-bottom: var(--s3);

  .chart-wrapper {
    height: 200px;
    position: relative;
    overflow: hidden;

    @include mq(xs) {
      min-width: 500px;
    }
    @include mq(sm) {
      min-width: 740px;
    }
  }
}

.summary-section {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-bottom: var(--s3);
  padding: var(--s2);
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--card-border-radius);

  .total-info {
    .label {
      font-size: 0.875rem;
      opacity: 0.8;
      margin-bottom: var(--s-half);
    }

    .value {
      font-size: 1.125rem;
    }
  }
}

.sessions-list-section {
  margin-bottom: var(--s3);

  h3 {
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
  }

  .empty-state {
    text-align: center;
    padding: var(--s4);
    opacity: 0.6;
    font-style: italic;
  }

  mat-list {
    padding: 0;
  }

  mat-list-item {
    height: auto;
    padding: var(--s) 0;
  }

  .session-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;

    .session-number {
      min-width: 32px;
      font-weight: 600;
    }

    .session-duration-field {
      flex: 1;
    }
  }
}

.add-session-section {
  margin-bottom: var(--s2);

  h3 {
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
  }

  .add-session-form {
    display: flex;
    align-items: center;
    gap: 12px;

    .add-session-field {
      flex: 1;
    }
  }
}

:host-context([dir='rtl']) {
  direction: rtl;
}
