/* ========== PORTAL DOS PAIS - PREMIUM DESIGN ========== */

/* Container principal */
.parents-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header */
.parents-header {
  margin-bottom: 2rem;
}

.parents-header .header-title h2 {
  color: var(--primary-blue);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.parents-header .header-title h2 i {
  font-size: 1.8rem;
}

.parents-header .header-title p {
  color: #666;
  font-size: 1rem;
}

/* Grid de Filhos */
.children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Card de Criança */
.child-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.child-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 61, 165, 0.15);
  border-color: var(--primary-blue);
}

.child-card-photo {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.child-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.child-card:hover .child-card-photo img {
  transform: scale(1.05);
}

.child-card-body {
  padding: 1.5rem;
}

.child-card-body h3 {
  color: var(--primary-blue);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.child-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.child-card-info .info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.95rem;
}

.child-card-info .info-item i {
  color: var(--primary-blue);
  font-size: 1rem;
  width: 20px;
}

.child-card-footer {
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.child-card-footer .view-details {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.child-card:hover .view-details {
  gap: 0.75rem;
}

/* Detalhe do Filho */
.child-details-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.child-details-header {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.child-profile {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0, 61, 165, 0.2);
  flex-shrink: 0;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h2 {
  color: var(--primary-blue);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.profile-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.profile-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 1rem;
}

.profile-meta span i {
  color: var(--primary-blue);
}

/* Seções de Detalhes */
.details-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h3 {
  color: var(--primary-blue);
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-header h3 i {
  font-size: 1.2rem;
}

/* Progresso Geral */
.progress-summary {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  border-radius: 12px;
}

.summary-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.stat-main {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1;
}

.stat-label {
  color: #666;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.stat-percentage {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue) 0%, #4a90e2 100%);
  border-radius: 12px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 61, 165, 0.3);
}

/* Progresso por Tema */
.theme-progress-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.theme-progress-item {
  padding: 1.25rem;
  background: #f9fafb;
  border-radius: 12px;
  border-left: 4px solid var(--primary-blue);
  transition: all 0.3s ease;
}

.theme-progress-item:hover {
  background: #f5f7fa;
  transform: translateX(4px);
}

.theme-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.theme-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 1.05rem;
}

.theme-title i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.theme-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: #666;
}

.theme-stats .percentage {
  color: var(--gold);
  font-size: 1.1rem;
}

/* Tarefas Pendentes */
.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-card {
  background: #fff9e6;
  border: 2px solid #ffd700;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.task-card.task-overdue {
  background: #ffe6e6;
  border-color: #ff4444;
}

.task-card:hover {
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.task-card.task-overdue:hover {
  box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

.task-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.task-icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.task-card.task-overdue .task-icon {
  background: #ff4444;
}

.task-icon i {
  color: white;
  font-size: 1.2rem;
}

.task-info {
  flex: 1;
}

.task-info h4 {
  color: var(--primary-blue);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.task-info p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.task-meeting {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
}

.task-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.task-due {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #666;
  font-weight: 600;
  font-size: 0.95rem;
}

.task-due.overdue {
  color: #ff4444;
}

.btn-complete-task {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-complete-task:hover {
  background: #002a73;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 61, 165, 0.3);
}

/* Badge */
.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.badge-warning {
  background: #ffd700;
  color: #333;
}

/* Estados Vazios e Erro */
.empty-state,
.error-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state i,
.error-state i {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.empty-state p,
.error-state p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.error-state i {
  color: #ff4444;
}

/* Loading */
.loading {
  text-align: center;
  padding: 4rem 2rem;
  font-size: 1.2rem;
  color: var(--primary-blue);
}

.loading i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Botão Primário */
.btn-primary {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-primary:hover {
  background: #002a73;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 61, 165, 0.3);
}

/* Responsivo */
@media (max-width: 768px) {
  .parents-container,
  .child-details-container {
    padding: 1rem;
  }

  .parents-header .header-title h2 {
    font-size: 1.5rem;
  }

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

  .child-profile {
    flex-direction: column;
    text-align: center;
  }

  .profile-photo {
    width: 100px;
    height: 100px;
  }

  .profile-info h2 {
    font-size: 1.4rem;
  }

  .profile-meta {
    justify-content: center;
  }

  .summary-stats {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .stat-number,
  .stat-percentage {
    font-size: 2.5rem;
  }

  .details-section {
    padding: 1.25rem;
  }

  .task-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .btn-complete-task {
    width: 100%;
    justify-content: center;
  }

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

@media (max-width: 480px) {
  .child-card-photo {
    height: 160px;
  }

  .section-header h3 {
    font-size: 1.1rem;
  }

  .task-header {
    flex-direction: column;
  }

  .task-icon {
    align-self: flex-start;
  }
}

/* ========== CUPONS DE CAMPANHAS ========== */

.campaigns-coupons-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.campaign-coupons-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.campaign-coupons-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.campaign-coupons-header {
  padding: 1.25rem;
  background: linear-gradient(to bottom, #fafafa, #ffffff);
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.campaign-header-info h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.campaign-desc {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.campaign-value {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.campaign-stats-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge-warning {
  background: #fff8e1;
  color: #f57c00;
}

.badge-success {
  background: #e8f5e9;
  color: #2e7d32;
}

.coupons-grid {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
}

.coupon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
}

.coupon-item.coupon-pending {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border: 2px solid #ffc107;
}

.coupon-item.coupon-paid {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 2px solid #66bb6a;
}

.coupon-item:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.coupon-number {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.coupon-item.coupon-pending .coupon-number {
  color: #f57c00;
}

.coupon-item.coupon-paid .coupon-number {
  color: #2e7d32;
}

.coupon-status-icon {
  font-size: 1rem;
}

.coupon-item.coupon-pending .coupon-status-icon {
  color: #ff9800;
}

.coupon-item.coupon-paid .coupon-status-icon {
  color: #4caf50;
}

/* Responsivo para cupons */
@media (max-width: 768px) {
  .campaign-coupons-header {
    flex-direction: column;
    align-items: stretch;
  }

  .campaign-stats-badges {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .coupons-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .coupons-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .coupon-item {
    padding: 0.75rem;
  }

  .coupon-number {
    font-size: 1rem;
  }
}

/* ========== CUPONS CONSOLIDADOS - DESIGN PREMIUM ========== */

.coupons-section {
  margin-top: 2rem;
}

.campaign-description {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #e3f2fd 0%, #f5f9ff 100%);
  border-left: 4px solid #2196f3;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.campaign-description i {
  color: #2196f3;
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

.campaign-description p {
  margin: 0;
  color: #37474f;
  line-height: 1.6;
  font-size: 0.95rem;
}

.coupons-summary-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  margin-bottom: 2rem;
}

.summary-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.summary-header h4 {
  margin: 0;
  color: #1a1a1a;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-header h4 i {
  color: #2196f3;
}

.summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-box i {
  font-size: 2rem;
  opacity: 0.9;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.stat-box.stat-total {
  border-color: #e3f2fd;
}

.stat-box.stat-total i {
  color: #2196f3;
}

.stat-box.stat-total .stat-value {
  color: #1976d2;
}

.stat-box.stat-pending {
  border-color: #fff3e0;
}

.stat-box.stat-pending i {
  color: #ff9800;
}

.stat-box.stat-pending .stat-value {
  color: #f57c00;
}

.stat-box.stat-paid {
  border-color: #e8f5e9;
}

.stat-box.stat-paid i {
  color: #4caf50;
}

.stat-box.stat-paid .stat-value {
  color: #388e3c;
}

.stat-box.stat-money {
  border-color: #f3e5f5;
}

.stat-box.stat-money i {
  color: #9c27b0;
}

.stat-box.stat-money .stat-value {
  color: #7b1fa2;
  font-size: 1.4rem;
}

.stat-box.stat-money .stat-label {
  color: #9c27b0;
  font-weight: 600;
}

.progress-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.progress-label {
  font-size: 1rem;
  font-weight: 600;
  color: #37474f;
}

.progress-percentage {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2196f3;
}

.progress-bar-wrapper {
  position: relative;
}

.progress-bar-track {
  height: 16px;
  background: #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50 0%, #66bb6a 100%);
  border-radius: 20px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.progress-bar-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.coupons-by-child {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.child-coupons-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e0e0e0;
}

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

.child-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.child-info i {
  font-size: 1.5rem;
  color: #2196f3;
}

.child-info h5 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a1a;
}

.child-stats {
  display: flex;
  gap: 0.75rem;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.stat-badge i {
  font-size: 0.9rem;
}

.stat-badge-pending {
  background: #fff3e0;
  color: #f57c00;
}

.stat-badge-paid {
  background: #e8f5e9;
  color: #388e3c;
}

.child-coupons-section .coupons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
}

.coupon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.75rem;
  border-radius: 10px;
  border: 2px solid;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.coupon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.coupon-card:hover::before {
  left: 100%;
}

.coupon-card.coupon-assigned {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-color: #ff9800;
}

.coupon-card.coupon-paid {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-color: #4caf50;
}

.coupon-number {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.coupon-card.coupon-assigned .coupon-number {
  color: #e65100;
}

.coupon-card.coupon-paid .coupon-number {
  color: #2e7d32;
}

.coupon-status {
  font-size: 1.25rem;
}

.coupon-card.coupon-assigned .coupon-status {
  color: #ff9800;
}

.coupon-card.coupon-paid .coupon-status {
  color: #4caf50;
}

/* Responsivo para cupons consolidados */
@media (max-width: 768px) {
  .summary-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat-box {
    padding: 1rem;
    gap: 0.75rem;
  }

  .stat-box i {
    font-size: 1.5rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .child-coupons-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .child-stats {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }

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

@media (max-width: 480px) {
  .coupons-summary-card {
    padding: 1.25rem;
  }

  .summary-stats-grid {
    grid-template-columns: 1fr;
  }

  .child-coupons-section .coupons-grid {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 0.75rem;
  }

  .coupon-card {
    padding: 1rem 0.5rem;
  }

  .coupon-number {
    font-size: 1rem;
  }

  .coupon-status {
    font-size: 1.1rem;
  }
}

/* ========== NOVO ACCORDION DE CAMPANHAS - PREMIUM DESIGN ========== */

.section-subtitle {
  margin: 0;
  padding: 0;
  color: #888;
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 0.25rem;
}

.campaigns-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.campaign-accordion-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

.campaign-accordion-item:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 16px rgba(0, 61, 165, 0.12);
}

.campaign-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
  gap: 1rem;
}

.campaign-accordion-header:hover {
  background: #f8f9fa;
}

.campaign-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}

.campaign-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.campaign-icon i {
  color: white;
  font-size: 1.5rem;
}

.campaign-title-group {
  flex: 1;
  min-width: 0;
}

.campaign-title-group h4 {
  margin: 0;
  color: var(--primary-blue);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.campaign-mini-desc {
  margin: 0;
  color: #666;
  font-size: 0.875rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.campaign-stats-mini {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.stat-mini {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.875rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.stat-mini i {
  font-size: 0.875rem;
}

.stat-mini-total {
  background: #e3f2fd;
  color: #1976d2;
}

.stat-mini-pending {
  background: #fff3e0;
  color: #f57c00;
}

.stat-mini-paid {
  background: #e8f5e9;
  color: #388e3c;
}

.campaign-expand-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.campaign-accordion-header:hover .campaign-expand-icon {
  background: var(--primary-blue);
}

.campaign-expand-icon i {
  color: #666;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.campaign-accordion-header:hover .campaign-expand-icon i {
  color: white;
}

.campaign-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.campaign-accordion-content.active {
  max-height: 2000px;
}

.campaign-content-inner {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid #f0f0f0;
}

/* Progress Section dentro do Accordion */
.campaign-progress-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid #e0e0e0;
}

.campaign-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.campaign-progress-header .progress-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #37474f;
  font-size: 1rem;
}

.campaign-progress-header .progress-label i {
  color: var(--primary-blue);
}

.campaign-progress-header .progress-percentage {
  font-size: 1.75rem;
  font-weight: 700;
  color: #4caf50;
}

.campaign-progress-bar-wrapper {
  margin-bottom: 1rem;
}

.campaign-progress-track {
  height: 14px;
  background: #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.campaign-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50 0%, #66bb6a 100%);
  border-radius: 20px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
  position: relative;
  overflow: hidden;
}

.campaign-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

.campaign-value-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.value-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.value-amount {
  font-size: 1rem;
  color: #37474f;
}

.value-amount strong {
  color: #4caf50;
  font-size: 1.15rem;
  margin-right: 0.25rem;
}

/* Coupons Section */
.campaign-coupons-section {
  margin-top: 1.5rem;
}

.coupons-section-title {
  margin: 0 0 1rem 0;
  color: var(--primary-blue);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.coupons-section-title i {
  font-size: 1.1rem;
}

.campaign-coupons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.875rem;
}

.campaign-coupon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.75rem;
  border-radius: 10px;
  border: 2px solid;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.campaign-coupon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
}

.campaign-coupon-card:hover::before {
  left: 100%;
}

.campaign-coupon-card.coupon-assigned {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-color: #ff9800;
}

.campaign-coupon-card.coupon-paid {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-color: #4caf50;
}

.campaign-coupon-card:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.coupon-card-number {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.campaign-coupon-card.coupon-assigned .coupon-card-number {
  color: #e65100;
}

.campaign-coupon-card.coupon-paid .coupon-card-number {
  color: #2e7d32;
}

.coupon-card-status {
  font-size: 1.25rem;
}

.campaign-coupon-card.coupon-assigned .coupon-card-status i {
  color: #ff9800;
}

.campaign-coupon-card.coupon-paid .coupon-card-status i {
  color: #4caf50;
}

/* Responsivo para Accordion */
@media (max-width: 768px) {
  .campaign-accordion-header {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
  }

  .campaign-header-left {
    margin-bottom: 1rem;
  }

  .campaign-header-right {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .campaign-stats-mini {
    justify-content: space-between;
    gap: 0.5rem;
  }

  .stat-mini {
    flex: 1;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.5rem 0.625rem;
  }

  .campaign-expand-icon {
    align-self: center;
  }

  .campaign-progress-header .progress-percentage {
    font-size: 1.5rem;
  }

  .campaign-coupons-grid {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 0.75rem;
  }

  .campaign-content-inner {
    padding: 0 1rem 1rem;
  }
}

@media (max-width: 480px) {
  .campaign-icon {
    width: 40px;
    height: 40px;
  }

  .campaign-icon i {
    font-size: 1.25rem;
  }

  .campaign-title-group h4 {
    font-size: 1rem;
  }

  .campaign-mini-desc {
    font-size: 0.8rem;
  }

  .stat-mini {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
  }

  .stat-mini i {
    font-size: 0.75rem;
  }

  .campaign-progress-section {
    padding: 1rem;
  }

  .campaign-coupons-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.625rem;
  }

  .campaign-coupon-card {
    padding: 1rem 0.5rem;
  }

  .coupon-card-number {
    font-size: 1rem;
  }

  .coupon-card-status {
    font-size: 1.1rem;
  }
}
