/* Crisis Simulation Dashboard */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #F1F5F9;
  color: #111827;
  line-height: 1.5;
  border-top: 3px solid #0369A1;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* Header */
.header {
  margin-bottom: 24px;
}

.header-title {
  font-size: 26px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
  letter-spacing: -0.025em;
}

.header-subtitle {
  font-size: 14px;
  color: #6B7280;
}

/* Header Navigation */
.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #0369A1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: #2563EB;
  text-decoration: underline;
}

.help-link {
  font-size: 14px;
  color: #6B7280;
  text-decoration: none;
  transition: color 0.15s ease;
}

.help-link:hover {
  color: #0369A1;
  text-decoration: underline;
}

/* Cards */
.card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-icon {
  width: 18px;
  height: 18px;
  color: #F59E0B;
}

/* Overview Card */
.overview-card {
  margin-bottom: 24px;
}

.overview-text {
  font-size: 14px;
  color: #374151;
  margin-bottom: 12px;
  line-height: 1.6;
}

.overview-text strong {
  color: #111827;
  font-weight: 600;
}

.overview-objective {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 20px;
  line-height: 1.6;
}

.assignment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #E5E7EB;
}

.assignment-info {
  display: flex;
  flex-direction: column;
}

.assignment-label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.assignment-desc {
  font-size: 13px;
  color: #6B7280;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s ease;
}

.btn-primary {
  background-color: #111827;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #1F2937;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* Toggle Button */
.btn-toggle {
  background-color: #F3F4F6;
  color: #374151;
  font-size: 13px;
  padding: 6px 12px;
}

.btn-toggle:hover {
  background-color: #E5E7EB;
}

.btn-toggle.active {
  background-color: #E0F2FE;
  color: #0369A1;
}

.btn-toggle.active:hover {
  background-color: #BFDBFE;
}

/* Two-column layout */
.columns {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .columns {
    grid-template-columns: 1fr;
  }
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  border-bottom: 1px solid #CBD5E1;
  position: sticky;
  top: 0;
  background: #FFFFFF;
  z-index: 1;
}

.data-table tbody tr {
  border-bottom: 1px solid #F3F4F6;
}

.data-table tbody tr:nth-child(even) {
  background-color: #F8FAFC;
}

.data-table tbody tr:hover {
  background-color: #F9FAFB;
}

.data-table tbody td {
  padding: 14px 12px;
  font-size: 14px;
  color: #374151;
  vertical-align: middle;
}

.data-table tbody td:first-child {
  font-weight: 500;
  color: #111827;
}

/* Severity Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  text-transform: capitalize;
}

.badge-critical {
  background-color: #DC2626;
  color: #FFFFFF;
}

.badge-high {
  background-color: #D97706;
  color: #FFFFFF;
}

.badge-medium {
  background-color: #CA8A04;
  color: #FFFFFF;
}

.badge-low {
  background-color: #16A34A;
  color: #FFFFFF;
}

.badge-info {
  background-color: #2563EB;
  color: #FFFFFF;
}

/* State Indicators */
.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6B7280;
}

.state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.state-pending .state-dot {
  background-color: #9CA3AF;
}

.state-in-progress .state-dot {
  background-color: #3B82F6;
}

.state-escalated .state-dot {
  background-color: #DC2626;
  animation: pulse-escalated 1.2s ease-in-out infinite;
}

@keyframes pulse-escalated {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  50% { box-shadow: 0 0 10px 4px rgba(220, 38, 38, 0.3); }
}

.state-resolved .state-dot {
  background-color: #22C55E;
}

.state-partial .state-dot {
  background-color: #EAB308;
}

/* Teams Card specific */
.teams-card {
  max-height: 600px;
  overflow-y: auto;
}

/* Incidents Card specific */
.incidents-card {
  max-height: 600px;
  overflow-y: auto;
}

