/* SEO Audit Report - Dedicated Stylesheet */
/* Based on brand-styles.css but optimized specifically for SEO reports */

/* ===== OPTIMIZED FONT FACE DECLARATIONS ===== */
/* Avenir Font Family - Optimized for Performance */
@font-face {
  font-family: 'Avenir';
  src: url('https://www.whitelabeliq.com/wp-content/themes/wliq/assets/fonts/avenir-book-webfont.woff2') format('woff2'),
       url('https://www.whitelabeliq.com/wp-content/themes/wliq/assets/fonts/avenir-book-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Avenir';
  src: url('https://www.whitelabeliq.com/wp-content/themes/wliq/assets/fonts/avenir-medium-webfont.woff2') format('woff2'),
       url('https://www.whitelabeliq.com/wp-content/themes/wliq/assets/fonts/avenir-medium-webfont.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Avenir';
  src: url('https://www.whitelabeliq.com/wp-content/themes/wliq/assets/fonts/avenir-heavy-webfont.woff2') format('woff2'),
       url('https://www.whitelabeliq.com/wp-content/themes/wliq/assets/fonts/avenir-heavy-webfont.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Avenir';
  src: url('https://www.whitelabeliq.com/wp-content/themes/wliq/assets/fonts/avenir-black-webfont.woff2') format('woff2'),
       url('https://www.whitelabeliq.com/wp-content/themes/wliq/assets/fonts/avenir-black-webfont.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== CSS VARIABLES ===== */
:root {
  /* Brand Colors */
  --primary-color: #000000;
  --primary-dark: #333333;
  --primary-light: #666666;
  --secondary-color: #666666;
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-muted: #999999;
  --background-white: #FFFFFF;
  --background-light: #f8f9fa;
  --border-color: #e0e0e0;
  
  /* Severity Colors (Keep for status indicators) */
  --critical-color: #dc3545;
  --serious-color: #fd7e14;
  --moderate-color: #ffc107;
  --minor-color: #6c757d;
  --pass-color: #28a745;
  
  /* Typography - Optimized for Performance */
  --font-family-primary: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-family-bold: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
  
  /* Backup font families for when Avenir fails to load */
  --font-family-backup: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Border Radius */
  --border-radius: 6px;
  --border-radius-sm: 4px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* ===== RESET & BASE STYLES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Typography - Optimized */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-family: var(--font-family-bold);
  font-weight: 900;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  font-variant-ligatures: common-ligatures;
}

h1 { font-size: 24pt; }
h2 { font-size: 18pt; }
h3 { font-size: 14pt; }
h4 { font-size: 12pt; }
h5 { font-size: 11pt; }
h6 { font-size: 10pt; }

p {
  margin-bottom: var(--spacing-md);
  font-size: 11pt;
  font-family: var(--font-family-primary);
}

body {
  font-family: var(--font-family-primary);
  font-size: 12pt;
  line-height: 1.4;
  color: var(--text-primary);
  background: #f0f0f0;
  margin: 0;
  padding: 20px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  font-variant-ligatures: common-ligatures;
}

/* ===== PAGE STRUCTURE ===== */
.page-section {
  width: 210mm;
  height: 297mm;
  margin: 0 auto;
  padding: 20mm;
  page-break-after: always;
  break-after: page;
  position: relative;
  background: var(--background-white);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  overflow: hidden; /* Prevent content from overflowing */
}

/* Basic page break control for content sections */
.indexing-section,
.subsection,
.issue-item,
.screenshot-container,
.findings-box,
.glossary-section,
.violations-table-wrap,
.metrics-dashboard,
.wcag-overview,
.passed-tests,
.test-overview,
.results-summary,
.findings-section,
.recommendations-section,
.priority-actions,
.screenshots-section {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  -fs-page-break-inside: avoid !important;
  -fs-page-break-min-height: 200px !important;
  margin-bottom: var(--spacing-lg);
}

/* Ensure proper spacing between sections */
.indexing-section + .indexing-section,
.subsection + .subsection {
  margin-top: var(--spacing-lg);
}

/* Special protection for screenshot containers to keep images and captions together */
.screenshot-container {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  -fs-page-break-inside: avoid !important;
  -fs-page-break-min-height: 300px !important;
  margin: var(--spacing-lg) 0;
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  background: var(--background-light);
  box-shadow: var(--shadow-sm);
}

/* Ensure screenshot images and captions stay together */
.screenshot-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--spacing-sm);
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  border: 1px solid var(--border-color);
}

.screenshot-caption {
  font-size: 11pt;
  color: var(--text-secondary);
  text-align: center;
  padding: var(--spacing-sm);
  background: var(--background-white);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  margin-top: var(--spacing-sm);
}

/* Additional protection for content sections that contain images */
.subsection:has(.screenshot-container),
.indexing-section:has(.screenshot-container) {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  -fs-page-break-inside: avoid !important;
  -fs-page-break-min-height: 400px !important;
}

/* Ensure findings boxes with images stay together */
.findings-box:has(img),
.findings-box:has(.screenshot-container) {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  -fs-page-break-inside: avoid !important;
  -fs-page-break-min-height: 350px !important;
}

/* Force new page for sections that are too large to fit */
.force-new-page {
  page-break-before: auto !important;
  break-before: auto !important;
}

/* When a section with force-new-page doesn't fit, force it to the next page */
.subsection:has(.force-new-page),
.indexing-section:has(.force-new-page) {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  -fs-page-break-inside: avoid !important;
  -fs-page-break-min-height: 500px !important;
}

/* Ensure the force-new-page section itself doesn't break */
.screenshot-container.force-new-page {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  -fs-page-break-inside: avoid !important;
  -fs-page-break-min-height: 400px !important;
}

/* Special handling for search console section to prevent page breaks */
.search-console-section {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  -fs-page-break-inside: avoid !important;
  -fs-page-break-min-height: 600px !important;
  page-break-before: always !important;
  break-before: page !important;
}

/* Force page break before search console section when it's near bottom */
.search-console-section {
  page-break-before: auto !important;
  break-before: auto !important;
}



/* ===== COMPREHENSIVE PAGE BREAK PROTECTION FOR ALL SECTIONS ===== */

/* User Experience Section Protection */
.user-experience-section {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  -fs-page-break-inside: avoid !important;
  -fs-page-break-min-height: 500px !important;
}

/* 304 Response Section Protection */
.response-304-section {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  -fs-page-break-inside: avoid !important;
  -fs-page-break-min-height: 400px !important;
}

/* Structural Issues Section Protection */
.structural-issues-section {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  -fs-page-break-inside: avoid !important;
  -fs-page-break-min-height: 600px !important;
}

/* Performance Issues Section Protection */
.performance-issues-section {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  -fs-page-break-inside: avoid !important;
  -fs-page-break-min-height: 600px !important;
}

/* Mobile Optimization Section Protection */
.mobile-optimization-section {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  -fs-page-break-inside: avoid !important;
  -fs-page-break-min-height: 600px !important;
}

/* On-Page SEO Section Protection */
.onpage-seo-section {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  -fs-page-break-inside: avoid !important;
  -fs-page-break-min-height: 600px !important;
}

/* Critical Screenshots Section Protection */
.critical-screenshots-section {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  -fs-page-break-inside: avoid !important;
  -fs-page-break-min-height: 700px !important;
}

/* Priority Actions Section Protection */
.priority-actions-section {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  -fs-page-break-inside: avoid !important;
  -fs-page-break-min-height: 600px !important;
}

/* SEO Compliance Section Protection */
.seo-compliance-section {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  -fs-page-break-inside: avoid !important;
  -fs-page-break-min-height: 500px !important;
}

/* Force new pages for all protected sections when they don't fit */
.user-experience-section,
.response-304-section,
.structural-issues-section,
.performance-issues-section,
.mobile-optimization-section,
.onpage-seo-section,
.critical-screenshots-section,
.priority-actions-section,
.seo-compliance-section {
  page-break-before: auto !important;
  break-before: auto !important;
}



/* Prevent orphaned content at bottom of pages */
.page-content {
  min-height: 200px;
  position: relative;
}

/* ===== STATIC REPORT STYLING ===== */
/* All edit functionality removed - reports are now static */

/* Edit functionality removed - reports are now static */

/* Input field styling removed - reports are now static */

/* ===== STATIC REPORT STYLING ===== */
/* All edit functionality removed - reports are now static */

/* ===== INDEX PAGE STYLING ===== */
.index-content {
  padding: var(--spacing-lg);
  overflow: visible; /* Allow content to flow */
  min-height: auto; /* Remove height constraints */
}

.index-content h2 {
  color: var(--text-primary);
  font-size: 18pt;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  margin-top: var(--spacing-xl);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--border-color);
  font-family: var(--font-family-bold);
}

.index-content h2:first-child {
  margin-top: 0;
}

.index-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-lg) 0;
}

