.notifications-page .header {
  height: var(--header-height);
}

.notifications-page .app-icon {
  width: 24px;
  height: 24px;
  margin-right: 4px;
}

.notifications-page .header-text {
  font-size: var(--text-lg);
  font-weight: bold;
  color: #fff;
}

.notifications-page .main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-sm) var(--space-lg) var(--space-sm);
  margin-bottom: var(--bottom-nav-offset);
  overflow-y: auto;
  position: relative;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.notifications-page .live-feed-section {
  margin-bottom: var(--space-xl);
}

.notifications-page .section-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  padding-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notifications-page .live-feed-updated {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--gray-300);
  margin-left: var(--space-sm);
}

.notifications-page .alert-filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 15px 0;
  justify-content: flex-start;
  align-items: center;
  width: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.notifications-page .alert-filter-container::-webkit-scrollbar {
  display: none;
}

.notifications-page .live-alert-item {
  display: flex;
  align-items: flex-start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-color);
}

.notifications-page .live-alert-item:last-child {
  border-bottom: none;
}

.notifications-page .live-alert-icon {
  width: 24px;
  height: 24px;
  margin-right: var(--space-md);
  margin-top: 1px;
  flex-shrink: 0;
}

.notifications-page .live-alert-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.notifications-page .live-alert-title {
  color: #fff;
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.notifications-page .live-alert-description {
  color: var(--gray-300);
  font-weight: 500;
  font-size: var(--text-xs);
  line-height: 1.4;
  margin-bottom: 6px;
}

/* Severity badge */
.notifications-page .live-alert-severity {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: var(--space-sm);
  vertical-align: middle;
  flex-shrink: 0;
}

.notifications-page .live-alert-severity.severe {
  background-color: rgba(255, 107, 107, 0.18);
  color: var(--color-danger);
}

.notifications-page .live-alert-severity.warning {
  background-color: rgba(255, 209, 102, 0.18);
  color: var(--color-warning);
}

.notifications-page .live-alert-severity.info {
  background-color: rgba(106, 99, 246, 0.18);
  color: var(--color-info);
}

/* Affected routes */
.notifications-page .live-alert-routes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: 6px;
}

.notifications-page .live-alert-route-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px var(--space-sm);
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--gray-300);
}

/* Timestamp */
.notifications-page .live-alert-time {
  font-size: 11px;
  color: var(--gray-300);
  font-weight: 500;
  margin-top: 2px;
}

/* Alert filter buttons */
.notifications-page .alert-filter-btn {
  background-color: transparent;
  border: 1px solid var(--brand-primary);
  color: var(--brand-primary);
  padding: 0 var(--space-lg);
  border-radius: var(--radius-xl);
  font-size: var(--text-base);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: 36px;
  flex-shrink: 0;
}

.notifications-page .alert-filter-btn:hover {
  background-color: var(--brand-primary);
  color: white;
}

.notifications-page .alert-filter-btn.active {
  background-color: var(--brand-primary);
  color: white;
}

.notifications-page .section-title .refresh-btn {
  position: relative;
  top: auto;
  right: auto;
  background: var(--brand-primary);
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -4px;
  align-self: center;
  box-shadow: none;
  z-index: auto;
}

.notifications-page .section-title .refresh-btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1);
}

.notifications-page .notification-search-pill {
  display: flex;
  align-items: center;
  background-color: transparent;
  border-radius: var(--radius-xl);
  padding: 0 var(--space-md);
  width: 150px;
  flex-grow: 1;
  height: 36px;
  border: 1px solid var(--brand-primary);
  flex-shrink: 0;
  margin-top: 6px;
  overflow: hidden;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.notifications-page .notification-search-pill:focus-within,
.notifications-page .notification-search-pill.expanded {
  width: 200px;
  flex-grow: 1.5;
  border-color: var(--brand-primary);
  background-color: var(--brand-primary);
}

.notifications-page .pill-search-icon {
  width: 12px;
  height: 12px;
  margin-right: 6px;
  background-color: var(--brand-primary);
  -webkit-mask-image: url('../images/search.svg');
  mask-image: url('../images/search.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  display: inline-block;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.notifications-page .notification-search-pill:focus-within .pill-search-icon,
.notifications-page .notification-search-pill.expanded .pill-search-icon {
  background-color: #fff;
}

.notifications-page .notification-search-pill input {
  background: none;
  border: none;
  color: #fff;
  font-size: var(--text-md);
  width: 145.45%;
  transform: scale(0.6875);
  transform-origin: left center;
  margin-right: -45.45%;
  outline: none;
  font-family: 'Inter', sans-serif;
  padding: 0;
  height: 24px;
}

.notifications-page .notification-search-pill input::placeholder {
  color: var(--brand-primary);
  transition: color 0.3s ease;
}

.notifications-page .notification-search-pill:focus-within input::placeholder,
.notifications-page .notification-search-pill.expanded input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Override header-center alignment for notifications page */
.notifications-page .header-center {
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  margin-left: var(--space-xs);
}

@media (display-mode: standalone) {
  .notifications-page .main-content {
    margin-bottom: var(--bottom-nav-offset);
  }
}