/* ===================================
   DASHBOARD DARK THEME
   Style premium sombre pour le tableau de bord client
   =================================== */

.stat-card {
  background: linear-gradient(145deg, #1C1C1E 0%, #2C2C2E 100%);
  border-radius: var(--border-radius);
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(201, 169, 97, 0.1);
  transition: var(--transition-fast);
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 169, 97, 0.15);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(201, 169, 97, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition-fast);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(201, 169, 97, 0.2),
    0 0 0 1px rgba(201, 169, 97, 0.3);
  border-color: rgba(201, 169, 97, 0.4);
}

.stat-card .stat-icon {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: var(--primary);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(201, 169, 97, 0.3));
  transition: var(--transition-fast);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 20px rgba(201, 169, 97, 0.6));
}

.stat-card .stat-value {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 2;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.stat-card .stat-icon-bg {
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 8rem;
  opacity: 0.03;
  color: var(--primary);
  transition: var(--transition-fast);
}

.stat-card:hover .stat-icon-bg {
  opacity: 0.06;
  transform: rotate(10deg) scale(1.1);
}

.stat-card .stat-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
}

.stat-card.highlight {
  background: var(--gold-gradient);
  color: white;
  box-shadow:
    0 10px 40px rgba(201, 169, 97, 0.3),
    0 0 30px rgba(201, 169, 97, 0.2),
    0 0 0 1px rgba(201, 169, 97, 0.3);
  animation: pulse-highlight 2s ease-in-out infinite;
}

@keyframes pulse-highlight {
  0%, 100% {
    box-shadow:
      0 10px 40px rgba(201, 169, 97, 0.3),
      0 0 30px rgba(201, 169, 97, 0.2),
      0 0 0 1px rgba(201, 169, 97, 0.3);
  }
  50% {
    box-shadow:
      0 15px 50px rgba(201, 169, 97, 0.4),
      0 0 40px rgba(201, 169, 97, 0.3),
      0 0 0 1px rgba(201, 169, 97, 0.5);
  }
}

.stat-card.highlight .stat-value {
  color: white;
  -webkit-text-fill-color: white;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.stat-card.highlight .stat-label,
.stat-card.highlight .stat-icon {
  color: white;
}

.stat-card.highlight .stat-icon-bg {
  color: white;
  opacity: 0.08;
}

.activity-card {
  background: linear-gradient(145deg, #1C1C1E 0%, #2C2C2E 100%);
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(201, 169, 97, 0.1);
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(201, 169, 97, 0.15);
  transition: var(--transition-fast);
}

.activity-card:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 169, 97, 0.15);
  border-color: rgba(201, 169, 97, 0.3);
}

.activity-card .card-header {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.9) 0%, rgba(160, 135, 96, 0.9) 100%);
  color: white;
  padding: 18px 25px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(201, 169, 97, 0.3);
  position: relative;
  overflow: hidden;
}

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

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

.activity-card .card-header i {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.activity-card .card-header .badge {
  background-color: rgba(255, 255, 255, 0.25);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
}

.activity-card .card-body {
  padding: 0;
  max-height: 350px;
  overflow-y: auto;
  background: linear-gradient(180deg, #1C1C1E 0%, #2C2C2E 100%);
}

.activity-card .card-body::-webkit-scrollbar {
  width: 8px;
}

.activity-card .card-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.activity-card .card-body::-webkit-scrollbar-thumb {
  background: var(--gold-gradient);
  border-radius: 4px;
}

.activity-card .card-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #D4B98A 0%, #B39976 100%);
}

.activity-item {
  padding: 18px 25px;
  border-bottom: 1px solid rgba(201, 169, 97, 0.1);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.activity-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--gold-gradient);
  transition: var(--transition-fast);
}

.activity-item:hover::before {
  height: 100%;
}