.index-content li {
  padding: var(--spacing-sm) 0;
  padding-left: var(--spacing-lg);
  position: relative;
  color: var(--text-secondary);
  font-size: 12pt;
  line-height: 1.5;
  border-bottom: 1px solid var(--border-light);
}

.index-content li:before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: var(--spacing-sm);
}

.index-content li:last-child {
  border-bottom: none;
}

/* ===== GLOSSARY PAGE STYLING ===== */
.glossary-content {
  padding: var(--spacing-lg);
  overflow: visible; /* Allow content to flow */
  min-height: auto; /* Remove height constraints */
}

.glossary-section {
  margin-bottom: var(--spacing-xl);
}

.glossary-section h2 {
  color: var(--text-primary);
  font-size: 12pt;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  font-family: var(--font-family-bold);
}

.glossary-table {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.glossary-row {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  background: var(--background-white);
}

.glossary-row:last-child {
  border-bottom: none;
}

.glossary-row:nth-child(even) {
  background: var(--background-light);
}

.glossary-term {
  flex: 0 0 200px;
  padding: var(--spacing-md);
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  font-size: 12pt;
  display: flex;
  align-items: center;
  font-family: var(--font-family-bold);
}

.glossary-description {
  flex: 1;
  padding: var(--spacing-md);
  color: var(--text-secondary);
  font-size: 11pt;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

/* ===== STATIC CONTENT STYLING ===== */
/* All edit functionality removed - reports are now static */

/* ===== COVER PAGE ===== */
.cover-page {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--background-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.cover-page::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40mm;
  height: 40mm;
  background: var(--background-white);
  border-radius: 50% 0 0 0;
  transform: translate(50%, 50%);
}

.cover-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
  position: relative;
}

.cover-header {
  margin-bottom: var(--spacing-xl);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  filter: brightness(0) invert(1);
}

.cover-date {
  font-size: 10pt;
  opacity: 0.9;
  color: var(--background-white);
  font-family: var(--font-family-primary);
  font-weight: 400;
}

.cover-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--spacing-xxl) 0;
}

