.document-detail-container {
  max-width: 800px;
  margin: 0 auto;
}

.document-header-card {
  text-align: center;
  box-shadow: 0 4px 16px rgba(var(--ion-color-primary-rgb), 0.1);
  margin-bottom: 24px;

  .icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
  }

  .document-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
  }

  .document-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--ion-color-primary);
    margin-bottom: 8px;
  }

  .featured-badge {
    margin-top: 8px;
  }
}

.description-card, .tags-card {
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

  .section-title {
    font-size: 1.2rem;
    color: var(--ion-color-primary);
    margin-bottom: 12px;
  }

  .document-description {
    line-height: 1.6;
    color: var(--ion-color-medium);
  }
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;

  ion-button {
    --border-radius: 50px;
    height: 48px;
    font-weight: 500;
  }
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;

  ion-spinner {
    width: 48px;
    height: 48px;
  }

  p {
    margin-top: 16px;
    color: var(--ion-color-medium);
  }
}