
.notifications-container {
  padding: 32px;
  margin: 0 auto;
}

.notifications-header {
  display: flex;
  align-items: center;
  gap: 24px;
  align-self: stretch;
  margin-bottom: 32px;
  width: 100%;
}

.notifications-title {
  color: var(--Semantic-Text-Primary, #E5E5E5);
  font-family: var(--Font-family-Title, Nexa);
  font-size: var(--Typeface-size-H4, 26px);
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  margin: 0;
  flex-grow: 1;
}

.mark-all-read-button {
  display: flex;
  padding: 16px 16px 12px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.mark-all-read-button:hover:not(:disabled) {
  opacity: 0.8;
}

.mark-all-read-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mark-all-read-button {
  color: var(--Semantic-Button-Primary-Background, #F59500);
  text-align: center;
  font-family: var(--Font-family-Title, Nexa);
  font-size: var(--Typeface-size-Button-Large, 16px);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: capitalize;
}

.notification-badge-container {
  margin-left: 8px;
}

.notification-badge {
  display: flex;
  padding: 0 4px;
  justify-content: center;
  align-items: self-end;
  gap: 4px;
  border-radius: 26px;
  background: var(--Brand-Red, #F52813);
  width: 30px;
  height: 16px;
}

.notification-badge-text {
  color: var(--Semantic-Text-Primary, #E5E5E5);
  text-align: center;
  font-family: var(--Font-family-Title, Nexa);
  font-size: var(--Typeface-size-Badge-Label, 12px);
  font-style: normal;
  font-weight: 700;
  line-height: var(--Typeface-size-Badge-Label, 12px);
}

.notifications-list {
  width: 100%;
}

.notification-content-collapsed {
  width: 100%;
}

.notification-content-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.notification-date-collapsed {
  color: var(--Semantic-Text-Secondary, #858585);
  font-family: var(--Font-family-Body, Lato);
  font-size: var(--Typeface-size-Overline, 11px);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
}

.notification-title-collapsed {
  font-family: var(--Font-family-Title, Nexa);
  font-size: var(--Typeface-size-Subtitle-2, 16px);
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}

.notification-title-collapsed.unread {
  color: var(--Semantic-Text-Primary, #E5E5E5);
}

.notification-title-collapsed.read {
  color: var(--Semantic-Text-Secondary, #858585);
}

.notification-expand-button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: opacity 0.2s ease;
}

.notification-expand-button:hover {
  opacity: 0.7;
}

.notification-controls-collapsed {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-unread-indicator {
  width: 10px;
  height: 10px;
  background: var(--Brand-Red, #F52813);
  border-radius: 50%;
  flex-shrink: 0;
}

.notification-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px; 
  width: 100%;
}

.notification-date-expanded {
  color: var(--Semantic-Text-Secondary, #858585);
  font-family: var(--Font-family-Body, Lato);
  font-size: var(--Typeface-size-Overline, 11px);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
}

.notification-title-expanded {
  font-family: var(--Font-family-Title, Nexa);
  font-size: var(--Typeface-size-Subtitle-2, 16px);
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}

.notification-title-expanded.unread {
  color: var(--Semantic-Text-Primary, #E5E5E5);
}

.notification-title-expanded.read {
  color: var(--Semantic-Text-Secondary, #858585);
}

.notification-close-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.notification-close-button:hover {
  opacity: 0.7;
}

.notification-subtitle-expanded {
  color: var(--Semantic-Text-Primary, #E5E5E5);
  font-family: var(--Font-family-Body, Lato);
  font-size: var(--Typeface-size-Body-2, 14px);
  font-style: normal;
  font-weight: 700;
  line-height: 22px;
  margin-bottom: 12px;
}


@media (max-width: 768px) {
  .notifications-container {
    padding: 16px;
  }
  
  .notifications-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .notifications-title {
    font-size: 22px;
  }
  
  .mark-all-read-button {
    padding: 12px 16px 8px 16px;
    font-size: 14px;
    align-self: flex-end;
  }
}

.notifications-pagination {
  display: inline-flex;
  padding: 4px;
  align-items: center;
  border-radius: 12px;
  background: var(--Semantic-Background-Surface-3, #0D0D0D);
  gap: 0;
  max-width: 100%;
  overflow-x: auto;
}

.pagination-button {
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
  display: flex;
  padding: 8px 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--Semantic-Background-Surface-3, #0D0D0D);
  
  color: var(--Semantic-Text-Secondary, #858585);
  text-align: center;
  font-family: var(--Font-family-Title, Nexa);
  font-size: var(--Typeface-size-Button-Medium, 14px);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: capitalize;
}

.pagination-nav {
  min-width: 80px;
  padding: 8px 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pagination-nav.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-number {
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
}

.pagination-number.active {
  border-radius: 8px;
  background: var(--Semantic-Button-Primary-Background, #F59500);
  color: var(--Semantic-Button-Primary-Foreground, #000);
}

.pagination-number:not(.active) {
  background: var(--Semantic-Background-Surface-3, #0D0D0D);
  color: var(--Semantic-Text-Secondary, #858585);
}

.pagination-button:hover:not(.disabled):not(.active) {
  background-color: rgba(26, 26, 26, 0.5);
}

@media (max-width: 480px) {
  .notifications-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .notifications-title {
    align-self: center;
  }
  
  .mark-all-read-button {
    align-self: center;
  }
  
  .pagination-nav {
    min-width: 50px;
    max-width: 60px;
    padding: 8px 8px;
    font-size: 12px;
  }
  
  .pagination-number {
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    font-size: 12px;
  }
  
  .notifications-pagination {
    padding: 3px;
  }
  
  .mobile\:justify-center {
    justify-content: center !important;
  }
}

.notifications-empty-container {
  display: flex;
  height: 910px;
  padding: 64px 24px;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  border-radius: 16px;
  background: var(--Semantic-Background-Surface-3, #0D0D0D);
  max-width: 536px;
}

.notifications-empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 24px;
}

.notifications-empty-icon {
  display: flex;
  width: 40px;
  height: 40px;
  padding: 2px 4px;
  justify-content: center;
  align-items: center;
  position: relative;
}

.notifications-empty-red-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 9999;
}

.notifications-empty-text {
  align-self: stretch;
  color: var(--Semantic-Text-Primary, #E5E5E5);
  text-align: center;
  font-family: var(--Font-family-Body, Lato);
  font-size: var(--Typeface-size-Body-1, 16px);
  font-style: normal;
  font-weight: 400;
  line-height: 24px; 
}

/* Popup HTML content styling */
.popup-html-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.popup-html-content p {
  margin-bottom: 12px;
}

.popup-html-content p:last-child {
  margin-bottom: 0;
}

.popup-html-content ul,
.popup-html-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.popup-html-content li {
  margin-bottom: 8px;
}

.popup-html-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}

.popup-html-content a {
  color: var(--Semantic-Button-Primary-Background, #F59500);
  text-decoration: underline;
}

.popup-html-content a:hover {
  opacity: 0.8;
}

.popup-html-content strong,
.popup-html-content b {
  font-weight: 700;
}

.popup-html-content em,
.popup-html-content i {
  font-style: italic;
}

.popup-html-content h1,
.popup-html-content h2,
.popup-html-content h3,
.popup-html-content h4,
.popup-html-content h5,
.popup-html-content h6 {
  margin-top: 16px;
  margin-bottom: 12px;
  font-family: var(--Font-family-Title, Nexa);
  color: var(--Semantic-Text-Primary, #E5E5E5);
}

.popup-html-content h1 {
  font-size: 24px;
}

.popup-html-content h2 {
  font-size: 20px;
}

.popup-html-content h3 {
  font-size: 18px;
}