.cover-title {
  width: 100%;
}

.cover-subtitle {
  font-size: 12pt;
  font-family: var(--font-family-primary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-md);
  opacity: 0.8;
  color: var(--background-white);
}

.cover-main-title {
  font-size: 36pt;
  font-family: var(--font-family-bold);
  font-weight: 900;
  margin-bottom: var(--spacing-lg);
  line-height: 1.1;
  color: var(--background-white);
}

.cover-url {
  font-size: 14pt;
  opacity: 0.8;
  font-family: var(--font-family-primary);
  font-weight: 400;
  color: var(--background-white);
}

.cover-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-xl);
}

.cover-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.brand-logo {
  width: 60px;
  height: 60px;
}

.brand-name {
  font-size: 12pt;
  font-family: var(--font-family-bold);
  font-weight: 900;
  color: var(--background-white);
}

.cover-date-range {
  font-size: 10pt;
  opacity: 0.8;
  color: var(--background-white);
  font-family: var(--font-family-primary);
}

/* Hide footer on cover page */
.cover-page .page-footer {
  display: block;
  position: absolute;
  bottom: 20mm;
  left: 20mm;
  right: 20mm;
  background: transparent;
  z-index: 1000;
}

.cover-page .page-footer .footer-content {
  color: var(--background-white);
}

.cover-page .page-footer .footer-info span {
  color: var(--background-white);
  opacity: 0.8;
}

/* ===== PAGE HEADERS ===== */
.page-header {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--primary-color);
}

.header-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
}

.header-title {
  flex: 1;
}

.header-title h1 {
  margin-bottom: var(--spacing-xs);
  color: var(--primary-color);
  font-family: var(--font-family-bold);
  font-weight: 900;
  font-size: 22pt;
}

.header-subtitle {
  color: var(--text-secondary);
  font-size: 12pt;
  font-family: var(--font-family-primary);
  margin: 0;
}

.header-logo-small img {
  height: 22px;
  width: auto;
}

/* ===== PAGE CONTENT ===== */
.page-content {
  background: transparent;
  padding: 0;
  min-height: calc(297mm - 40mm - 80mm);
  position: relative;
  overflow: visible; /* Allow content to flow naturally */
  box-sizing: border-box;
}



/* Prevent breaking within list items */
li {
  page-break-inside: avoid;
  break-inside: avoid;
}

/* Allow tables to break naturally */
table {
  page-break-inside: auto;
  break-inside: auto;
}

/* Prevent breaking within table rows */
tr {
  page-break-inside: avoid;
  break-inside: avoid;
}

/* Allow glossary sections to break naturally */
.glossary-section {
  page-break-inside: auto;
  break-inside: auto;
}

/* Prevent breaking within glossary rows */
.glossary-row {
  page-break-inside: avoid;
  break-inside: avoid;
}

/* ===== EXECUTIVE OVERVIEW ===== */
.executive-overview {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--background-light);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.overview-content h2 {
  color: var(--primary-color);
  font-family: var(--font-family-bold);
  font-weight: 900;
  margin-bottom: var(--spacing-md);
  font-size: 18pt;
}

.overview-description {
  font-size: 12pt;
  line-height: 1.7;
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  margin: 0;
}

/* ===== PRIORITY ACTIONS ===== */
.priority-actions {
  margin-bottom: var(--spacing-xl);
}

