/* Notification bell icon in header */
.notification-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  text-decoration: none;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--color-crimson);
  color: #fff;
  font-size: var(--text-xxxx-small);
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* Notifications page */
.notifications-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;

  .detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    flex-shrink: 0;
  }

  .detail-topbar-title {
    font-size: var(--text-normal);
    font-weight: 600;
  }
}

.notifications-content {
  flex: 1;
  padding: 0 20px 24px;
}

.notifications-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 20px;
  color: var(--color-text-light);
  text-align: center;
  font-size: var(--text-small);
}

/* Period groups */
.notifications-group {
  margin-bottom: 8px;
}

.notifications-group-title {
  font-size: var(--text-x-small);
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 0 8px;
}

/* Individual notification items */
.notification-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);

  &:last-child {
    border-bottom: none;
  }
}

.notification-unread {
  .notification-avatar {
    background: var(--color-crimson);
    color: #fff;
  }
}

.notification-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-x-small);
  font-weight: 600;
  flex-shrink: 0;
}

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

.notification-text {
  font-size: var(--text-small);
  line-height: 1.4;

  strong {
    font-weight: 600;
  }
}

.notification-time {
  font-size: var(--text-x-small);
  color: var(--color-text-light);
  margin-top: 2px;
}

.notification-chevron {
  flex-shrink: 0;
  color: var(--color-text-light);
}
