/**
 * Reusable Page Header Components
 */

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.page-header h1 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #212529;
}

.page-header p {
  color: #6c757d;
  margin-bottom: 0;
  font-size: 1rem;
}

.page-header.with-actions {
  display: flex;
  justify-content: between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header-content {
  flex: 1;
  min-width: 200px;
}

.page-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.page-subtitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.page-subtitle i {
  opacity: 0.7;
}

/* Section headers within pages */
.section-header {
  margin: 2rem 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f3f4;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.25rem;
}

.section-header p {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.section-header.with-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.section-header-content {
  flex: 1;
}

.section-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Stats summary bar */
.stats-summary {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.stats-summary-item {
  text-align: center;
  min-width: 80px;
}

.stats-summary-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #495057;
  line-height: 1;
}

.stats-summary-label {
  display: block;
  font-size: 0.75rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-header.with-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .page-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .section-header.with-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .stats-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}