.priority-actions h2 {
  color: var(--primary-color);
  font-family: var(--font-family-bold);
  font-weight: 900;
  margin-bottom: var(--spacing-lg);
  font-size: 18pt;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.action-item {
  background: var(--background-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.action-item.immediate {
  border-left: 4px solid var(--critical-color);
}

.action-item.high {
  border-left: 4px solid var(--serious-color);
}

.action-item.medium {
  border-left: 4px solid var(--moderate-color);
}

.action-header {
  margin-bottom: var(--spacing-md);
}

.action-priority {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  font-size: 9pt;
  font-family: var(--font-family-bold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-item.immediate .action-priority {
  background: var(--critical-color);
  color: var(--background-white);
}

.action-item.high .action-priority {
  background: var(--serious-color);
  color: var(--background-white);
}

.action-item.medium .action-priority {
  background: var(--moderate-color);
  color: var(--text-primary);
}

.action-item h3 {
  color: var(--text-primary);
  font-family: var(--font-family-bold);
  font-weight: 900;
  margin-bottom: var(--spacing-sm);
  font-size: 11pt;
}

.action-item p {
  color: var(--text-secondary);
  font-size: 10pt;
  font-family: var(--font-family-primary);
  margin: 0;
}

/* ===== TAGS SECTION ===== */
.tags-section {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  background: var(--background-white);
  border-radius: var(--border-radius);
}

.tags-section h2 {
  font-family: var(--font-family-bold);
  font-size: 18pt;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  font-weight: 400;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  align-items: center;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: #f5f5f5;
  color: #666666;
  border-radius: 16px;
  font-size: 10pt;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  white-space: nowrap;
}

/* ===== METRICS DASHBOARD ===== */
.metrics-dashboard {
  margin-bottom: var(--spacing-xl);
}

.metrics-dashboard h2 {
  color: var(--primary-color);
  font-family: var(--font-family-bold);
  font-weight: 900;
  margin-bottom: var(--spacing-lg);
  font-size: 18pt;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.metric-card {
  background: var(--background-white);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius);
  text-align: center;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border-color);
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.metric-card.primary {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--background-white) 0%, rgba(0, 0, 0, 0.02) 100%);
}

.metric-card.primary::before {
  background: var(--primary-color);
}

.metric-card.critical {
  border-color: var(--critical-color);
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, var(--background-white) 100%);
}

.metric-card.critical::before {
  background: var(--critical-color);
}

.metric-card.serious {
  border-color: var(--serious-color);
  background: linear-gradient(135deg, rgba(253, 126, 20, 0.05) 0%, var(--background-white) 100%);
}

.metric-card.serious::before {
  background: var(--serious-color);
}

.metric-card.moderate {
  border-color: var(--moderate-color);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, var(--background-white) 100%);
}

.metric-card.moderate::before {
  background: var(--moderate-color);
}

.metric-card.minor {
  border-color: var(--pass-color);
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, var(--background-white) 100%);
}

.metric-card.minor::before {
  background: var(--pass-color);
}

