/* =====================================================
   NOTIFICATIONS - BADGE ET DROPDOWN
   ===================================================== */

/* Container du badge de notification */
.notification-bell-container {
  position: relative;
  margin-right: 20px;
}

/* Bouton cloche */
.notification-bell-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-bell-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 191, 255, 0.5);
  transform: scale(1.05);
}

.notification-bell-btn.has-unread {
  animation: bellShake 2s ease-in-out infinite;
}

@keyframes bellShake {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-10deg); }
  20%, 40% { transform: rotate(10deg); }
}

.bell-icon {
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 4px rgba(0, 191, 255, 0.3));
}

/* Compteur de notifications */
.notification-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ff4757, #ff6348);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.5);
  border: 2px solid #0d1117;
}

/* Dropdown des notifications */
.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 400px;
  max-height: 500px;
  background: linear-gradient(135deg, #1a1f2e 0%, #0d1117 100%);
  border: 2px solid rgba(0, 191, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: hidden;
  animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header du dropdown */
.notification-dropdown-header {
  padding: 20px;
  background: rgba(0, 191, 255, 0.1);
  border-bottom: 2px solid rgba(0, 191, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-dropdown-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #E6EDF3;
  font-weight: 700;
}

.mark-all-read-btn {
  background: transparent;
  border: 1px solid rgba(0, 191, 255, 0.4);
  color: #00bfff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mark-all-read-btn:hover {
  background: rgba(0, 191, 255, 0.1);
  border-color: #00bfff;
}

/* Body du dropdown */
.notification-dropdown-body {
  max-height: 350px;
  overflow-y: auto;
  padding: 10px;
}

/* Scrollbar personnalisée */
.notification-dropdown-body::-webkit-scrollbar {
  width: 8px;
}

.notification-dropdown-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.notification-dropdown-body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00bfff, #7b68ee);
  border-radius: 10px;
}

/* Loading state */
.notification-loading {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Empty state */
.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.notification-empty-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  opacity: 0.3;
}

/* Item de notification dans le dropdown */
.notification-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.notification-item.unread {
  background: rgba(0, 191, 255, 0.1);
  border-left-color: #00bfff;
}

.notification-item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 8px;
}

.notification-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #E6EDF3;
  margin: 0;
  flex: 1;
}

.notification-item-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  margin-left: 10px;
}

.notification-item-message {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.4;
}

.notification-item-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 8px;
  text-transform: uppercase;
}

.notification-item-type.demande_aide {
  background: rgba(255, 165, 0, 0.2);
  color: #ffa500;
}

.notification-item-type.prise_en_charge {
  background: rgba(0, 255, 127, 0.2);
  color: #00ff7f;
}

.notification-item-type.prospect_inscrit {
  background: rgba(138, 43, 226, 0.2);
  color: #8a2be2;
}

/* Footer du dropdown */
.notification-dropdown-footer {
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 2px solid rgba(0, 191, 255, 0.2);
  text-align: center;
}

.view-all-notifications {
  color: #00bfff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.view-all-notifications:hover {
  color: #7b68ee;
  text-decoration: underline;
}

/* =====================================================
   PAGE NOTIFICATIONS COMPLÈTE
   ===================================================== */

/* Filtres de notifications */
.notification-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 191, 255, 0.5);
  color: #E6EDF3;
}

.filter-btn.active {
  background: linear-gradient(135deg, #00bfff, #7b68ee);
  border-color: #00bfff;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 191, 255, 0.3);
}

/* Carte de notification complète (page) */
.notification-card {
  background: linear-gradient(135deg, rgba(26,31,46,0.6) 0%, rgba(13,17,23,0.8) 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.notification-card:hover {
  border-color: rgba(0, 191, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 191, 255, 0.2);
}

.notification-card.unread {
  background: linear-gradient(135deg, rgba(0,191,255,0.1) 0%, rgba(123,104,238,0.05) 100%);
  border-left: 5px solid #00bfff;
}

.notification-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 15px;
}

.notification-card-left {
  flex: 1;
}

.notification-card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.notification-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #E6EDF3;
  margin: 0 0 5px 0;
}

.notification-card-message {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0;
}

.notification-card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-card-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.notification-card-action {
  background: linear-gradient(135deg, #00bfff, #7b68ee);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notification-card-action:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 191, 255, 0.4);
}

/* Loading placeholder pour la liste */
.notification-loading-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.5);
}

.notification-loading-placeholder p {
  margin-top: 20px;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .notification-dropdown {
    width: 90vw;
    max-width: 350px;
  }

  .notification-bell-container {
    margin-right: 10px;
  }

  .notification-card {
    padding: 15px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}
