/* Styles personnalisés pour le logo */

.logo-container {
  display: flex;
  align-items: center;
}

.logo-icon {
  display: inline-block;
  width: 160px; /* largeur par défaut du logo */
  height: 36px; /* hauteur par défaut du logo */
  background-image: url('../media/logos/logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border-radius: 0;
  margin-right: 0.5rem;
  box-shadow: none !important;
}

/* Supprimer l'icône textuelle précédente */
.logo-icon::before { content: none; }

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.2rem;
  font-weight: 600;
  color: #3F4254;
}

.logo-highlight {
  font-size: 1.2rem;
  font-weight: 600;
  color: #6e5be7;
}

/* Option: masquer le texte à côté du logo si le visuel suffit */
.logo-container .logo-text { display: none; }

/* Désactiver tout effet d'ombre autour du logo et de son conteneur sur les pages d'auth */
.logo-container { box-shadow: none !important; background: transparent !important; }
.app-blank .bg-body { box-shadow: none !important; }
.app-blank .bg-body.rounded-4 { border: 0 !important; }

/* Version sombre du logo */
[data-bs-theme=dark] .logo-main {
  color: #ffffff;
}

/* Ajustements responsives */
@media (max-width: 992px) {
  .logo-icon { width: 140px; height: 32px; }
}

@media (max-width: 576px) {
  .logo-icon { width: 120px; height: 28px; }
}

/* Suppression des fonds gris sur les listes dans les plans d'abonnement */
.list-group-flush.bg-transparent,
.list-group-flush.bg-transparent .list-group-item {
  background-color: transparent !important;
}

.list-group-item.bg-transparent {
  background-color: transparent !important;
}

/* Styles pour les pages de statistiques */
.campaign-view-container {
  background-color: #f8f9fa;
  min-height: 100vh;
  padding: 0;
}

.campaign-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.campaign-header .header-content {
  text-align: center;
}

.campaign-header .page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.campaign-header .page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.campaign-content {
  padding: 0 2rem;
}

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

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #7f8c8d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #7f8c8d;
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.empty-state p {
  font-size: 1rem;
  margin-bottom: 0;
}

.chart-container-responsive {
  position: relative;
  height: 400px;
  width: 100%;
}

.chart-container-responsive-pie {
  position: relative;
  height: 350px;
  width: 100%;
}

.analytics-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.analytics-card:hover {
  transform: translateY(-2px);
}

.analytics-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.analytics-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
}

.analytics-icon.success {
  background-color: #28a745;
}

.analytics-icon.primary {
  background-color: #6e5be7;
}

.analytics-icon.warning {
  background-color: #ffc107;
}

.analytics-info {
  flex: 1;
}

.analytics-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.analytics-subtitle {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-bottom: 0;
}

.chart-wrapper {
  position: relative;
}

.analytics-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #7f8c8d;
}

.analytics-empty .empty-icon-small {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.analytics-empty h6 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.analytics-empty p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Responsivité */
@media (max-width: 768px) {
  .campaign-header .page-title {
    font-size: 2rem;
  }
  
  .campaign-content {
    padding: 0 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
}