.metric-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-value {
  font-size: 36pt;
  font-family: var(--font-family-bold);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.metric-label {
  font-size: 10pt;
  font-family: var(--font-family-primary);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== TEST RESULTS OVERVIEW ===== */
.test-overview {
  margin-bottom: var(--spacing-xl);
}

.test-overview h2 {
  color: var(--primary-color);
  font-family: var(--font-family-bold);
  font-weight: 900;
  margin-bottom: var(--spacing-lg);
  font-size: 18pt;
}

.overview-description {
  margin-bottom: var(--spacing-lg);
}

.overview-description p {
  color: var(--text-secondary);
  font-family: var(--font-family-primary);
  font-size: 12pt;
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
  background: var(--background-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.overview-description strong {
  color: var(--text-primary);
  font-family: var(--font-family-bold);
}

.results-summary {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.summary-item {
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--spacing-lg);
  background: var(--background-white);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.summary-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.summary-item.passed {
  border-color: #28a745;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, var(--background-white) 100%);
}

.summary-item.inapplicable {
  border-color: #17a2b8;
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.05) 0%, var(--background-white) 100%);
}

.summary-item.total {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, var(--background-white) 100%);
}

.summary-content h3 {
  color: var(--text-primary);
  font-family: var(--font-family-bold);
  font-weight: 900;
  margin: 0 0 var(--spacing-xs) 0;
  font-size: 14pt;
}

.summary-count {
  font-size: 24pt;
  font-family: var(--font-family-bold);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  line-height: 1;
}

.summary-content p {
  color: var(--text-secondary);
  font-family: var(--font-family-primary);
  font-size: 10pt;
  margin: 0;
}

/* ===== PASSED TESTS CATEGORIES ===== */
.passed-tests {
  margin-bottom: var(--spacing-xl);
}

.passed-tests h2 {
  color: var(--primary-color);
  font-family: var(--font-family-bold);
  font-weight: 900;
  margin-bottom: var(--spacing-lg);
  font-size: 18pt;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.category-row {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--background-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
}

.category-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.category-name {
  flex: 1;
  color: var(--text-primary);
  font-family: var(--font-family-bold);
  font-weight: 900;
  font-size: 12pt;
}

.category-bar {
  flex: 2;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  margin: 0 var(--spacing-lg);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #fd7e14;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.category-count {
  min-width: 40px;
  text-align: right;
  color: var(--text-primary);
  font-family: var(--font-family-bold);
  font-weight: 900;
  font-size: 14pt;
}

/* ===== WCAG OVERVIEW ===== */
.wcag-overview {
  margin-bottom: var(--spacing-xl);
}

.wcag-overview h2 {
  color: var(--primary-color);
  font-family: var(--font-family-bold);
  font-weight: 900;
  margin-bottom: var(--spacing-lg);
  font-size: 18pt;
}

.wcag-overview-content {
  background: var(--background-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-lg);
}

.wcag-overview-description {
  font-size: 11pt;
  line-height: 1.5;
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  margin: 0;
}

.wcag-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.wcag-level-card {
  background: var(--background-white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wcag-level-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.wcag-level-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--spacing-md);
  flex-shrink: 0;
}

.wcag-level-header h3 {
  color: var(--text-primary);
  font-family: var(--font-family-bold);
  font-weight: 900;
  margin: 0;
  font-size: 14pt;
  text-align: center;
}

.wcag-level-count {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.count-value {
  font-size: 28pt;
  font-family: var(--font-family-bold);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  line-height: 1;
}

.count-label {
  font-size: 10pt;
  color: var(--text-secondary);
  font-family: var(--font-family-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wcag-levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.wcag-level-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.wcag-level-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.wcag-level-count {
  display: flex;
  justify-content: center;
}

.count-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  background: #eff6ff;
  border-radius: var(--border-radius);
}

/* ===== SECTION OVERVIEW ===== */
.section-overview {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-color);
}

.section-overview h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.section-overview p {
  color: #374151;
  line-height: 1.5;
}

/* ===== FINDINGS SECTIONS ===== */
.findings-section {
  margin-bottom: 2rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.findings-section h3 {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 1px solid var(--border-color);
}

.finding-item {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.finding-item:last-child {
  border-bottom: none;
}

.finding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.finding-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.success {
  background: #f0fdf4;
  color: var(--success-color);
}

.status-badge.critical {
  background: #fef2f2;
  color: var(--critical-color);
}

.status-badge.serious {
  background: #fff7ed;
  color: var(--serious-color);
}

.status-badge.moderate {
  background: #fffbeb;
  color: var(--warning-color);
}

.status-badge.minor {
  background: #f0fdf4;
  color: var(--minor-color);
}

.finding-item p {
  color: #374151;
  line-height: 1.5;
}

/* ===== STATS & DATA ===== */
.index-stats,
.vitals-results,
.stress-test-stats,
.mobile-test-results {
  background: #f8fafc;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin: 1rem 0;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-label {
  font-weight: 500;
  color: #374151;
}

.stat-value {
  font-weight: 600;
  color: var(--primary-color);
}

.vital-item,
.test-result {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.vital-item:last-child,
.test-result:last-child {
  border-bottom: none;
}

.vital-item strong,
.test-result strong {
  color: #1f2937;
  font-weight: 600;
}

/* ===== SCREENSHOT CONTAINERS ===== */
.screenshot-container {
  margin: 1rem 0;
}

.screenshot-placeholder {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
}

.screenshot-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.screenshot-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.screenshot-description {
  color: #6b7280;
  font-size: 0.875rem;
}

/* ===== VIOLATIONS TABLE ===== */
.violations-table-wrap {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.violations-table {
  width: 100%;
  border-collapse: collapse;
}

.violations-table th {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 2px solid var(--border-color);
}

.violations-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}



.col-num {
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
}

.col-impact .impact-text {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.violation-row.critical .impact-text {
  background: #fef2f2;
  color: var(--critical-color);
}



.detail-block {
  margin-bottom: 0.75rem;
}

.detail-block .label {
  font-weight: 600;
  color: #374151;
}

.detail-block .value {
  color: #1f2937;
}

.detail-block .rule {
  font-weight: 600;
  color: var(--primary-color);
}

.detail-block .desc {
  color: #6b7280;
}

.urls-label {
  margin-top: 1rem;
  font-weight: 600;
  color: #374151;
}

.urls-box {
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  margin-top: 0.5rem;
}

.url-item {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
  color: var(--primary-color);
  padding: 0.25rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.url-item:last-child {
  border-bottom: none;
}

/* ===== RECOMMENDATIONS ===== */
.recommendations-section {
  margin-bottom: 2rem;
}

.recommendations-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.priority-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.priority-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.priority-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.priority-number {
  background: var(--primary-color);
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 1rem;
}

.priority-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.priority-item ul {
  margin-left: 1.5rem;
  color: #374151;
}

.priority-item li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* ===== CLOSING THOUGHTS ===== */
.closing-thoughts {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--success-color);
}

.closing-thoughts h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.closing-thoughts p {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.closing-thoughts p:last-child {
  margin-bottom: 0;
}

/* ===== ISSUE ITEMS ===== */
.issue-item {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--border-color);
  background: var(--background-white);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.issue-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.issue-item.critical {
  border-left-color: var(--critical-color);
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, var(--background-white) 100%);
}

.issue-item.serious {
  border-left-color: var(--serious-color);
  background: linear-gradient(135deg, rgba(253, 126, 20, 0.05) 0%, var(--background-white) 100%);
}

.issue-item.moderate {
  border-left-color: var(--moderate-color);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, var(--background-white) 100%);
}

.issue-item.minor {
  border-left-color: var(--minor-color);
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.05) 0%, var(--background-white) 100%);
}

.issue-item h3 {
  color: var(--text-primary);
  font-family: var(--font-family-bold);
  font-weight: 900;
  margin-bottom: var(--spacing-md);
  font-size: 16pt;
  line-height: 1.3;
}

.issue-item p {
  color: var(--text-secondary);
  font-size: 12pt;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-family-primary);
  line-height: 1.6;
  font-weight: 400;
}

.issue-details {
  background: var(--background-light);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  font-size: 11pt;
  color: var(--text-secondary);
  font-family: var(--font-family-primary);
  line-height: 1.5;
  margin-top: var(--spacing-md);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ===== SCREENSHOT PLACEHOLDERS ===== */
.screenshot-placeholder {
  background: var(--background-light);
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
  text-align: center;
  margin: var(--spacing-md) 0;
}

.placeholder-text {
  font-size: 14pt;
  color: var(--text-secondary);
  font-family: var(--font-family-bold);
  margin-bottom: var(--spacing-md);
}

.placeholder-details {
  font-size: 10pt;
  color: var(--text-secondary);
  font-family: var(--font-family-primary);
  line-height: 1.6;
}

/* ===== ISSUES TABLE ===== */
.issues-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-lg) 0;
  background: var(--background-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.issues-table th {
  background: var(--background-light);
  padding: var(--spacing-md);
  text-align: left;
  font-family: var(--font-family-bold);
  font-size: 11pt;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
}

.issues-table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  font-size: 10pt;
  font-family: var(--font-family-primary);
  color: var(--text-secondary);
}

.issues-table tr.critical td:first-child {
  border-left: 4px solid var(--critical-color);
}

.issues-table tr.serious td:first-child {
  border-left: 4px solid var(--serious-color);
}

.issues-table tr.moderate td:first-child {
  border-left: 4px solid var(--moderate-color);
}

/* ===== SECTION SPACING & PAGE BREAK CONTROLS ===== */
.section-overview {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  page-break-inside: avoid;
  break-inside: avoid;
  background: var(--background-light);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.section-overview h2 {
  color: var(--primary-color);
  font-family: var(--font-family-bold);
  font-weight: 900;
  margin-bottom: var(--spacing-md);
  font-size: 18pt;
  line-height: 1.3;
}

.section-overview p {
  color: var(--text-secondary);
  font-size: 13pt;
  line-height: 1.6;
  font-family: var(--font-family-primary);
  margin: 0;
  font-weight: 400;
}

.indexing-issues,
.structure-issues,
.forms-linking-issues,
.speed-issues,
.mobile-issues,
.onpage-issues,
.screenshots-section,
.findings-table,
.recommendations-section {
  margin-bottom: var(--spacing-lg);
  page-break-inside: avoid;
  break-inside: avoid;
}

.indexing-issues h2,
.structure-issues h2,
.forms-linking-issues h2,
.speed-issues h2,
.mobile-issues h2,
.onpage-issues h2,
.screenshots-section h2,
.findings-table h2,
.recommendations-section h2 {
  color: var(--text-primary);
  font-family: var(--font-family-bold);
  font-weight: 900;
  margin-bottom: var(--spacing-lg);
  font-size: 20pt;
  line-height: 1.3;
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--border-color);
  display: inline-block;
}

/* Ensure proper spacing between issue items */
.indexing-issues .issue-item:last-child,
.structure-issues .issue-item:last-child,
.forms-linking-issues .issue-item:last-child,
.speed-issues .issue-item:last-child,
.mobile-issues .issue-item:last-child,
.onpage-issues .issue-item:last-child {
  margin-bottom: 0;
}

/* Add visual separation between issue items */
.issue-item + .issue-item {
  border-top: 1px solid var(--border-color);
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

/* Improve issue item content layout */
.issue-item > *:not(:last-child) {
  margin-bottom: var(--spacing-md);
}

.issue-item > *:last-child {
  margin-bottom: 0;
}

/* ===== PAGE-SPECIFIC CONTENT OPTIMIZATION ===== */
/* Website Indexing Page - ensure content fits within A4 */
.page-section:nth-child(3) .page-content {
  padding-bottom: var(--spacing-lg);
}

.page-section:nth-child(3) .section-overview {
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.page-section:nth-child(3) .indexing-issues {
  margin-bottom: var(--spacing-md);
}

.page-section:nth-child(3) .indexing-issues h2 {
  margin-bottom: var(--spacing-sm);
}

.page-section:nth-child(3) .issue-item:last-child {
  margin-bottom: 0;
}

/* ===== NEW INDEXING SECTION STYLES ===== */
.indexing-section {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--background-white);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.indexing-section h2 {
  color: var(--text-primary);
  font-size: 20pt;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--primary-color);
  font-family: var(--font-family-bold);
}

.subsection {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-light);
}

.subsection:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.subsection h3 {
  color: var(--primary-color);
  font-size: 16pt;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-family-bold);
}

.subsection h4 {
  color: var(--text-primary);
  font-size: 14pt;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-family-bold);
}

.subsection p {
  color: var(--text-secondary);
  font-size: 12pt;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-family-primary);
}

.findings-box {
  margin: var(--spacing-md) 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.findings-header {
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  font-weight: 600;
  font-size: 12pt;
  font-family: var(--font-family-bold);
}

.findings-content {
  background: var(--background-light);
  padding: var(--spacing-md);
  border: 1px solid var(--border-color);
  border-top: none;
}

.findings-content p {
  margin: 0;
  color: var(--text-primary);
  font-weight: 500;
}

.index-status-chart {
  background: var(--background-light);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin: var(--spacing-md) 0;
  border: 1px solid var(--border-color);
}

.index-status-chart h4 {
  color: var(--primary-color);
  font-size: 14pt;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  text-align: center;
  font-family: var(--font-family-bold);
}

.chart-data {
  display: flex;
  justify-content: space-around;
  margin-bottom: var(--spacing-md);
}

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

.chart-label {
  display: block;
  color: var(--text-secondary);
  font-size: 10pt;
  margin-bottom: var(--spacing-xs);
  font-family: var(--font-family-primary);
}

.chart-value {
  display: block;
  color: var(--primary-color);
  font-size: 16pt;
  font-weight: 600;
  font-family: var(--font-family-bold);
}

.chart-link {
  text-align: center;
  margin-top: var(--spacing-md);
}

.link-text {
  color: var(--primary-color);
  text-decoration: underline;
  font-size: 11pt;
  font-family: var(--font-family-primary);
}

.link-text:hover {
  color: var(--primary-dark);
}

.sitemap-link {
  text-align: center;
  margin-top: var(--spacing-md);
}

.screenshot-container {
  background: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  margin: var(--spacing-md) 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.screenshot-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-sm);
  box-shadow: var(--shadow-md);
}

.screenshot-caption {
  color: var(--text-secondary);
  font-size: 10pt;
  line-height: 1.4;
  font-family: var(--font-family-primary);
  background: var(--background-white);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
}

.screenshot-placeholder {
  background: var(--background-light);
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  margin: var(--spacing-md) 0;
  text-align: center;
}

.placeholder-text {
  color: var(--text-secondary);
  font-size: 12pt;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-family-bold);
}

