/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* #start .container */
#exportCsvBtn {
  color: white;
  background-color: #a30d4b;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 5px 5px 0px #f8675e;
  transition: all 0.3s ease-in-out;
}

.filters {
  padding-top: 1rem;
  gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.filters-heading {
  width: 100%;
  margin-bottom: 0.25rem;
}

.filter-group[hidden] {
  display: none !important;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-group strong {
  margin-right: 0.25rem;
}
select {
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.container {
  display: flex;
  flex-direction: column; /* Default to column on mobile */
}

@media (min-width: 768px) {
  .container {
    flex-direction: row; /* Change to row direction */
  }
}

/* ==== Sidebar ==== */

.sidebar {
  flex: 1; /* Of een vaste breedte: bijvoorbeeld 200px */
  padding: 20px;
  box-sizing: border-box; /* Zorg ervoor dat padding niet de breedte beïnvloedt */
  height: 100%; /* Zorg ervoor dat de inhoudsopgave de volledige hoogte van de container inneemt */
  /*background-color: #f5f5f5; */
  background-color: #1f2937;
  color: #fff;
  border-right: 2px solid #eee;
}

.sidebar h2,
.sidebar h3,
.sidebar a {
  color: #fff;
}

/* Full-width column on mobile */
.main,
.sidebar {
  width: 100%;
}

/* Tablet and up: Switch to two columns */
@media (min-width: 768px) {
  .sidebar {
    width: 25%; /* Sidebar takes 25% width */
    position: fixed; /* Fix the sidebar */
    top: 0; /* Align it to the top of the page */
    left: 0;
    height: 100vh; /* Full viewport height */
    overflow-y: auto; /* Add scrolling if sidebar content overflows */
  }
}

/* Logo */
/*    .pa_logo {
        padding: 2em 2em 2em 0;
    }*/

.logo {
  flex: 0 0 30%; /* Neemt 30% van de beschikbare ruimte in */
  max-width: 100%; /* Zorgt ervoor dat het logo niet buiten zijn container groeit */
}
.happy {
  width: 17em;
  flex: 0 0 30%;
}
.contactinfo {
  font-size: 0.8em;
}

/* Report nav */
.sidemenu {
  padding-left: 0;
  list-style: none;
}
.sidebar h3 {
  padding-top: 1em;
}
.pa_logo {
  background: #fff;
}

.sidebar a {
  text-decoration: none;
  padding: 4px 0;
  display: block;
  transition: background 0.3s ease;
}

.sidebar a.active {
  border-bottom: 3px solid #fff;
  font-weight: bold;
}

/* ===== Main ===== */

/* .box  contaner voor de hoofdinhoud */

.main {
  padding: 1.5em;
}

@media (min-width: 768px) {
  .main {
    width: 75%; /* Main content takes 75% width */
    margin-left: 25%; /* Offset the main content to make room for the sidebar */
    max-height: 100vh; /* Constrain main content to viewport height */
  }
}
@media (min-width: 1400px) {
  .main {
    width: 75%;
    margin-left: 25%; /* Main content takes 75% width */
    margin-left: 20%; /* Offset the main content to make room for the sidebar */
    max-height: 100vh; /* Constrain main content to viewport height */
  }
}

/* Section .top metadata rapport */

.text {
  width: 75%;
}

.header-text {
  flex: 1; /* Neemt de resterende 70% van de beschikbare ruimte in */
}

#summary .text {
  padding-right: 2em;
}
.illustration {
  flex: 0 0 30%; /* neemt altijd 30% van de ruimte in */
}

/* Sections #summary */

.sc-table dt:last-of-type,
.sc-table dd:last-of-type {
  margin-top: 0.5em;
}
#summary table,
#summary dl {
  padding-top: 3em;
}

#metadata {
  display: flex;
  padding: 2em 0;
}
.column {
  flex-grow: 1;
}

/* Sections #scope */

/* Sections #explanation */

/* Sections #sample */

.sample-list {
  padding: 0;
  margin: 0;
}

.sample-list li {
  list-style: none;
  padding: 1.5em 0;
  counter-increment: sample-list;
  display: flex;
  flex-wrap: wrap;
}

.sample-list li strong::before {
  content: counter(sample-list) ": ";
}

.sample-list li:not(:first-child) {
  border-top: 1px solid lightgrey;
}

.sample-list a {
  font-family: Monaco, monospace;
  font-size: 0.75em;
  text-decoration: none;
  color: #474747;
  display: block;
  margin: 0.5em 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90vw;
  width: 35em;
}
.sample-list img {
  margin-right: 2em;
  border: 1px solid #ccc;
  box-shadow: 0px 0px 8px -1px #ccc;
  max-width: 12em;
  max-height: 100%;
}

/* Sections #issues */

.meta {
  display: flex;
  justify-content: space-between; /* verdeelt de spans over de hele breedte */
  align-items: start; /* verticaal centreren */
}

.meta span {
  flex: 1; /* elk span neemt gelijke ruimte */
  text-align: left; /* tekst in het midden */
}

.pagina,
.issue {
  padding: 1em 0em 1em;
  margin-bottom: 2em;
}

.issue-title a,
.issue h3 a {
  color: inherit;
  text-decoration: none;
}

.issue-title a .fa-link,
.issue h3 a .fa-link {
  font-size: 0.5em;
  opacity: 0.5;
  margin-left: 0.3em;
  vertical-align: middle;
  transition: opacity 0.2s;
}

