.activities-page {
  background: #f8f9fa;
  min-height: 100vh;
  padding: 2rem 0;
}

/* Header da Página */
.page-header {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.page-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  color: #2d3436;
}

.page-title i {
  color: #74b9ff;
}

.page-subtitle {
  color: #636e72;
  margin: 0.5rem 0 0 0;
  font-size: 1rem;
}

.page-stats {
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #74b9ff;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #636e72;
  margin-top: 0.25rem;
}

/* Card de Filtros */
.filters-card {
  background: white;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #f1f3f4;
}

.filters-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #2d3436;
  font-weight: 600;
}

.btn-toggle-filters {
  background: #f8f9fa;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-toggle-filters:hover {
  background: #e9ecef;
}

.btn-toggle-filters.collapsed {
  transform: rotate(180deg);
}

.filters-content {
  padding: 2rem;
  transition: all 0.3s ease;
}

.filters-content.collapsed {
  display: none;
}

.filters-form .form-group {
  margin-bottom: 0;
}

.filters-form label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background-color: white;
}

.form-select:focus {
  border-color: #74b9ff;
  box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.1);
  outline: none;
}

.filters-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

/* Botões */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(116, 185, 255, 0.3);
  color: white;
}

.btn-outline-secondary {
  background: white;
  border: 2px solid #e9ecef;
  color: #636e72;
}

.btn-outline-secondary:hover {
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #636e72;
}

.btn-activity {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Container de Atividades */
.activities-container {
  margin-bottom: 2rem;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

/* Card de Atividade */
.activity-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Badges */
.activity-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.service-badge {
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 8px rgba(116, 185, 255, 0.3);
}

.activity-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1rem;
}

.activity-title-section {
  margin-top: 1.5rem;
}

.activity-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.activity-title a {
  color: #2d3436;
  text-decoration: none;
  transition: color 0.3s ease;
}

.activity-title a:hover {
  color: #74b9ff;
}

/* Informações da Atividade */
.activity-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #636e72;
  font-size: 0.875rem;
}

.info-item i {
  color: #74b9ff;
  font-size: 1rem;
}

.availability-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.875rem;
}

.availability-info i {
  color: #74b9ff;
}

/* Descrição */
.activity-description {
  flex: 1;
}

.activity-description p {
  color: #636e72;
  line-height: 1.5;
  margin: 0;
  font-size: 0.875rem;
}

/* Footer da Atividade */
.activity-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f3f4;
}

/* Seção de Preços */
.pricing-section {
  width: 100%;
}

.pricing-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-option-card {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.875rem;
  transition: all 0.3s ease;
}

.price-option-card:hover {
  border-color: #74b9ff;
  box-shadow: 0 2px 8px rgba(116, 185, 255, 0.15);
  transform: translateY(-1px);
}

.price-option-card.free-option {
  background: linear-gradient(135deg, #d4f4dd, #a8e6cf);
  border-color: #00b894;
}

/* Header da Opção */
.price-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}

.price-option-header i {
  color: #00b894;
  font-size: 1.25rem;
}

.price-option-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
}

.price-frequency {
  font-size: 0.6875rem;
  color: #74b9ff;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.price-label {
  font-size: 0.8125rem;
  color: #2d3436;
  font-weight: 600;
  line-height: 1.2;
}

.price-option-label {
  font-size: 0.875rem;
  color: #00b894;
  font-weight: 600;
}

.price-value {
  font-weight: 700;
  color: #2d3436;
  font-size: 1rem;
  white-space: nowrap;
}

/* Detalhes da Opção */
.price-option-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e9ecef;
}

/* Tags de Período */
.period-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 16px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: capitalize;
}

.period-tag i {
  font-size: 0.875rem;
}

.period-tag.period-morning {
  background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
  color: #2d3436;
}

.period-tag.period-afternoon {
  background: linear-gradient(135deg, #fab1a0, #ff7675);
  color: white;
}

.period-tag.period-full_day {
  background: linear-gradient(135deg, #a29bfe, #6c5ce7);
  color: white;
}

/* Horários Compactos */
.schedule-compact {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #636e72;
  font-weight: 500;
}

.schedule-compact i {
  color: #74b9ff;
  font-size: 0.875rem;
}

.schedule-times {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Estado Vazio */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.empty-icon {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  color: #2d3436;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #636e72;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Paginação */
.pagination-container {
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-item {
  margin: 0;
}

.page-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  color: #636e72;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.page-link:hover {
  background: #f8f9fa;
  border-color: #74b9ff;
  color: #74b9ff;
}

.page-item.active .page-link {
  background: #74b9ff;
  border-color: #74b9ff;
  color: white;
}

/* Responsivo */
@media (max-width: 768px) {
  .activities-page {
    padding: 1rem 0;
  }

  .page-header,
  .filters-content {
    padding: 1rem;
  }

  .activities-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .activity-card {
    margin: 0 -0.5rem;
  }

  .filters-actions {
    flex-direction: column;
  }

  .activity-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .info-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .page-stats {
    margin-top: 1rem;
  }

  .price-option-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .price-value {
    align-self: flex-end;
  }

  .price-option-details {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 992px) {
  .activities-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

/* Enrollment Info Section */
.enrollment-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Info Highlights */
.info-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.938rem;
  width: fit-content;
}

.free-highlight {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.free-highlight i {
  font-size: 1.25rem;
}

.options-highlight {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.options-highlight i {
  font-size: 1.25rem;
}

/* Periods Badges */
.periods-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.period-badge-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.813rem;
  font-weight: 500;
  border: 1.5px solid;
  transition: all 0.2s ease;
}

.period-badge-mini i {
  font-size: 1rem;
}

/* Estilos por período */
.period-morning {
  background: #fef3c7;
  color: #92400e;
  border-color: #fbbf24;
}

.period-afternoon {
  background: #fed7aa;
  color: #7c2d12;
  border-color: #fb923c;
}

.period-full_day {
  background: #dbeafe;
  color: #1e40af;
  border-color: #60a5fa;
}

/* Flexibility Badge */
.flexibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  color: #166534;
  font-size: 0.813rem;
  font-weight: 500;
  width: fit-content;
}

.flexibility-badge i {
  font-size: 1rem;
}

/* Activity Footer ajustes */
.activity-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
  .activity-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .info-highlight {
    width: 100%;
    justify-content: center;
  }

  .periods-badges {
    justify-content: center;
  }

  .flexibility-badge {
    width: 100%;
    justify-content: center;
  }
}

/* Entity Banner */
.entity-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.entity-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.entity-banner-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.entity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.entity-icon i {
  font-size: 1.75rem;
  color: white;
}

.entity-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.entity-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.813rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.entity-name {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.entity-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.entity-location i {
  font-size: 1rem;
}

.entity-actions {
  display: flex;
  align-items: center;
}

.btn-view-all {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.btn-view-all:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: white;
}

.btn-view-all i {
  font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 768px) {
  .entity-banner {
    padding: 1.25rem 1rem;
  }

  .entity-banner-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .entity-icon {
    width: 48px;
    height: 48px;
  }

  .entity-icon i {
    font-size: 1.5rem;
  }

  .entity-name {
    font-size: 1.25rem;
  }

  .entity-location {
    justify-content: center;
  }

  .entity-actions {
    width: 100%;
  }

  .btn-view-all {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .entity-name {
    font-size: 1.125rem;
  }

  .entity-label {
    font-size: 0.75rem;
  }
}