/* =========================================================
   Notification Marquee Block
   ========================================================= */

.nm-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  background: linear-gradient(90deg, #0b1730 0%, #12234a 55%, #0b1730 100%);
  border-top: 1px solid rgba(251, 191, 36, 0.25);
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
  min-height: 48px;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
}

/* Pause / Play control */
.nm-control {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 10px 0 16px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 6px;
  cursor: pointer;
  color: #FBBF24;
  transition: background 0.2s ease;
}

.nm-control:hover {
  background: rgba(251, 191, 36, 0.25);
}

.nm-control svg {
  width: 16px;
  height: 16px;
  fill: #FBBF24;
}

/* Scrolling track */
.nm-marquee-viewport {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  height: 40px;
}

.nm-marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  animation: nm-scroll 120s linear infinite;
  will-change: transform;
}

.nm-marquee-track.nm-paused {
  animation-play-state: paused;
}

@keyframes nm-scroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.nm-item {
  display: inline-flex;
  align-items: center;
  color: #f1f5f9;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  padding: 0 8px;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nm-item:hover {
  opacity: 1;
  text-decoration: underline;
  color: #FBBF24;
}

.nm-item--plain {
  cursor: default;
}

.nm-item--plain:hover {
  text-decoration: none;
  color: #f1f5f9;
  opacity: 1;
}

.nm-item .nm-attachment-icon {
  margin-left: 6px;
  width: 13px;
  height: 13px;
  vertical-align: middle;
  fill: #FBBF24;
}

.nm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FBBF24;
  opacity: 0.9;
  margin: 0 22px;
  flex: 0 0 auto;
}

/* View all button */
.nm-view-all {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  margin-left: 12px;
  height: 48px;
  background: #FBBF24;
  color: #0b1730;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.nm-view-all:hover {
  background: #ffd666;
  color: #0b1730;
}

.nm-view-all::after {
  content: "\2192";
  font-size: 15px;
}

@media (max-width: 768px) {
  .nm-item { font-size: 13px; }
  .nm-dot { margin: 0 14px; }
  .nm-view-all { padding: 8px 14px; font-size: 13px; }
}

/* =========================================================
   "View All" Notifications Page
   ========================================================= */


.nm-page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px 64px;
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2937;
  background: #f3f5f9;
}

.nm-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.nm-page-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: #12234a;
  margin: 0;
}

/* Category filter menu */
.nm-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.nm-category-nav__item {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: #12234a;
  background: #ffffff;
  border: 1px solid #dde3ef;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nm-category-nav__item:hover {
  border-color: #FBBF24;
}

.nm-category-nav__item.is-active {
  background: #12234a;
  border-color: #12234a;
  color: #ffffff;
}

/* White "Topic" card, like the User Guide screenshot */
.nm-topic-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 30, 60, 0.06);
  padding: 28px 28px 12px;
  margin-bottom: 24px;
}

.nm-topic-card__title {
  font-size: 19px;
  font-weight: 800;
  color: #12234a;
  margin: 0 0 16px;
}

.nm-category-block {
  margin-bottom: 8px;
  animation: nm-fade-in 0.3s ease;
}

@keyframes nm-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nm-category-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #b8860b;
  margin: 20px 0 8px;
}

.nm-category-block:first-child .nm-category-label {
  margin-top: 0;
}

.nm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #12234a;
}

.nm-table th,
.nm-table td {
  border: 1px solid #e2e6ef;
}

.nm-table thead th {
  background: #12234a;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-align: left;
  padding: 12px 16px;
  border-color: #1e3a6e;
}

.nm-table thead th:first-child {
  border-left: none;
}

.nm-table thead th:last-child {
  border-right: none;
}

.nm-table tbody td {
  padding: 14px 16px;
  font-size: 14px;
  color: #1f2937;
  vertical-align: middle;
}

.nm-table tbody tr td:first-child {
  border-left: none;
}

.nm-table tbody tr td:last-child {
  border-right: none;
}

.nm-table tbody tr:last-child td {
  border-bottom: none;
}

.nm-table tbody tr:nth-child(odd) td {
  background: #fbfcfe;
}

.nm-table tbody tr:hover td {
  background: #f4f7ff;
}

.nm-col-sno {
  width: 60px;
  text-align: center;
  color: #9aa2b1;
  font-weight: 600;
}

.nm-cell-title {
  font-weight: 600;
  line-height: 1.4;
}

.nm-col-date {
  width: 130px;
  white-space: nowrap;
  color: #6b7280;
  font-size: 13px;
}

.nm-col-action {
  width: 110px;
  text-align: center;
}

.nm-click-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
  padding: 5px 14px;
  border: 1px solid #c7d2fe;
  border-radius: 20px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.nm-click-link:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.nm-col-empty {
  color: #c2c8d4;
  font-weight: 600;
}

/* Archived section */
.nm-archived-section {
  margin-top: 40px;
}

.nm-archived-section .nm-page-header h1 {
  font-size: 19px;
  color: #64748b;
}

.nm-archived-section .nm-table tbody tr {
  opacity: 0.85;
}

.nm-empty-state {
  padding: 40px 24px;
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #dde3ef;
}

@media (max-width: 700px) {
  .nm-category-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .nm-category-nav__item {
    flex: 0 0 auto;
  }

  .nm-topic-card {
    padding: 20px 16px 8px;
  }

  .nm-category-block {
    overflow-x: auto;
  }

  .nm-table {
    min-width: 560px;
  }
}