/* Description column - truncate long text */
.description-cell {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Assigned column */
.assigned-cell {
  color: #6B7280;
}

.assigned-cell.has-assignment {
  color: #111827;
  font-weight: 500;
}

/* Scrollbar styling */
.teams-card::-webkit-scrollbar,
.incidents-card::-webkit-scrollbar,
.actions-card::-webkit-scrollbar {
  width: 6px;
}

.teams-card::-webkit-scrollbar-track,
.incidents-card::-webkit-scrollbar-track,
.actions-card::-webkit-scrollbar-track {
  background: #F3F4F6;
  border-radius: 3px;
}

.teams-card::-webkit-scrollbar-thumb,
.incidents-card::-webkit-scrollbar-thumb,
.actions-card::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 3px;
}

.teams-card::-webkit-scrollbar-thumb:hover,
.incidents-card::-webkit-scrollbar-thumb:hover,
.actions-card::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* Phases Grid */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.phase-card {
  display: block;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.15s ease;
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.phase-card:hover {
  border-color: #0369A1;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.15);
  transform: translateY(-2px);
}

.phase-card.phase-locked {
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}

/* After animation completes, locked cards stay dim */
.phase-card.phase-locked.revealed {
  opacity: 0.6;
}

.phase-card.phase-locked:hover {
  border-color: #CBD5E1;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.phase-number {
  font-size: 12px;
  font-weight: 600;
  color: #0369A1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.phase-locked .phase-number {
  color: #9CA3AF;
}

.phase-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
  line-height: 1.4;
}

.phase-locked .phase-title {
  color: #6B7280;
}

.phase-status {
  font-size: 13px;
  color: #22C55E;
  font-weight: 500;
}

.phase-locked .phase-status {
  color: #9CA3AF;
}

/* Completed Phase */
.phase-card.phase-completed {
  border-color: #22C55E;
  background-color: #F0FDF4;
  cursor: default;
}

.phase-card.phase-completed:hover {
  border-color: #22C55E;
  box-shadow: none;
  transform: none;
}

.phase-completed .phase-number {
  color: #16A34A;
}

.phase-completed .phase-status {
  color: #16A34A;
}

/* Context Card */
.context-card {
  margin-bottom: 24px;
}

.context-text {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
}

.context-text p {
  margin-bottom: 16px;
}

.context-text p:last-child {
  margin-bottom: 0;
}

