html {
  scrollbar-gutter: stable;
}

.logo_header {
  min-height: 150px;
  height: 150px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  padding: 0 30px;
  background: #f5f5f5;
  box-shadow: 0px 10px 13px -7px #000000;
  box-sizing: border-box;
}

.header_logo {
  flex: 0 0 auto;
}

.header_logo img {
  display: block;
  max-height: 100px;
  max-width: 240px;
  width: auto;
}

.header_title {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.header_title a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header_title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header_analysis_logo {
  display: block;
  height: 150px;
  width: auto;
}

.links_header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
}

.links_header a {
  color: grey;
  text-decoration: none;
}

.links_header a:hover {
  color: darkred;
}

.file-drop-zone {
  display: flex;
  min-height: 150px;
  width: 100%;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px dashed #8aa4c4;
  border-radius: 8px;
  background: #f8fbff;
  color: #1f2937;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.file-drop-zone:hover,
.file-drop-zone:focus-within,
.file-drop-zone.is-dragging {
  border-color: #0d6efd;
  background: #eef6ff;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.file-drop-zone-title {
  font-size: 18px;
  font-weight: 700;
}

.file-drop-zone-text {
  color: #64748b;
  font-size: 14px;
}

.file-summary {
  margin-top: 10px;
  color: #475569;
  font-size: 14px;
  line-height: 1.4;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .logo_header {
    min-height: 80px;
    height: auto;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 15px;
    gap: 10px;
  }

  .header_title h1 {
    font-size: 18px;
  }

  .links_header {
    justify-content: center;
  }

  .header_analysis_logo {
    height: 80px;
    width: auto;
    margin: 0;
  }


/* Hide sidebar on tablet and phone screens */
  .sidebar {
    display: none;  /* Hide sidebar on tablets and phones */
  }

  /* Or alternatively, make it full-width above content */
  body {
    flex-direction: column;
  }

  main {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .sidebar {
    display: none;
  }

  .header_logo {
    display: none;
  }
}




/* Rest of your CSS remains the same */
#flex-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 500px;
    border: 1px black solid;
    margin: 0 auto;
}

.flex-item {
    width: 100px;
    height: 200px;
    border: 1px black solid;
    background: #369;
}

/* Analysis report dashboard */
.main-content {
  width: 100%;
}

.reports-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px 20px 48px;
  box-sizing: border-box;
}

.reports-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: 100%;
}

.report-sidebar {
  position: relative;
  min-width: 0;
  min-height: 44px;
}

.report-sidebar-toggle {
  position: absolute;
  top: 17px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.report-sidebar-toggle:hover,
.report-sidebar-toggle:focus-visible {
  background: #f6f3ff;
  color: darkred;
  outline: none;
}

.report-sidebar-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.14);
}

.report-sidebar-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.sidebar-toggle-arrow {
  transform-origin: center;
  transition: transform 0.15s ease;
}

.reports-layout.sidebar-collapsed {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.sidebar-collapsed .report-navigation {
  display: none;
}

.sidebar-collapsed .report-sidebar-toggle {
  top: 7px;
  right: 7px;
}

.sidebar-collapsed .sidebar-toggle-arrow {
  transform: rotate(180deg);
}

.report-viewer {
  border: 1px solid #dbe3f0;
  border-radius: 10px;
  background: #ffffff;
}

.report-navigation {
  padding: 12px;
  background: #ffffff;
  color: #374151;
}

.report-navigation-title,
.global-reports-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  padding: 8px 10px;
  color: #1f2937;
  font-size: 0.95rem;
  font-weight: 700;
}

.report-navigation-title {
  font-size: 1rem;
  padding-right: 42px;
}

.report-back-link {
  margin-top: 14px;
}

.report-nav-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.report-navigation summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 30px 9px 10px;
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.report-navigation summary::-webkit-details-marker {
  display: none;
}

.report-navigation summary::after {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.15s ease;
}

.report-navigation details[open] > summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.report-navigation summary:hover {
  background: #f6f3ff;
  color: darkred;
}

.sample-summary {
  font-size: 0.95rem;
  font-weight: 650;
}

.sample-report-list {
  display: grid;
  gap: 2px;
  padding: 4px 0 8px 12px;
}

.report-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.report-link:hover {
  background: #f6f3ff;
  color: darkred;
}

.report-link.is-active {
  background: #f0edff;
  color: darkred;
  font-weight: 600;
}

.report-category {
  padding: 0;
}

.report-category > summary {
  font-weight: 550;
}

.category-links {
  display: grid;
  gap: 2px;
  padding: 2px 0 4px 12px;
}

.global-reports {
  margin-top: 14px;
}

.report-viewer {
  overflow: hidden;
}

.report-frame {
  display: block;
  width: 100%;
  height: 78vh;
  border: 0;
  background: #ffffff;
}

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

  .reports-layout.sidebar-collapsed {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sidebar-collapsed .report-sidebar {
    min-height: 44px;
  }

  .report-frame {
    height: 70vh;
  }
}
