/* ========================================
   NOTIFICATION BELL & DROPDOWN
   ======================================== */

/* Responsive visibility - mobile shows in brand, desktop shows in navbar-end */
.navbar-brand .notification-dropdown-container {
  display: flex;
}

.navbar-menu .notification-dropdown-container {
  display: none;
}

@media screen and (min-width: 1024px) {
  .navbar-brand .notification-dropdown-container {
    display: none;
  }

  .navbar-menu .notification-dropdown-container {
    display: flex;
  }

  /* Shift dropdown slightly left so it doesn't touch browser edge */
  .navbar-menu .notification-dropdown-menu {
    right: 0;
  }
}

.notification-dropdown-container {
  position: relative;
}

/* Prevent navbar hover background */
.navbar-item.notification-dropdown-container:is(:hover, :focus, :active),
[data-theme="dark"] .navbar-item.notification-dropdown-container:is(:hover, :focus, :active) {
  background-color: transparent !important;
}

.notification-bell-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background-color 0.2s ease;
}

.notification-bell-trigger:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .notification-bell-trigger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.notification-bell-trigger .fa-bell {
  font-size: 1.25rem;
  color: #4a4a4a;
}

[data-theme="dark"] .notification-bell-trigger .fa-bell {
  color: #b5b5b5;
}

.notification-badge-indicator {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background-color: #f14668;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.notification-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 320px;
  max-height: 400px;
  background-color: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  display: flex;
  flex-direction: column;
}

.notification-dropdown-container.is-active .notification-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

[data-theme="dark"] .notification-dropdown-menu {
  background-color: #2a2a2a;
  border-color: #4a4a4a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.notification-dropdown-header {
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

[data-theme="dark"] .notification-dropdown-header {
  border-bottom-color: #4a4a4a;
}

.notification-dropdown-header strong {
  font-size: 0.9375rem;
  color: #363636;
}

[data-theme="dark"] .notification-dropdown-header strong {
  color: #f5f5f5;
}

.notification-dropdown-header .mark-all-read {
  font-size: 0.8125rem;
  color: #3b82f6;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.notification-dropdown-header .mark-all-read:hover {
  text-decoration: underline;
}

.notification-dropdown-list {
  overflow-y: auto;
  flex: 1;
}

.notification-dropdown-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #7a7a7a;
  font-size: 0.875rem;
}

[data-theme="dark"] .notification-dropdown-empty {
  color: #b5b5b5;
}

.notification-dropdown-footer {
  display: block;
  padding: 0.625rem 1rem;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  font-size: 0.875rem;
  color: #3b82f6;
  transition: background-color 0.15s ease;
}

.notification-dropdown-footer:hover {
  background-color: #f5f5f5;
  text-decoration: none;
}

[data-theme="dark"] .notification-dropdown-footer {
  border-top-color: #4a4a4a;
}

[data-theme="dark"] .notification-dropdown-footer:hover {
  background-color: #363636;
}

/* ========================================
   NOTIFICATION ITEM (dropdown & full page)
   ======================================== */

.notification-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  transition: background-color 0.15s ease;
  border-left: 3px solid transparent;
}

.notification-item.is-clickable {
  cursor: pointer;
}

.notification-item:hover {
  background-color: #f5f5f5;
}

[data-theme="dark"] .notification-item:hover {
  background-color: #363636;
}

.notification-item.is-unread {
  border-left-color: #3b82f6;
  background-color: #f0f7ff;
}

[data-theme="dark"] .notification-item.is-unread {
  background-color: #1e3a5f;
}

.notification-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Category-based icon backgrounds */
.notification-item-icon.is-billing {
  background-color: #e0f4e0;
  color: #22c55e;
}

[data-theme="dark"] .notification-item-icon.is-billing {
  background-color: #1a4a2e;
  color: #4ade80;
}

.notification-item-icon.is-team {
  background-color: #e0e7ff;
  color: #6366f1;
}

[data-theme="dark"] .notification-item-icon.is-team {
  background-color: #2e2e5a;
  color: #818cf8;
}

.notification-item-icon.is-service {
  background-color: #fef3c7;
  color: #f59e0b;
}

[data-theme="dark"] .notification-item-icon.is-service {
  background-color: #4a3d20;
  color: #fbbf24;
}

.notification-item-icon.is-security {
  background-color: #fee2e2;
  color: #ef4444;
}

[data-theme="dark"] .notification-item-icon.is-security {
  background-color: #4a2020;
  color: #f87171;
}

.notification-item-icon.is-system {
  background-color: #e5e7eb;
  color: #6b7280;
}

[data-theme="dark"] .notification-item-icon.is-system {
  background-color: #3a3a3a;
  color: #9ca3af;
}

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

.notification-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #363636;
  margin-bottom: 0.125rem;
  line-height: 1.3;
}

a.notification-item-title {
  cursor: pointer;
}

a.notification-item-title:hover {
  text-decoration: underline;
}

[data-theme="dark"] .notification-item-title {
  color: #f5f5f5;
}

.notification-item-body {
  font-size: 0.8125rem;
  color: #7a7a7a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="dark"] .notification-item-body {
  color: #b5b5b5;
}

.notification-item-time {
  font-size: 0.75rem;
  color: #9a9a9a;
  margin-top: 0.25rem;
}

[data-theme="dark"] .notification-item-time {
  color: #8a8a8a;
}

.notification-item-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.notification-item:hover .notification-item-actions {
  opacity: 1;
}


/* ========================================
   FULL PAGE NOTIFICATIONS
   ======================================== */


.notifications-list {
  background-color: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  overflow: hidden;
}

[data-theme="dark"] .notifications-list {
  background-color: #2a2a2a;
  border-color: #4a4a4a;
}

.notifications-list .notification-item {
  border-bottom: 1px solid #e0e0e0;
}

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

[data-theme="dark"] .notifications-list .notification-item {
  border-bottom-color: #4a4a4a;
}