.placeholder-details {
  color: var(--text-secondary);
  font-size: 10pt;
  line-height: 1.4;
  font-family: var(--font-family-primary);
}

/* ===== PRIORITY ITEMS ===== */
.priority-item {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  background: var(--background-white);
  box-shadow: var(--shadow-sm);
}

.priority-item.immediate {
  border-color: var(--critical-color);
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, var(--background-white) 100%);
}

.priority-item.high {
  border-color: var(--serious-color);
  background: linear-gradient(135deg, rgba(253, 126, 20, 0.05) 0%, var(--background-white) 100%);
}

.priority-item.medium {
  border-color: var(--moderate-color);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, var(--background-white) 100%);
}

.priority-item h3 {
  color: var(--text-primary);
  font-family: var(--font-family-bold);
  font-weight: 900;
  margin-bottom: var(--spacing-md);
  font-size: 14pt;
}

.priority-item ul {
  margin: 0;
  padding-left: var(--spacing-lg);
}

.priority-item li {
  color: var(--text-secondary);
  font-size: 11pt;
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-family-primary);
  line-height: 1.5;
}




/* ===== PAGE FOOTER ===== */
.page-footer {
  position: absolute;
  bottom: 20mm;
  left: 20mm;
  right: 20mm;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9pt;
  color: var(--text-secondary);
  font-family: var(--font-family-primary);
}

