/* Gerenciamento de Recompensas */
.rewards-manager {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

/* Seções */
.loyalty-config-section,
.rewards-section {
  background: var(--card-bg, #fff);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.section-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 600;
}

.section-header h2 i {
  color: var(--primary-color);
  margin-right: 10px;
}

/* Config Cards */
.config-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.config-card {
  background: var(--bg-secondary, #f8f9fa);
  border: 2px solid var(--border-color, #e0e0e0);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.config-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.config-card.active {
  border-color: var(--success-color, #28a745);
  background: rgba(40, 167, 69, 0.05);
}

.config-card.inactive {
  border-color: var(--text-muted, #6c757d);
  background: rgba(108, 117, 125, 0.05);
  opacity: 0.7;
}

.config-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.config-card.active .config-icon {
  color: var(--success-color, #28a745);
}

.config-card.inactive .config-icon {
  color: var(--text-muted, #6c757d);
}

.config-content h3 {
  margin: 0 0 5px 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.config-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.rewards-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.rewards-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.5rem;
}

.rewards-header h3 i {
  color: var(--primary-color);
  margin-right: 10px;
}

/* Grid de recompensas */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Card de recompensa */
.reward-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.reward-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reward-card.inactive {
  opacity: 0.7;
  background: var(--bg-secondary);
}

.reward-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.reward-header h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  flex: 1;
}

.reward-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.badge-active {
  background: var(--success-color-light, #d4edda);
  color: var(--success-color);
}

.badge-inactive {
  background: var(--text-muted-light, #f0f0f0);
  color: var(--text-muted);
}

.reward-body {
  margin-bottom: 15px;
}

.reward-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.info-item i {
  width: 20px;
  color: var(--primary-color);
}

.info-item strong {
  color: var(--text-primary);
}

.reward-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 10px 0 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.reward-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.reward-actions .btn {
  flex: 1;
  min-width: 80px;
  justify-content: center;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 2px dashed var(--border-color);
}

.empty-state i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Form de recompensa */
.reward-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.reward-form .form-group {
  margin-bottom: 20px;
}

/* Responsivo */
@media (max-width: 768px) {
  .rewards-header {
    flex-direction: column;
    align-items: stretch;
  }

  .rewards-grid {
    grid-template-columns: 1fr;
  }

  .reward-form .form-row {
    grid-template-columns: 1fr;
  }

  .reward-actions {
    flex-direction: column;
  }

  .reward-actions .btn {
    width: 100%;
  }
}

