/* ==========================================================================
   ComplaintPoint Pages & Lifecycle Modules Stylesheet (pages.css)
   Compliant with WCAG 2.2 AA, responsive layouts, and design system tokens.
   ========================================================================== */

/* Layout & Page Containers */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: #334155;
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb-nav a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #cbd5e1;
  user-select: none;
}

.breadcrumb-current {
  color: #0f172a;
  font-weight: 600;
}

/* Page Hero Headers */
.page-header-banner {
  background: linear-gradient(135deg, #0b1528 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 3rem 1.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-header-content {
  max-width: 1200px;
  margin: 0 auto;
}

.page-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  padding: 0.35rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #bfdbfe;
  margin-bottom: 1rem;
}

.page-hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.page-hero-sub {
  font-size: 1.0625rem;
  color: #cbd5e1;
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* 2-Column Responsive Split */
.layout-2col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 991px) {
  .layout-2col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Cards & Surface Elements */
.content-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.75rem;
}

.card-title-lg {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Status Badges - ComplaintPoint Design System v1.0 */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.85rem;
  border-radius: var(--cp-radius-pill, 9999px);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-pill.resolved {
  background: var(--cp-green-100, #EAF7F1);
  color: var(--cp-green-700, #116B49);
  border: 1px solid var(--cp-green-border, #BCE6D2);
}

.status-pill.responded {
  background: var(--cp-green-100, #EAF7F1);
  color: var(--cp-green-700, #116B49);
  border: 1px solid var(--cp-green-border, #BCE6D2);
}

.status-pill.transmitted {
  background: var(--cp-navy-100, #EAF3FA);
  color: var(--cp-navy-700, #17466A);
  border: 1px solid #C8DFEF;
}

.status-pill.review {
  background: var(--cp-amber-100, #FFF8E6);
  color: var(--cp-amber-text, #8A5A12);
  border: 1px solid var(--cp-amber-border, #F3D99A);
}

.status-pill.escalated {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* 5-Stage Milestone Timeline */
.milestone-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 2.75rem;
  margin: 1.5rem 0;
}

.milestone-timeline::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 16px;
  bottom: 24px;
  width: 2px;
  background: #e2e8f0;
}

.milestone-item {
  position: relative;
  padding-bottom: 1.75rem;
}

.milestone-item:last-child {
  padding-bottom: 0;
}

.milestone-dot {
  position: absolute;
  left: -2.75rem;
  top: 2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 700;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  z-index: 1;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.milestone-item.completed .milestone-dot {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 0 4px #ecfdf5;
}

.milestone-item.active .milestone-dot {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 0 0 4px #eff6ff;
}

.milestone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.milestone-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.milestone-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.milestone-status-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.milestone-item.completed .milestone-status-badge {
  background: #dcfce7;
  color: #15803d;
}

.milestone-item.active .milestone-status-badge {
  background: #dbeafe;
  color: #1e40af;
}

.milestone-item:not(.completed):not(.active) .milestone-status-badge {
  background: #f1f5f9;
  color: #64748b;
}

.milestone-date {
  font-size: 0.8125rem;
  color: #64748b;
  font-family: var(--font-mono, monospace);
  font-weight: 500;
}

.milestone-note {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.55;
  background: #f8fafc;
  padding: 0.85rem 1.15rem;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  margin-top: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.milestone-item.completed .milestone-note {
  background: #fcfdfd;
  border-color: #d1fae5;
  border-left: 3px solid #10b981;
}

.milestone-item.active .milestone-note {
  border-color: #bfdbfe;
  background: #eff6ff;
  border-left: 3px solid #1d4ed8;
}

/* Official Company Response Box */
.company-response-box {
  background: #f8fafc;
  border: 1.5px solid #bfdbfe;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.company-response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 8px;
}

.verified-rep-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem;
}

/* Action Strip */
.resolution-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

/* Redaction Notice Alert */
.redaction-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: #92400e;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Sidebar Company Widget */
.sidebar-company-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.sidebar-company-logo {
  width: 72px;
  height: 72px;
  border-radius: 1rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  padding: 0.5rem;
}

.sidebar-company-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sidebar-company-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.sidebar-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
  text-align: center;
}

.sidebar-kpi {
  background: #f8fafc;
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

.sidebar-kpi-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.sidebar-kpi-label {
  font-size: 0.6875rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

/* Public Complaints Filter & Feed */
.complaints-filter-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.filter-grid-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
}

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

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

.filter-input, .filter-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  background: #ffffff;
  color: #0f172a;
  transition: border-color 0.15s;
}

.filter-input:focus, .filter-select:focus {
  border-color: #1d4ed8;
  outline: 2px solid rgba(29, 78, 216, 0.2);
}

.complaint-list-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  text-decoration: none;
  color: inherit;
}

.complaint-list-item:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.complaint-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 8px;
}

.complaint-item-company {
  font-weight: 700;
  color: #0f172a;
  font-size: 1.0625rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.complaint-item-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.complaint-item-snippet {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.complaint-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* Dashboard Styles */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 200px);
}

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

.dash-sidebar {
  background: var(--cp-bg, #F5F8FB);
  border-right: 1px solid var(--cp-border, #DCE4EC);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dash-sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cp-text-secondary, #596579);
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.dash-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  border-radius: var(--cp-radius-sm, 8px);
  color: var(--cp-text-secondary, #596579);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.dash-nav-link:hover {
  background: #EAF3FA;
  color: var(--cp-navy-800, #12304A);
}

.dash-nav-link.active {
  background: var(--cp-navy-800, #12304A);
  color: #ffffff;
  position: relative;
}

.dash-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3.5px;
  background: var(--cp-orange-600, #F45B0A);
  border-radius: 0 4px 4px 0;
}

.dash-nav-link.active span {
  color: #ffffff;
}

@media (max-width: 991px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dash-sidebar {
    padding: 0.875rem 1rem 0.5rem;
    border-right: none;
    border-bottom: 1px solid var(--cp-border, #DCE4EC);
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(245, 248, 251, 0.97);
    backdrop-filter: blur(8px);
  }
  .dash-sidebar-title {
    display: none;
  }
  .dash-nav-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .dash-nav-link {
    white-space: nowrap;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    flex-shrink: 0;
    border: 1px solid var(--cp-border, #DCE4EC);
    background: #ffffff;
  }
  .dash-nav-link.active {
    background: var(--cp-navy-800, #12304A);
    border-color: var(--cp-navy-800, #12304A);
  }
  .dash-sidebar-btn-wrap {
    display: none;
  }
  .dash-user-card {
    display: none;
  }
}

.dash-content-area {
  padding: 2.5rem;
  background: #ffffff;
}

@media (max-width: 768px) {
  .dash-content-area {
    padding: 1.5rem 1rem;
  }
}

.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.dash-kpi-card {
  background: #ffffff;
  border: 1px solid var(--cp-border, #DCE4EC);
  border-radius: var(--cp-radius-md, 14px);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--cp-shadow-card, 0 2px 8px rgba(18, 48, 74, 0.06));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.dash-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--cp-shadow-elevated, 0 8px 24px rgba(18, 48, 74, 0.10));
  border-color: var(--cp-border-strong, #C5D0DB);
}

.dash-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
}

.dash-kpi-card.kpi-active::before { background: var(--cp-navy-600, #2563A6); }
.dash-kpi-card.kpi-response::before { background: var(--cp-green-600, #16845B); }
.dash-kpi-card.kpi-resolved::before { background: var(--cp-green-700, #116B49); }

.dash-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dash-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--cp-radius-sm, 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.dash-kpi-icon.blue { background: var(--cp-navy-100, #EAF3FA); color: var(--cp-navy-600, #2563A6); }
.dash-kpi-icon.green { background: var(--cp-green-100, #EAF7F1); color: var(--cp-green-600, #16845B); }
.dash-kpi-icon.teal { background: #E6F6F4; color: #0D8275; }

.dash-kpi-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--cp-navy-900, #0B2439);
  margin: 0.4rem 0 0.2rem;
  line-height: 1.1;
}

.dash-filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.dash-search-box {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.dash-search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cp-text-tertiary, #718096);
  pointer-events: none;
}

.dash-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  font-size: 0.875rem;
  border: 1px solid var(--cp-border-input, #B9C9D7);
  border-radius: var(--cp-radius-sm, 8px);
  background: #ffffff;
  color: var(--cp-text-primary, #172033);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dash-search-input:focus {
  border-color: var(--cp-focus, #2563A6);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 166, 0.12);
}

.dash-filter-select {
  min-width: 190px;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--cp-border-input, #B9C9D7);
  border-radius: var(--cp-radius-sm, 8px);
  background: #ffffff;
  color: var(--cp-text-primary, #172033);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dash-filter-select:focus {
  border-color: var(--cp-focus, #2563A6);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 166, 0.12);
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
}

.dash-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.dash-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
  color: #1e293b;
  vertical-align: middle;
}

.dash-table tr:hover td {
  background: #f8fafc;
}

/* Enhanced 2-tier table layout */
.table-subject-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.9375rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.table-submeta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
  flex-wrap: wrap;
}

.table-submeta-company {
  font-weight: 600;
  color: #334155;
}

.table-submeta-dot {
  color: #cbd5e1;
}

.table-submeta-date {
  font-size: 0.75rem;
  color: #64748b;
}

/* Needs Your Attention Spotlight Section */
.dash-attention-section {
  margin-bottom: 2rem;
}

.dash-attention-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  border-left: 5px solid #f59e0b;
  border-radius: var(--cp-radius-md, 12px);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.dash-attention-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dash-attention-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1rem;
  color: #92400e;
}

.dash-attention-countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.dash-attention-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-attention-desc {
  font-size: 0.875rem;
  color: #78350f;
  line-height: 1.5;
  max-width: 680px;
}

.dash-attention-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #9a3412;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(154, 52, 18, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.dash-attention-cta:hover {
  background: #7c2d12;
  color: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* User Identity Card with Tooltip */
.dash-user-card {
  position: relative;
}

.dash-user-info-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  margin-left: 4px;
  border-radius: 50%;
  transition: color 0.15s ease;
}

.dash-user-info-trigger:hover {
  color: #1e293b;
}

.dash-user-popover {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: #1e293b;
  color: #f8fafc;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1.4;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  margin-bottom: 8px;
  display: none;
  z-index: 100;
}

.dash-user-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 20px;
  border-width: 6px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
}

.dash-user-card:hover .dash-user-popover,
.dash-user-card:focus-within .dash-user-popover {
  display: block;
}

.dash-case-id-badge {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--cp-navy-700, #17466A);
  background: var(--cp-navy-100, #EAF3FA);
  border: 1px solid #C8DFEF;
  padding: 0.2rem 0.55rem;
  border-radius: var(--cp-radius-sm, 6px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.dash-case-id-badge:hover {
  background: #DCECF8;
  border-color: #B5D5EE;
  text-decoration: none;
}

.dash-empty-state {
  padding: 3.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dash-empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.dash-rating-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.dash-star-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash-star-btn:hover {
  background: #f8fafc;
  border-color: #f59e0b;
  color: #b45309;
}

.dash-star-btn.active {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
  font-weight: 700;
}

.dash-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dash-password-wrap input {
  padding-right: 2.5rem;
}

.dash-password-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.15s;
}

.dash-password-toggle:hover {
  color: #0f172a;
}

.dash-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: auto;
}

.dash-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.dash-footer-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-footer-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

/* ==========================================================================
   CLAIM BUSINESS PROFILE & VERIFICATION STEPPER
   ========================================================================== */

/* Claim Hero Grid */
.claim-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.claim-hero-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.claim-perk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
}

.claim-preview-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.claim-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #047857;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.claim-preview-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.claim-preview-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #e2e8f0;
}

.claim-preview-check {
  color: #34d399;
  font-weight: 700;
}

/* Stepper Navigation */
.claim-steps-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  position: relative;
  padding: 0 1rem;
}

.claim-steps-nav::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 48px;
  right: 48px;
  height: 3px;
  background: #e2e8f0;
  z-index: 0;
  border-radius: 9999px;
}

.claim-step-item {
  position: relative;
  z-index: 1;
  text-align: center;
  background: transparent;
  padding: 0 8px;
  cursor: pointer;
  transition: transform 0.15s ease;
  flex: 1;
}

.claim-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  margin: 0 auto 0.65rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: all 0.2s ease;
}

.claim-step-item:hover .claim-step-circle {
  border-color: #2563a6;
  color: #2563a6;
  transform: translateY(-2px);
}

.claim-step-item.active .claim-step-circle {
  background: #2563a6;
  border-color: #2563a6;
  color: #ffffff;
  box-shadow: 0 0 0 5px rgba(37, 99, 166, 0.18);
}

.claim-step-item.completed .claim-step-circle {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.claim-step-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  transition: color 0.15s ease;
}

.claim-step-item.active .claim-step-title {
  color: #0f172a;
  font-weight: 700;
}

.claim-step-item.completed .claim-step-title {
  color: #065f46;
}

/* Step Cards */
.claim-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.claim-step-card:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 166, 0.08);
}

.claim-step-card-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.claim-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563a6;
  margin-bottom: 0.5rem;
}

.claim-step-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem;
}

.claim-step-card-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Alert Box */
.claim-alert-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.625rem;
  padding: 0.875rem 1rem;
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  color: #92400e;
  line-height: 1.5;
}

.claim-alert-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Enhanced File Dropzone */
.file-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 1rem;
  padding: 2.25rem 1.5rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.file-dropzone:hover, .file-dropzone.drag-over {
  border-color: #2563a6;
  background: #eff6ff;
  transform: translateY(-1px);
}

.file-dropzone-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  pointer-events: none;
}

.file-dropzone:hover .file-dropzone-btn {
  border-color: #2563a6;
  color: #2563a6;
}

.file-uploaded-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-top: 0.5rem;
}

/* Legal Certification Container */
.claim-cert-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.6;
}

.claim-cert-box:hover {
  background: #f1f5f9;
}

@media (max-width: 900px) {
  .claim-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* 404 Styles */
.error-hero {
  text-align: center;
  padding: 5rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}

.error-code {
  font-size: clamp(5rem, 12vw, 8rem);
  font-weight: 900;
  color: #1d4ed8;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
}

/* FAQ Accordions */
.faq-category-nav {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.faq-tab-btn {
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.faq-tab-btn.active {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

/* Consumer Dashboard Enhancements */
.dash-tab-pane {
  display: none;
}

.dash-tab-pane.active {
  display: block;
}

.dash-badge-pulse {
  background: #047857;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  margin-left: auto;
}

.dash-nav-link.active .dash-badge-pulse {
  background: #ffffff;
  color: #1d4ed8;
}

.dash-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 4px solid #047857;
  animation: slideInToast 0.25s ease-out;
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dedicated Print Stylesheet */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .top-bar,
  .site-header,
  .dash-sidebar,
  .dash-footer,
  .modal-backdrop,
  .dash-toast,
  .btn,
  .header-actions,
  .dash-filter-bar,
  #vaultUploadForm,
  #consumerPrivacyForm,
  .page-header-banner,
  #heading-escalation,
  p[data-i18n="dashEscalationSubtitle"],
  div[style*="background: #eff6ff;"],
  div[style*="align-items: flex-end;"] {
    display: none !important;
  }
  .dashboard-layout {
    display: block !important;
  }
  .dash-content-area {
    padding: 0 !important;
  }
  .dash-tab-pane {
    display: none !important;
  }
  #tab-escalation {
    display: block !important;
  }
  #dossierPreviewBox {
    border: 2px solid #0f172a !important;
    padding: 2rem !important;
    box-shadow: none !important;
    margin: 0 !important;
    font-size: 10pt !important;
  }
}

/* Dashboard form focus & validation states (M-12) */
.page-container input:focus-visible,
.page-container select:focus-visible,
.page-container textarea:focus-visible {
  outline: 2px solid #2563A6;
  outline-offset: 2px;
  border-color: #2563A6;
}

.page-container input:user-invalid,
.page-container select:user-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Dash nav link focus state (m-8) */
.dash-nav-link:focus-visible {
  outline: 2px solid #2563A6;
  outline-offset: 2px;
}

/* Dash empty icon color (m-9) */
.dash-empty-icon {
  color: #94a3b8;
}

/* ==========================================================================
   PAGINATION CONTROLS (Company Profile & Complaints Directory)
   ========================================================================== */

.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.pagination-info {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  min-height: 36px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #1e293b;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.pagination-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #2563a6;
  color: #2563a6;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.pagination-btn:disabled {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.pagination-page-btn:hover:not(.active) {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.pagination-page-btn.active {
  background: #ea580c !important;
  border-color: #ea580c !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
  cursor: default;
}

@media (max-width: 640px) {
  .pagination-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}