.footer-info {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-info span {
  color: var(--text-secondary);
}

/* ===== PRINT STYLES ===== */
@media print {
  @page {
    size: A4;
    margin: 0;
    orphans: 1;
    widows: 1;
  }
  
  body {
    margin: 0;
    padding: 0;
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.4;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  /* Ensure each page section fits exactly on one page */
  .page-section {
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 20mm !important;
    page-break-after: always !important;
    break-after: page !important;
    background: white !important;
    box-shadow: none !important;
    border: none !important;
    overflow: hidden !important; /* Prevent content overflow */
    position: relative !important;
  }
  
  .page-section:last-child {
    page-break-after: avoid !important;
    break-after: auto !important;
  }
  
  /* Header positioning for print - FIX ALIGNMENT ISSUES */
  .page-header {
    margin-bottom: var(--spacing-xl) !important;
    padding-bottom: var(--spacing-lg) !important;
    background: transparent !important;
    border-bottom: 2px solid black !important;
    position: relative !important;
    width: 100% !important;
  }
  
  /* Fix header brand alignment in print */
  .header-brand {
    display: flex !important;
    justify-content: flex-start !important; /* Left align instead of space-between */
    align-items: center !important;
    gap: var(--spacing-lg) !important;
    width: 100% !important;
  }
  
  .header-title {
    flex: 1 !important;
    text-align: left !important;
  }
  
  .header-logo-small {
    flex-shrink: 0 !important;
    margin-left: auto !important; /* Push logo to right */
  }
  
  /* Footer positioning for print */
  .page-footer {
    position: absolute !important;
    bottom: 20mm !important;
    left: 20mm !important;
    right: 20mm !important;
    padding-top: 15mm !important;
    border-top: 1px solid #e0e0e0 !important;
    background: transparent !important;
  }
  
  /* Cover page specific print styles */
  .cover-page {
    background: black !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .cover-page::after {
    background: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  /* Ensure all text is visible in print */
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  /* Hide any interactive elements in print */
  .action-item:hover,
  .metric-card:hover {
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
  }
  
  /* Ensure proper spacing in print */
  .executive-overview,
  .priority-actions,
  .tags-section {
    page-break-inside: auto !important;
  }
  
  /* Index and Glossary page print optimization */
  .index-content,
  .glossary-content {
    page-break-inside: auto !important;
    break-inside: auto !important;
    overflow: visible !important;
  }
  
  .index-content h2,
  .glossary-section h2 {
    page-break-after: avoid !important;
    break-after: avoid !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  
  .index-content li,
  .glossary-row {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  
  /* Allow content to flow to next page if needed */
  .page-content {
    overflow: visible !important;
    max-height: none !important;
    min-height: auto !important;
  }
  
  .metrics-dashboard,
  .wcag-overview {
    margin-bottom: var(--spacing-lg) !important;
  }
  
  /* Force page breaks between major sections */
  .page-section:not(:last-child) {
    page-break-after: always !important;
    break-after: page !important;
    margin-bottom: 20mm !important;
  }
  
  /* Force sections to stay together */
  .findings-section,
  .finding-item,
  .section-overview,
  .recommendations-section,
  .closing-thoughts-section,
  .screenshot-container,
  .violations-table-wrap,
  /* New sections for Website Indexing and other pages */
  .indexing-issues,
  .structure-issues,
  .forms-linking-issues,
  .speed-issues,
  .mobile-issues,
  .onpage-issues,
  .screenshots-section,
  .findings-table,
  .recommendations-section,
  .closing-thoughts {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -fs-page-break-inside: avoid !important;
    -fs-keep-together: always !important;
    -fs-page-break-min-height: 200px !important;
    orphans: 1 !important;
    widows: 1 !important;
  }
  
  /* Ensure proper spacing in print */
  .findings-section {
    margin-bottom: var(--spacing-xl) !important;
    padding-bottom: var(--spacing-lg) !important;
  }
  
  .finding-item {
    margin-bottom: var(--spacing-lg) !important;
    padding-bottom: var(--spacing-md) !important;
  }
  
  .section-overview {
    margin-bottom: var(--spacing-lg) !important;
    padding: var(--spacing-lg) !important;
    padding-bottom: var(--spacing-md) !important;
  }
  
  /* Ensure proper spacing for new sections in print */
  .indexing-issues,
  .structure-issues,
  .forms-linking-issues,
  .speed-issues,
  .mobile-issues,
  .onpage-issues,
  .screenshots-section,
  .findings-table,
  .recommendations-section {
    margin-bottom: var(--spacing-lg) !important;
    padding-bottom: var(--spacing-md) !important;
  }
  
  /* Ensure issue items have proper spacing in print */
  .issue-item {
    margin-bottom: var(--spacing-lg) !important;
    padding-bottom: var(--spacing-md) !important;
  }
  
  /* Maintain section overview styling in print */
  .section-overview {
    margin-bottom: var(--spacing-lg) !important;
    padding: var(--spacing-lg) !important;
    padding-bottom: var(--spacing-md) !important;
  }
  
  /* Force adequate page heights for all 12 pages */

  
  /* Ensure tables don't break across pages */
  table {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  
  /* Ensure issue items and components don't break across pages */
  .issue-item,
  .priority-item,
  .screenshot-item,
  .section-overview {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -fs-page-break-inside: avoid !important;
    -fs-keep-together: always !important;
    -fs-page-break-min-height: 150px !important;
  }
  
  /* Ensure issue details and content blocks stay together */
  .issue-details,
  .placeholder-details,
  .placeholder-text {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -fs-page-break-inside: avoid !important;
  }
  
  /* Ensure images and charts don't break */
  img, svg, canvas {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Optimize text for print */
  .metric-value,
  .metric-label,
  .action-priority,
  .tag {
    font-size: 10pt !important;
    line-height: 1.2 !important;
  }
  
  /* Ensure proper spacing in print */
  .actions-grid,
  .metrics-grid,
  .wcag-levels-grid {
    gap: 10mm !important;
  }
  
  /* Enhanced chart print styles for better color visibility */
  .pie {
    position: relative !important;
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  /* SVG charts for print compatibility */
  .pie svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2 !important;
  }
  
  /* Hide CSS conic-gradient in print mode to show SVG */
  .pie {
    background: transparent !important;
  }
  
  /* Ensure pie charts have proper dimensions in print */
  .pie {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  /* Ensure pie containers maintain their layout in print */
  .pie {
    position: relative !important;
    overflow: visible !important;
  }
  
  /* Ensure legend dots maintain their colors in print */
  .legend .dot {
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
    print-color-adjust: exact !important;
    border: 2px solid #333 !important;
    box-shadow: 0 0 0 1px #fff inset !important;
  }
  
  /* Hide interactive chart elements in print */
  .add-chart-item-section,
  .chart-item.dynamic .remove-chart-item {
    display: none !important;
  }
  
  /* Mobile Screenshot Print Styles - Ensure images fit within containers */
  .mobile-screenshots-container {
    display: flex !important;
    gap: 15px !important;
    margin: 15px 0 !important;
    page-break-inside: avoid !important;
  }

  .mobile-screenshot-section {
    flex: 1 !important;
    max-width: 50% !important;
  }

  .mobile-screenshot-section .screenshot-container {
    width: 100% !important;
    height: 300px !important;
    max-height: 300px !important;
    overflow: hidden !important;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    padding: 5px !important;
    background-color: #f9f9f9 !important;
    position: relative !important;
  }

  .mobile-screenshot-section .screenshot-container .preview-image,
  .mobile-screenshot-section .screenshot-container .placeholder-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 4px !important;
    display: block !important;
  }

  .mobile-screenshot-section .screenshot-container::before {
    display: none !important;
  }
}

/* ===== SVG CHART DISPLAY CONTROL ===== */
/* Hide SVG charts in screen mode, show only in print */
.pie svg {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Ensure pie containers maintain proper layout */
.pie {
  position: relative;
  overflow: hidden;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .page-section {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .page-header {
    margin-bottom: 1rem;
    padding: 1rem;
  }
  
  .header-brand {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .actions-grid {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .wcag-levels-grid {
    grid-template-columns: 1fr;
  }
  
  .cover-main-title {
    font-size: 2.5rem;
  }
  
  .end-title h1 {
    font-size: 2rem;
  }
}