.reading-sessions-container {
  padding: 1rem 0;
}

.loading-state,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
}

.loading-text {
  color: var(--text-color-secondary);
  font-size: 0.9rem;
}

.empty-state p {
  color: var(--text-color-secondary);
  font-size: 1rem;
}

.location-text {
  font-size: 0.875rem;
  color: var(--text-color);
}

.session-time {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;

  .session-date {
    font-weight: 500;
    color: var(--text-color);
  }

  .session-range {
    font-size: 0.8rem;
    color: var(--text-color-secondary);
  }
}

.book-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  font-weight: 600;

  i {
    font-size: 0.8rem;
  }

  &.book-type-pdf {
    color: var(--book-type-pdf-color);
    background-color: rgba(220, 38, 38, 0.1);
  }

  &.book-type-epub {
    color: var(--book-type-epub-color);
    background-color: rgba(22, 163, 74, 0.1);
  }

  &.book-type-cbx,
  &.book-type-cbz,
  &.book-type-cbr,
  &.book-type-cb7 {
    color: var(--book-type-cbx-color);
    background-color: rgba(59, 130, 246, 0.1);
  }

  &.book-type-fb2 {
    color: var(--book-type-fb2-color);
    background-color: rgba(236, 72, 153, 0.1);
  }

  &.book-type-mobi {
    color: var(--book-type-mobi-color);
    background-color: rgba(99, 102, 241, 0.1);
  }

  &.book-type-azw3 {
    color: var(--book-type-azw3-color);
    background-color: rgba(20, 184, 166, 0.1);
  }

  &.book-type-audiobook {
    color: var(--book-type-audiobook-color);
    background-color: rgba(234, 179, 8, 0.1);
  }
}

.progress-delta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  font-weight: 600;

  i {
    font-size: 0.8rem;
  }

  &.progress-positive {
    color: #16a34a;
    background-color: rgba(22, 163, 74, 0.1);
  }

  &.progress-negative {
    color: #dc2626;
    background-color: rgba(220, 38, 38, 0.1);
  }

  &.progress-neutral {
    color: var(--text-color-secondary);
    background-color: rgba(128, 128, 128, 0.1);
  }
}

:host ::ng-deep {
  .p-datatable {
    .p-datatable-thead > tr > th {
      background-color: var(--card-background);
      color: var(--text-color);
      font-weight: 600;
      font-size: 0.875rem;
      white-space: nowrap;
      border-color: var(--border-color);
    }

    .p-datatable-tbody > tr > td {
      padding: 0.35rem 0.65rem;
      font-size: 0.875rem;
      border-color: var(--border-color);
    }

    .p-datatable-wrapper {
      overflow-x: auto;
    }
  }
}
