/* ============================================
   Notification Styles
   - Navbar bell badge
   - Notification center page (card-based)
   - Toast notifications
   ============================================ */

/* ---- Navbar Bell Badge ---- */
.notification-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.125rem;
  font-size: 0.625rem;
  padding: 0.125rem 0.3125rem;
  border-radius: 0.625rem;
  min-width: 1rem;
  text-align: center;
}

/* ---- Notification Center Page ---- */
.notification-center {
  max-width: 800px;
  margin: 0 auto;
}

.notification-center .filter-tabs .nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Card-based notification items */
.notification-card {
  transition: box-shadow 0.15s;
}

.notification-card:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.notification-card.notification-unread {
  border-left: 3px solid var(--bs-primary, #0d6efd);
}

.notification-card .card-text {
  font-size: 0.875rem;
}

/* Type icon */
.notification-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background-color: var(--bs-tertiary-bg, #e9ecef);
  color: var(--bs-body-color, #333);
}

.notification-type-icon.icon-security {
  background-color: rgba(192, 57, 43, 0.1);
  color: #e74c3c;
}

.notification-type-icon.icon-party {
  background-color: rgba(39, 174, 96, 0.1);
  color: #27ae60;
}

.notification-type-icon.icon-ride {
  background-color: rgba(41, 128, 185, 0.1);
  color: #3498db;
}

.notification-type-icon.icon-social {
  background-color: rgba(142, 68, 173, 0.1);
  color: #9b59b6;
}

/* Unread dot */
.notification-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bs-primary, #0d6efd);
  display: inline-block;
}

/* ---- Toast Notifications ---- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notification-toast {
  min-width: 300px;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease-out;
}

.notification-toast .toast-header {
  border-radius: 8px 8px 0 0;
}

.notification-toast.toast-info .toast-header {
  background-color: #cfe2ff;
  color: #084298;
}

.notification-toast.toast-success .toast-header {
  background-color: #d1e7dd;
  color: #0f5132;
}

.notification-toast.toast-warning .toast-header {
  background-color: #fff3cd;
  color: #664d03;
}

.notification-toast.toast-error .toast-header {
  background-color: #f8d7da;
  color: #842029;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ---- Mobile Responsive ---- */
@media (max-width: 767px) {
  .toast-container {
    right: 10px;
    left: 10px;
  }

  .notification-toast {
    min-width: auto;
    max-width: none;
  }

  .notification-type-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
}