/* Stats Card */
.stats-card {
  margin-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #CBD5E1;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 13px;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Stats Sections Layout */
.stats-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .stats-sections {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.stats-section {
  padding: 16px 0;
}

.stats-section:first-child {
  border-right: 1px solid #E5E7EB;
  padding-right: 32px;
}

@media (max-width: 768px) {
  .stats-section:first-child {
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
    padding-right: 0;
    padding-bottom: 24px;
  }
}

.stats-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.stats-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.stat-item-small {
  text-align: center;
  min-width: 60px;
}

.stat-item-small .stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  display: block;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.stat-item-small .stat-label {
  font-size: 11px;
}

.stat-item-wide {
  flex: 1;
  min-width: 120px;
}

.stat-item-wide .stat-label {
  display: block;
  margin-bottom: 6px;
}

.stat-value-list {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  line-height: 1.6;
}

.stat-highlight {
  color: #22C55E;
}

/* Card Header with Actions */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-header .card-title {
  margin-bottom: 0;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Resolved Rows */
.resolved-row {
  opacity: 0.6;
  background-color: #F9FAFB;
}

.resolved-row td {
  text-decoration: line-through;
  text-decoration-color: #9CA3AF;
}

/* Sortable Table Headers */
.sortable-header {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 20px !important;
}

.sortable-header:hover {
  color: #111827;
  background-color: #F9FAFB;
}

.sortable-header::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-top-color: #D1D5DB;
  margin-top: 2px;
}

.sortable-header::before {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-bottom-color: #D1D5DB;
  margin-top: -8px;
}

.sortable-header.sort-asc::after {
  border-top-color: transparent;
}

.sortable-header.sort-asc::before {
  border-bottom-color: #0369A1;
}

.sortable-header.sort-desc::before {
  border-bottom-color: transparent;
}

.sortable-header.sort-desc::after {
  border-top-color: #0369A1;
}

/* Clickable Rows */
.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background-color: #F0F9FF !important;
}

/* Filter Select */
.filter-select {
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  background-color: #FFFFFF;
  color: #374151;
  cursor: pointer;
  min-width: 140px;
}

.filter-select:hover {
  border-color: #D1D5DB;
}

.filter-select:focus {
  outline: none;
  border-color: #0369A1;
  box-shadow: 0 0 0 2px rgba(3, 105, 161, 0.1);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal.active .modal-content {
  animation: modal-scale-in 0.25s ease forwards;
}

@keyframes modal-scale-in {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.modal-content {
  background: #FFFFFF;
  border-radius: 12px;
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #9CA3AF;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.modal-close:hover {
  color: #374151;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
  line-height: 1.4;
}

.modal-description {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #E5E7EB;
}

.modal-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-value {
  font-size: 14px;
  color: #111827;
  font-weight: 500;
}

/* Actions Card */
.actions-card {
  margin-top: 24px;
  max-height: 500px;
  overflow-y: auto;
}

.table-scroll {
  overflow-x: auto;
}

.actions-card .data-table {
  min-width: 900px;
}

.actions-card .data-table th,
.actions-card .data-table td {
  white-space: nowrap;
}

.actions-card .data-table td:last-child {
  white-space: normal;
  min-width: 200px;
  max-width: 300px;
}

.available-to-cell {
  white-space: normal;
  min-width: 220px;
}

/* Help Page */
.help-content h2 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
}

.help-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin-top: 16px;
  margin-bottom: 8px;
}

.help-content p {
  font-size: 14px;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 12px;
}

.help-content ul, .help-content ol {
  font-size: 14px;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 12px;
  padding-left: 24px;
}

.help-content li {
  margin-bottom: 4px;
}

.help-content li strong {
  color: #111827;
}

.help-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 16px;
}

.help-content table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  border-bottom: 1px solid #E5E7EB;
}

.help-content table td {
  padding: 8px 12px;
  color: #374151;
  border-bottom: 1px solid #F3F4F6;
  vertical-align: top;
}

.help-content code {
  background-color: #F3F4F6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: #DC2626;
}

.help-content .template-block {
  background-color: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 16px;
  font-family: monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #374151;
  margin-bottom: 16px;
  overflow-x: auto;
}

/* Site Footer */
.site-footer {
  text-align: center;
  padding: 24px 16px;
  margin-top: 32px;
  color: #94A3B8;
  font-size: 11px;
  border-top: 1px solid #E2E8F0;
}

/* ==================== FOCUS STATES ==================== */
.back-link:focus-visible,
.help-link:focus-visible,
.btn:focus-visible,
.filter-select:focus-visible,
.clickable-row:focus-visible,
.phase-card:focus-visible {
  outline: 2px solid #0369A1;
  outline-offset: 2px;
}

.modal-close:focus-visible {
  outline: 2px solid #0369A1;
  outline-offset: 2px;
}

/* ==================== LAST UPDATED ==================== */
.last-updated {
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 4px;
}

/* ==================== TIME LEFT COLUMN ==================== */
#incidents-table .col-time-left,
#team-incidents-table .col-time-left { display: none; }
#incidents-table.live-phase .col-time-left,
#team-incidents-table.live-phase .col-time-left { display: table-cell; }