.activity-item:hover {
  background: linear-gradient(90deg, rgba(201, 169, 97, 0.08) 0%, transparent 100%);
  transform: translateX(5px);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item .activity-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.activity-item .activity-details {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  line-height: 1.6;
}

.activity-item .activity-time {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.quick-access {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.quick-access-btn {
  background: linear-gradient(145deg, #1C1C1E 0%, #2C2C2E 100%);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(201, 169, 97, 0.1);
  transition: var(--transition-fast);
  text-align: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 130px;
  border: 1px solid rgba(201, 169, 97, 0.15);
  position: relative;
  overflow: hidden;
}

.quick-access-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.quick-access-btn:hover::before {
  width: 200px;
  height: 200px;
}

.quick-access-btn:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(201, 169, 97, 0.2),
    0 0 0 1px rgba(201, 169, 97, 0.3);
  color: var(--primary);
  border-color: rgba(201, 169, 97, 0.4);
}

.quick-access-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--primary);
  transition: var(--transition-fast);
  filter: drop-shadow(0 4px 8px rgba(201, 169, 97, 0.3));
  position: relative;
  z-index: 1;
}

.quick-access-btn:hover .quick-access-icon {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 6px 15px rgba(201, 169, 97, 0.6));
}

.quick-access-btn span {
  position: relative;
  z-index: 1;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.notification-item {
  padding: 12px;
  border-bottom: 1px solid rgba(201, 169, 97, 0.1);
  transition: var(--transition-fast);
  position: relative;
}

.notification-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--gold-gradient);
  transition: var(--transition-fast);
}

.notification-item:hover::before {
  height: 100%;
}

.notification-item:hover {
  background: linear-gradient(90deg, rgba(201, 169, 97, 0.08) 0%, transparent 100%);
  transform: translateX(3px);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  background: linear-gradient(90deg, rgba(201, 169, 97, 0.12) 0%, transparent 100%);
  border-left: 3px solid var(--primary);
}

.notification-time {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
}

.event-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.15) 0%, rgba(201, 169, 97, 0.05) 100%);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-right: 10px;
  color: var(--primary);
  font-weight: 500;
  border: 1px solid rgba(201, 169, 97, 0.2);
  transition: var(--transition-fast);
}

.event-date:hover {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.25) 0%, rgba(201, 169, 97, 0.15) 100%);
  transform: scale(1.05);
  border-color: rgba(201, 169, 97, 0.4);
}

.rating-stars {
  color: #ffc107;
  font-size: 1.3rem;
  margin-right: 10px;
  filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
  transition: var(--transition-fast);
}

.rating-stars:hover {
  filter: drop-shadow(0 4px 8px rgba(255, 193, 7, 0.5));
  transform: scale(1.05);
}

.rating-stars i {
  margin: 0 2px;
  transition: var(--transition-fast);
}

.rating-stars i:hover {
  transform: scale(1.2) rotate(10deg);
}

.feedback-content {
  font-style: italic;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.6);
  padding: 12px;
  background: rgba(201, 169, 97, 0.05);
  border-left: 3px solid rgba(201, 169, 97, 0.3);
  border-radius: 4px;
  line-height: 1.6;
}

.feedback-event {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 6px;
}

.feedback-event i {
  color: var(--primary);
  font-size: 1rem;
}

/* Sections vides */
.text-center.text-muted {
  color: rgba(255, 255, 255, 0.4) !important;
  padding: 40px 20px;
}

.text-center.text-muted i {
  color: rgba(201, 169, 97, 0.3);
  filter: drop-shadow(0 4px 8px rgba(201, 169, 97, 0.2));
}

.text-center.text-muted p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  margin-top: 15px;
}

/* Améliorer les boutons dans les cartes */
.btn-primary {
  background: var(--gold-gradient);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.5);
}

.btn-outline-primary {
  border: 2px solid rgba(201, 169, 97, 0.5);
  color: var(--primary);
  background: transparent;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.btn-outline-primary:hover {
  background: var(--gold-gradient);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
}

/* Welcome header */
.welcome-header {
  background: linear-gradient(145deg, #1C1C1E 0%, #2C2C2E 100%);
  padding: 30px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  border: 1px solid rgba(201, 169, 97, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.welcome-header h2 {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.welcome-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* Section titles */
h3 {
  color: var(--white) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(201, 169, 97, 0.4);
}

/* Dashboard footer */
.dashboard-footer {
  text-align: center;
  margin-top: 50px;
  padding: 25px;
  background: linear-gradient(145deg, #1C1C1E 0%, #2C2C2E 100%);
  border-radius: var(--border-radius);
  border: 1px solid rgba(201, 169, 97, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dashboard-footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin: 0;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .stat-card {
    margin-bottom: 15px;
  }

  .stat-card .stat-value {
    font-size: 2rem;
  }

  .quick-access {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}