.issue-title a:hover .fa-link,
.issue-title a:focus .fa-link,
.issue h3 a:hover .fa-link,
.issue h3 a:focus .fa-link {
  opacity: 0.7;
}

.issue-title a .fa-link:hover,
.issue h3 a .fa-link:hover {
  opacity: 1;
  cursor: pointer;
}

.issue-title,
.issue h3 {
  position: relative;
}

.copy-tooltip {
  position: absolute;
  top: 100%;
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  margin-left: 0.5em;
  white-space: nowrap;
  animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

.pagina h3,
.issue h3 {
  padding-top: 10px;
  border-top: 2px solid #aaa;
  padding-top: 20px;
}

.issue-content {
  padding: 10px;
  border-left: 2px solid #ddd;
}

/* Charts */
.charts {
  display: flex;
  flex-wrap: wrap; /* laat ze netjes afbreken bij kleine schermen */
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 30px;
}

figure.chart {
  width: 380px;
  height: 280px;
  max-width: 380px;
  max-height: 280px;
  margin: 0;
}

figure.chart canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: contain;
}

figure.chart figcaption {
  margin-top: 8px;
  font-size: 0.9em;
  color: #333;
  line-height: 1.4;
}

/* WCAG lijst */
.wcag-summary {
  margin-top: 30px;
  margin-bottom: 30px;
}
.wcag-summary h4 {
  margin-bottom: 10px;
}
.wcag-summary .wcag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.wcag-summary .wcag-list li {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 0.9em;
  font-family: monospace;
}

/* Impact-badges basisstijl */
.charts .impact {
  display: inline;
  background-clip: padding-box;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  vertical-align: middle;
  box-decoration-break: clone;
}

.beperking {
  font-size: 0.85rem;
  color: #555;
  margin: 0.25rem 0 0.75rem;
}

/* Filter bevindingen */
.issue-filters {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
}

.filter-btn,
.impact-btn {
  padding: 0.25rem 1rem;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  font: inherit;
}

.filter-btn.active,
.impact-btn.active {
  background: #1F2937;
  color: #fff;
  border-color: #1F2937;
}

.no-results {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8f8f8;
  border-left: 4px solid #999;
  font-style: italic;
}

.inline-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #0066cc;
  cursor: pointer;
  text-decoration: underline;
}

.impact-filters {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

/* === Resolved Feature === */

.resolved-toggle[hidden] {
  display: none !important;
}

.resolved-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #555;
  user-select: none;
  transition: color 0.2s, background 0.2s;
  margin-bottom: 0.5rem;
}

.resolved-toggle-page {
  display: flex;
  margin-top: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
}

.resolved-toggle:hover {
  background: #f0f0f0;
}

.resolved-checkbox {
  accent-color: #15803d;
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
}

.resolved-label .fa-circle-check {
  color: #aaa;
  transition: color 0.2s;
}

.resolved-checkbox:checked + .resolved-label .fa-circle-check {
  color: #15803d;
}

.resolved-checkbox:checked + .resolved-label {
  color: #15803d;
  font-weight: 600;
}

/* Resolved issue visual treatment */
.issue.is-resolved {
  border-left: 3px solid #15803d;
  padding-left: 1rem;
  opacity: 0.7;
}

.issue.is-resolved h3 a {
  text-decoration: line-through;
  text-decoration-color: #15803d;
}

/* Voortgang opties sectie */
.voortgang-opties {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: #f8faf9;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.voortgang-opties > h2 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1F2937;
}

.voortgang-opties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.voortgang-optie {
  padding: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.voortgang-optie h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1F2937;
  border: none;
  padding: 0;
}

.voortgang-optie h3 i {
  margin-right: 0.4rem;
  color: #6b7280;
}

.voortgang-optie p {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

.browser-tracking-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #f5f5f5;
  font: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.browser-tracking-toggle:hover {
  border-color: #15803d;
}

.browser-tracking-toggle input {
  accent-color: #15803d;
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
}

.browser-tracking-toggle input:checked + span {
  color: #15803d;
  font-weight: 600;
}

.browser-tracking-toggle input:checked + span .fa-circle-check {
  color: #15803d;
}

.browser-tracking-toggle .fa-circle-check {
  color: #aaa;
  transition: color 0.2s;
}

.voortgang-opties .resolved-dashboard {
  margin: 1rem 0 0 0;
}

/* Dashboard widget */
.resolved-dashboard {
  background: #f8faf9;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.resolved-dashboard h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  padding: 0;
  color: #333;
}

.resolved-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.resolved-progress-bar {
  flex: 1;
  min-width: 120px;
  height: 12px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.resolved-progress-fill {
  height: 100%;
  background: #15803d;
  border-radius: 6px;
  transition: width 0.3s ease;
  min-width: 0;
}

.resolved-progress-text {
  font-size: 0.9rem;
  color: #555;
  white-space: nowrap;
}

/* Status filter buttons */
.status-btn {
  padding: 0.25rem 1rem;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  font: inherit;
}

.status-btn.active {
  background: #1F2937;
  color: #fff;
  border-color: #1F2937;
}

/* Print: hide interactive elements */
@media print {
  .resolved-toggle,
  .resolved-dashboard,
  .status-btn {
    display: none !important;
  }
  .issue.is-resolved {
    opacity: 1;
    border-left: 3px solid #15803d;
  }
}