.time-ok   { color: inherit; }
.time-warn { color: #D97706; font-weight: 500; }
.time-crit { color: #DC2626; font-weight: 700; }
.time-done { color: #9CA3AF; }

/* ==================== COMPACT STATS ROW ==================== */
.stats-row-compact {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

/* ==================== STATUS 3-COLUMN ==================== */
.status-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.status-col {
  padding: 0 28px;
}

.status-col:first-child {
  padding-left: 0;
}

.status-col:last-child {
  padding-right: 0;
}

.status-col + .status-col {
  border-left: 1px solid #E5E7EB;
}

.status-col-label {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .status-3col {
    grid-template-columns: 1fr;
  }
  .status-col {
    padding: 16px 0;
    border-left: none !important;
    border-top: 1px solid #E5E7EB;
  }
  .status-col:first-child {
    padding-top: 0;
    border-top: none;
  }
}

.top3-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.top3-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top3-medal {
  font-size: 20px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.top3-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.top3-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top3-score {
  font-size: 13px;
  color: #6B7280;
  font-variant-numeric: tabular-nums;
}

/* ==================== LEADERBOARD (full table, kept for other pages) ==================== */
.leaderboard-card {
  max-height: 500px;
  overflow-y: auto;
}

.leaderboard-card .rank-cell {
  font-weight: 700;
  color: #6B7280;
  width: 40px;
}

.leaderboard-card .role-cell {
  color: #6B7280;
  font-size: 13px;
}

/* ==================== TEAM CARDS GRID ==================== */
.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.team-card {
  display: block;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}

.team-card:hover {
  border-color: #0369A1;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.12);
  transform: translateY(-2px);
}

.team-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.team-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.team-card-incidents {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  background-color: #FEF3C7;
  color: #92400E;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  padding: 0 8px;
}

.team-card-role {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 12px;
  line-height: 1.4;
}

.team-card-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #374151;
}

.team-card-stat strong {
  color: #111827;
}

/* ==================== TEAM PAGE HEADER ==================== */
.team-header-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  color: #FFFFFF;
  border: none;
}

.team-identity {
  margin-bottom: 20px;
}

.team-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.025em;
}

.team-role {
  font-size: 15px;
  color: #94A3B8;
  margin-bottom: 8px;
}

.team-sector {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #CBD5E1;
}

.team-stats-row {
  display: flex;
  gap: 32px;
}

.team-stat {
  text-align: center;
}

.team-stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.team-stat-label {
  font-size: 12px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==================== NOTIFICATIONS ==================== */
.notifications-card {
  max-height: 400px;
  overflow-y: auto;
}

.notifications-empty {
  font-size: 14px;
  color: #9CA3AF;
  text-align: center;
  padding: 16px 0;
}

.notification-item {
  padding: 12px 16px;
  border-left: 3px solid #E5E7EB;
  margin-bottom: 8px;
  border-radius: 0 6px 6px 0;
  background: #F9FAFB;
}

.notification-item:last-child {
  margin-bottom: 0;
}

.notif-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.notif-time {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  font-variant-numeric: tabular-nums;
}

.notif-type-badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.notif-info .notif-type-badge,
.notif-info { border-left-color: #3B82F6; }
.notif-info .notif-type-badge { background: #DBEAFE; color: #1D4ED8; }

.notif-warning .notif-type-badge,
.notif-warning { border-left-color: #F59E0B; }
.notif-warning .notif-type-badge { background: #FEF3C7; color: #92400E; }

.notif-ruling .notif-type-badge,
.notif-ruling { border-left-color: #8B5CF6; }
.notif-ruling .notif-type-badge { background: #EDE9FE; color: #5B21B6; }

.notif-update .notif-type-badge,
.notif-update { border-left-color: #22C55E; }
.notif-update .notif-type-badge { background: #DCFCE7; color: #166534; }

.notif-escalation .notif-type-badge,
.notif-escalation { border-left-color: #DC2626; }
.notif-escalation .notif-type-badge { background: #FEE2E2; color: #991B1B; }

.notif-global {
  font-size: 11px;
  color: #9CA3AF;
  font-style: italic;
}

.notif-message {
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger class applied by JS */
.stagger-in {
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}
