.notif-wrapper {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.notif-list {
  background: rgba(35, 35, 58, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #18182a;
  border-radius: 10px;
  margin-bottom: 1rem;
  padding: 1rem;
  border-left: 4px solid #4c82ff;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s, opacity 0.3s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(76, 130, 255, 0.07);
  cursor: default;
}

.notif-item:hover {
  box-shadow: 0 4px 16px rgba(76, 130, 255, 0.12);
}

.notif-item.unread {
  border-left: 4px solid #ff4757;
  box-shadow: 0 4px 16px rgba(255, 71, 87, 0.08);
}

.notif-item.unread:hover {
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.12);
}

.notif-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #4c82ff;
  background: #23233a;
  flex-shrink: 0;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-date {
  color: #888;
  font-size: 0.85em;
  margin-top: 4px;
}

.notif-type {
  font-size: 0.95em;
  color: #4c82ff;
  margin-bottom: 2px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.notif-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.notif-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.notif-unread-dot {
  width: 10px;
  height: 10px;
  background: #ff4757;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff4757;
  flex-shrink: 0;
}

.notif-delete-btn {
  background: rgba(255, 71, 87, 0.2);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.4);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.notif-delete-btn:hover {
  background: #ff4757;
  color: white;
  transform: scale(1.08);
}

.notif-actions {
  margin-top: 1.5rem;
  text-align: right;
}

.notif-actions button {
  background: linear-gradient(90deg, #4c82ff, #7f53ff);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(76, 130, 255, 0.2);
  transition: all 0.2s;
}

.notif-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(76, 130, 255, 0.3);
}

.notif-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  color: #888;
  gap: 1rem;
}

.notif-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #23233a;
  border-top-color: #4c82ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.notif-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: #888;
}

.notif-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.notif-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-filter-btn {
  background: rgba(76, 130, 255, 0.15);
  color: #aab6fe;
  border: 1px solid rgba(76, 130, 255, 0.3);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notif-filter-btn:hover {
  background: rgba(76, 130, 255, 0.25);
  color: #fff;
}

.notif-filter-btn.active {
  background: linear-gradient(90deg, #4c82ff, #7f53ff);
  color: white;
  border-color: transparent;
}

.notif-filter-btn .count {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-left: 2px;
}

.notif-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0 2px;
  font-size: 0.9rem;
  color: #888;
}

.notif-summary strong {
  color: #aab6fe;
}

.notif-date-group {
  font-size: 0.8rem;
  color: #6c7a89;
  font-weight: 600;
  margin: 1rem 0 0.5rem 0;
  padding-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.notif-date-group:first-child {
  margin-top: 0;
}

.notif-item[data-category="message"] {
  border-left-color: #00d9ff;
}

.notif-item[data-category="mention"] {
  border-left-color: #ffa502;
}

.notif-item[data-category="like"] {
  border-left-color: #ff4757;
}

.notif-item[data-category="commentaire"] {
  border-left-color: #7bed9f;
}

.notif-item[data-category="social"] {
  border-left-color: #a55eea;
}

.notif-item[data-category="post"] {
  border-left-color: #70a1ff;
}

.notif-item[data-category="appel"] {
  border-left-color: #2ed573;
}

.notif-refresh-btn {
  background: rgba(76, 130, 255, 0.2);
  color: #4c82ff;
  border: 1px solid rgba(76, 130, 255, 0.4);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.notif-refresh-btn:hover {
  background: rgba(76, 130, 255, 0.35);
}

.notif-refresh-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e1e2f;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  font-size: 0.95rem;
  animation: toastIn 0.3s ease;
}

.toast.error {
  background: #ff4757;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

body {
  background: linear-gradient(135deg, #23233a 0%, #18182a 100%);
  min-height: 100vh;
  margin: 0;
  font-family: "Segoe UI", "Roboto", Arial, sans-serif;
  color: #f5f6fa;
}

header {
  text-align: center;
  padding: 1rem 0;
}

header h1 {
  font-size: 2rem;
  color: #4c82ff;
  margin: 0;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(76, 130, 255, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

a {
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
  color: #7f53ff;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  .notif-wrapper {
    margin: 1rem auto;
    padding: 0 0.5rem;
  }

  .notif-filters {
    gap: 6px;
    margin-bottom: 1rem;
  }

  .notif-filter-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .notif-list {
    padding: 1rem;
    border-radius: 12px;
  }

  .notif-item {
    flex-wrap: wrap;
    padding: 0.9rem;
    border-left-width: 3px;
  }

  .notif-avatar {
    width: 40px;
    height: 40px;
  }

  .notif-type {
    font-size: 0.9em;
  }

  .notif-date {
    font-size: 0.8em;
  }

  .notif-actions {
    margin-top: 1rem;
    text-align: center;
  }

  .notif-actions button {
    width: 100%;
    padding: 12px;
  }

  header h1 {
    font-size: 1.4rem;
  }

  .notif-delete-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

::-webkit-scrollbar {
  width: 8px;
  background: #23233a;
}

::-webkit-scrollbar-thumb {
  background: #4c82ff;
  border-radius: 4px;
}

::selection {
  background: #4c82ff44;
}

.hidden {
  display: none !important;
}

.notif-header-icon {
  width: 28px;
  height: 28px;
}
