body {
  display: flex;
  flex-direction: row;
  height: 100vh; /* Full height */
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  background-color: #fff;
  color: #333;
}

/* Remove browser default link styling */
a {
  text-decoration: none; /* Remove underline */
  color: inherit; /* Use the parent element's color */
}

/* Remove visited link color */
a:visited {
  color: inherit;
}

/* Optional: Style links on hover */
a:hover {
  color: #4256e7; /* Custom hover color */
  text-decoration: underline; /* Add underline on hover */
}
header {
  position: fixed;
  width: 100%;
  height: 60px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 18px;
  font-weight: 600;
  z-index: 10;
  border-bottom: solid 1px #dadde1;
  justify-content: space-between;
}

.hamburger {
  display: none;
}

aside {
  width: 250px;
  padding: 20px;
  border-right: 1px solid #eaeaea;
  background: #f9f9f9;
  margin-top: 60px;
  position: fixed;
  height: calc(100vh - 60px); /* Full height minus the header */
  overflow: hidden; /* Prevent scrolling */
}

aside h2 {
  font-size: 0.9rem;
  font-family: "degular-text", sans-serif;
  font-weight: 700;
  font-style: normal;
}
aside ul {
  list-style: none;
  padding: 0;
}
aside li {
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  font-family: "Inter", sans-serif;
}

aside li a {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

aside li.active {
  font-weight: 700;
  background: #e8ebfc;
  color: #4256e7;
  border-radius: 6px;
}

aside li:hover {
  color: #4256e7;
}

h1 {
  font-size: 24px;
  font-family: "degular-text", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: #160f26;
}

main {
  flex: 1;
  padding: 80px 63px;
  margin-left: 250px; /* Same width as left aside */
  margin-right: 300px; /* Same width as right aside */
  overflow-y: auto; /* Ensure scrolling happens inside main */
  height: calc(100vh - 120px);
  position: relative;
  z-index: 1; /* Ensures it doesn't overlap right menu */
  scrollbar-gutter: stable both-edges; /* Ensures padding is respected */
}

.noright {
  margin-right: 0 !important ;
}

/* Custom Scrollbar Styling for Main */
main::-webkit-scrollbar {
  width: 10px; /* Adjust scrollbar width */
  margin-right: 10px; /* Shift scrollbar to fit within padding */
}

main::-webkit-scrollbar-track {
  background: #eaeaea; /* Track background */
  border-radius: 5px;
}

main::-webkit-scrollbar-thumb {
  background: #160f26; /* Scrollbar color */
  border-radius: 5px;
}

main::-webkit-scrollbar-thumb:hover {
  background: #2a1c46; /* Darker shade on hover */
}

/* Ensure Firefox Scrollbar is also adjusted */
main {
  scrollbar-width: thin;
  scrollbar-color: #160f26 #eaeaea;
  padding-right: 10px; /* Makes space for scrollbar inside padding */
}
p {
  font-size: 14px;
  color: #160f26;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  line-height: 18px;
}

.section-title {
  font-size: 30px;
  margin-bottom: 20px;
  font-family: "Inter", sans-serif;
  border-bottom: 1px solid #eaeaea;
}

.search-container {
  width: 70%;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
}
.search-container input {
  margin-left: 10px;
  padding: 5px;
  width: 100%;
  border: none;
  outline: none;
  background-color: transparent;
}

#favoriteIcons {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(120px, 1fr)
  ); /* Responsive columns */
  gap: 16px;
  justify-content: center;
  align-items: center;
}

#favoriteGrid {
  margin-bottom: 10px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(120px, 1fr)
  ); /* Responsive columns */
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

#clearFavorites {
  background-color: #ff4d4d; /* Red background */
  color: white; /* White text */
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  margin-bottom: 15px;
  display: inline-block;
  font-weight: 400;
  font-family: "degular-text", sans-serif;
  margin-top: 10px;
}

#clearFavorites:hover {
  background-color: #cc0000; /* Darker red on hover */
  transform: scale(1.05); /* Slight scale effect */
}

#clearFavorites:active {
  background-color: #a30000; /* Even darker red when clicked */
  transform: scale(0.95); /* Shrink slightly when clicked */
}

.color-card:hover {
  transform: scale(1.05); /* Slight scale effect */
}

/* The floating plus sign */
#plus-sign {
  z-index: 999;
  position: absolute;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background: rgba(66, 86, 231, 0.9); /* Blue circle */
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Makes it a circle */
  pointer-events: none; /* So it doesn’t interfere with clicks */
  opacity: 0;
  transition:
    opacity 0.1s ease-in-out,
    transform 0.1s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  font-family: "degular-text", sans-serif;
  border: 1px solid #eaeaea;
  font-size: 14px;
}
/* Toast Notification */

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  opacity: 0;
  transition:
    opacity 0.3s ease-in-out,
    bottom 0.3s ease-in-out;
  pointer-events: none;
  z-index: 999999;
}

.logoHeader {
  height: 20px;
}

/* Toast animation */
.toast.show {
  opacity: 1;
  bottom: 40px;
}

.pdf-download {
  display: flex;
  align-items: center; /* Aligns text and icon vertically */
  gap: 8px; /* Space between text and icon */
  text-decoration: none;
  color: #4256e7;
  font-weight: 600;
}

.pdf-download:hover {
  text-decoration: underline;
}

/* Styling for the download icon */
.pdf-download svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #4256e7;
  stroke-width: 2;
  vertical-align: middle; /* Ensures proper alignment */
}

.white {
  color: #fff !important;
}

h3 {
  font-size: 0.9rem;
  font-family: "degular-text", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* Theme Switcher Container */
.theme-switcher {
  width: 50px;
  margin-right: 39px;
  display: flex;
  align-items: center;
  gap: 2px;
  background: #f4f4f4;
  border-radius: 30px;
  padding: 5px 50px 5px 5px;
  border: 1px solid #ddd;
}

/* Switch Buttons */
.switch-btn {
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.2s;
}

/* Hover Effect */
.switch-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Active Button */
.switch-btn.active {
  background: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Ensure styles apply */
body.light-mode {
  background: #ffffff !important;
  color: #333 !important;
}

body.dark-mode {
  background: #1c1c1c !important;
  color: #f5f5f5 !important;
}

.darkLogo {
  display: none;
}

body.dark-mode .darkLogo {
  display: block;
  margin: 0 auto;
}
body.dark-mode .lightLogo {
  display: none;
}

/* Ensure all text updates */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode p,
body.dark-mode a,
body.dark-mode li {
  color: #f5f5f5 !important;
}

/* Ensure all text updates */
body.dark-mode .color-card p {
  color: #212121 !important;
}

body.dark-mode .control-group label {
  color: #f5f5f5 !important;
}

body.dark-mode .darkModeBackground {
  background: #f5f5f5 !important;
}

body.dark-mode .color-card p.white {
  color: #f5f5f5 !important;
}

body.dark-mode .usage,
body.dark-mode .class-name {
  color: #f5f5f5 !important;
}

body.dark-mode .nav-label {
  color: #f5f5f5 !important;
}

html[data-theme="dark"] .toggle-btn.locked {
  background: #212121 !important;
  border: 2px solid #212121;
}

html[data-theme="dark"] main {
  scrollbar-width: thin;
  scrollbar-color: #fff #212121;
}

body.dark-mode .nav-title,
body.dark-mode .arrow {
  color: #fff !important;
}

body.dark-mode .image-item:hover {
  background: #2b2b2b !important; /* Use a darker color for dark mode */
}

/* ✅ Dark Mode Fix */
html[data-theme="dark"] .image-item:hover {
  background: #2b2b2b !important;
}

html[data-theme="dark"] .footer-nav {
  background: #2b2b2b !important;
}

html[data-theme="dark"] .typography-item:hover {
  background: #2b2b2b !important;
}

/* Dark Mode Styles */
body.dark-mode aside {
  background: #252525 !important;
  color: #f5f5f5 !important;
}

/* Links in Aside */
body.dark-mode aside a {
  color: #bbb !important;
}

/* Active Item */
body.dark-mode aside li.active {
  background: #333 !important;
  color: #f5f5f5 !important;
}

/* Dark Mode Header */
body.dark-mode header {
  background: #252525 !important;
}

/* Change Logo in Dark Mode */
body.dark-mode .logoHeader {
  content: url("../img/logo-dark.svg"); /* Switch logo */
}

.theme-icon .dark-icon {
  display: none;
}

/* Dark Mode Button */
body.dark-mode .theme-switcher {
  background: #333;
  border: 1px solid #666;
}

body.dark-mode .typography-header {
  background-color: #333 !important;
}

.typography-guide {
  width: 100%;
  margin: auto;
  font-family: "Inter", sans-serif;
}

.typography-header {
  display: grid;
  grid-template-columns: 2fr 1fr;
  font-weight: bold;
  padding: 12px 16px;
  background-color: #f4f4f4;
  border-bottom: 2px solid #ddd;
}

.typography-item {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
}

.typography-item div {
  flex: 2;
}

.class-name {
  flex: 1;
  font-size: 14px;
  color: #6b7280;
}

.usage {
  flex: 1;
  font-size: 14px;
  color: #6b7280;
}

.subtle {
  color: #6b7280;
  font-weight: normal;
}

/* Typography styles */
.text-heading-72 {
  font-size: 72px;
  font-weight: 400;
  font-family: "degular-text", sans-serif;
}
.text-heading-64 {
  font-size: 64px;
  font-weight: bold;
  font-family: "degular-text", sans-serif;
}
.text-heading-56 {
  font-size: 56px;
  font-weight: bold;
  font-family: "degular-text", sans-serif;
}
.text-heading-48 {
  font-size: 48px;
  font-weight: bold;
  font-family: "degular-text", sans-serif;
}
.text-heading-40 {
  font-size: 40px;
  font-weight: bold;
  font-family: "degular-text", sans-serif;
}

.text-heading-32 {
  font-size: 32px;
  font-weight: bold;
}
.text-heading-24 {
  font-size: 24px;
  font-weight: bold;
}
.text-heading-20 {
  font-size: 20px;
  font-weight: bold;
}
.text-heading-16 {
  font-size: 16px;
  font-weight: bold;
}
.text-heading-14 {
  font-size: 14px;
  font-weight: bold;
}

/* Add hover effect to typography items */
.typography-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-radius: 0;
  transition: background 0.3s ease-in-out;
}

.typography-item:hover {
  background: #f4f4f4;
}

/* Copied Message */
.copy-message {
  background: #007bff;
  color: white;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 10px;
  display: inline-block;
  animation: fadeInOut 1.5s ease-in-out;
}

/* Smooth fade in & out animation */
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-5px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-5px);
  }
}

.text-copy-24 {
  font-size: 24px;
  line-height: 1.5;
  font-weight: normal;
}

.text-copy-20 {
  font-size: 20px;
  line-height: 1.5;
  font-weight: normal;
}

.text-copy-18 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: normal;
}

.text-copy-16 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: normal;
}

.text-copy-14 {
  font-size: 14px;
  line-height: 1.5;
  font-weight: normal;
}

.text-copy-13 {
  font-size: 13px;
  line-height: 1.5;
  font-weight: normal;
}

.text-copy-13-mono {
  font-size: 13px;
  line-height: 1.5;
  font-family: monospace;
}

.text-strong {
  font-weight: bold;
}

.color-button {
  align-items: center; /* Ensures vertical alignment */
  gap: 8px; /* Space between color box and text */
  padding: 8px 12px;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3s ease-in-out;
  font-family: "degular-text", sans-serif;
  white-space: nowrap; /* Prevents text from wrapping */
  display: inline-flex; /* Helps with inline elements */
  justify-content: start; /* Aligns content properly */
  line-height: 18px; /* Match the color-box height */
  flex-wrap: nowrap;
}

.color-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0; /* Prevents resizing */
}

/* Extra glow effect when selected */
.color-button.selected {
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.08);
  border: 1px solid #160f25;
}

.color-button.selected {
  border: 1px solid #160f25;
}
.color-box {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}
.selected {
  border: 2px solid black;
}

.dropbtn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
}

.logoHeader {
  height: 20px;
}

.stroke {
  text-align: center;
}

/* Slider Container */
.slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Main filter container: Full width */
.filter {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* Left section (Color Picker) */
.filterLeft {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* Right section (Stroke Width Control) */
.filterRight {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

p.stroke {
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3sease-in-out;
  font-family: "degular-text", sans-serif;
}

.pdf-download {
  display: flex;
  align-items: center; /* Aligns text and icon vertically */
  gap: 8px; /* Space between text and icon */
  text-decoration: none;
  color: #4256e7;
  font-weight: 600;
}

.pdf-download:hover {
  text-decoration: underline;
}

/* Styling for the download icon */
.pdf-download svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #4256e7;
  stroke-width: 2;
  vertical-align: middle; /* Ensures proper alignment */
}

/* Theme-specific styles */
body.theme-white .card {
  background-color: #160f26;
}

body.theme-seqera .card {
  background-color: #ffffff;
}

body.theme-nextflow .card {
  background-color: #0dc09d;
  color: #000;
}

body.theme-wave .card {
  background-color: #3d95fd;
  color: #fff;
}

body.theme-multiQC .card {
  background-color: #f18046;
  color: #000;
}

body.theme-fusion .card {
  background-color: #fa6863;
  color: #000;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  font-family: "degular-text", sans-serif;
  border: 1px solid #eaeaea;
  font-size: 14px;
  min-height: 170px;
  position: relative;
  overflow: visible;
  transition: background-color 0.3s ease;
}

.card:hover {
  background-color: #fff;
  box-shadow: 0 0 10px rgba(66, 86, 231, 0.3);
  transition: all 0.3s ease-in-out;
}

body.theme-seqera .card:hover {
  box-shadow: 0 0 10px rgba(66, 86, 231, 0.3);
  transition: all 0.3s ease-in-out;
}

.card .icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: visible;
}
.icon-svg-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  max-width: 96px;
  max-height: 96px;
}

.card p {
  margin-top: auto;
  text-align: center;
  font-size: 14px;
  padding-top: 20px;
}

.color-picker-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: left;
  margin-bottom: 29px;
}

/* Extra glow effect when selected */
.color-button.selected {
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.08);
}

.color-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
  transition: all 0.3s ease-in-out;
}

.selected {
  border: 2px solid black;
}

.dropbtn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
}

.downSVG {
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: center;
  margin-top: auto; /* Se coloca automáticamente en la parte inferior */
  transition: background-color 0.3s ease;
  color: #333;
  font-weight: 400;
  font-family: "degular-text", sans-serif;
  margin-bottom: 5px;
}

.downPNG {
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 6px; /* Se coloca automáticamente en la parte inferior */
  transition: background-color 0.3s ease;
  color: #333;
  font-weight: 400;
  font-family: "degular-text", sans-serif;
}

.dropdown-toggle {
  border: 1px solid #eaeaea;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: center;
  margin-top: auto; /* Se coloca automáticamente en la parte inferior */
  transition: background-color 0.3s ease;
  color: #333;
  font-weight: 400;
  font-family: "degular-text", sans-serif;
}

.dropdown-toggle:hover,
.downSVG:hover,
.downPNG:hover {
  background-color: #4256e7;
  color: #fff;
}

.logoHeader {
  height: 20px;
}

.stroke {
  text-align: center;
}

/* Slider Container */
.slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Main filter container: Full width */
.filter {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Left section (Color Picker) */
.filterLeft {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* Right section (Stroke Width Control) */
.filterRight {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

p.stroke {
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3sease-in-out;
  font-family: "degular-text", sans-serif;
}

.pdf-download {
  display: flex;
  align-items: center; /* Aligns text and icon vertically */
  gap: 8px; /* Space between text and icon */
  text-decoration: none;
  color: #4256e7;
  font-weight: 600;
}

.pdf-download:hover {
  text-decoration: underline;
}

/* Styling for the download icon */
.pdf-download svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #4256e7;
  stroke-width: 2;
  vertical-align: middle; /* Ensures proper alignment */
}

.size-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.size-selector label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3s ease-in-out;
  font-family: "degular-text", sans-serif;
  white-space: nowrap;
  justify-content: start;
  line-height: 18px;
  flex-wrap: nowrap;
}
.size-selector input {
  margin-right: 5px;
}
.size-selector label.selected {
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.08);
}
.slider-container {
  margin-top: 10px;
  transition: transform 0.3s ease-in-out;
}

.controls-container {
  font-size: 14px;
  font-family: "degular-text", sans-serif;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 0;
}

.control-group {
  display: flex;
  flex-direction: column; /* Ensures label is above input */
  align-items: flex-start;
}

.control-group label {
  font-size: 14px;
  color: #333;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}

.toggle-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 2px solid #160f26;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  margin-top: 10px;
}

.toggle-button.locked {
  background: #160f26;
}

.toggle-button svg {
  width: 30px;
  height: 30px;
  transition: all 0.2s ease;
}

.toggle-button.locked svg path {
  stroke: white; /* ✅ Change color when locked */
}

.toggle-button:hover {
  background: #160f26;
}

.toggle-button:hover svg path {
  stroke: white;
}

.input-wrapper input {
  padding-right: 25px; /* Space for 'px' inside */
  width: 70px; /* Adjust width based on design */
  text-align: right; /* Align numbers properly */
}

.input-wrapper .unit {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #555;
  pointer-events: none; /* Prevent interaction */
}

.control-group input {
  width: 40px;
  text-align: center;
  outline: none;

  padding: 8px 12px;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3sease-in-out;
  font-family: "degular-text", sans-serif;
}

.reset-button {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #ccc;
  background: #f0f0f0;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.reset-button:hover {
  background: #4256e7;
}

.size-selector {
  display: flex;
  gap: 10px;
}

.size-selector label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 14px;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

.size-selector input {
  display: none;
}

.size-selector label.selected {
  background: #333;
  color: white;
  border-color: #333;
}

.constraint-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3s ease-in-out;
  font-family: "degular-text", sans-serif;
}

.constraint-button.active {
  background: #4256e7;
  color: white;
  border: 1px solid #4256e7;
}

.constraint-button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease-in-out;
}

.constraint-button.active svg {
  transform: rotate(90deg);
}

.favorites-section {
  margin-bottom: 20px;
}

.favorite-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: gray;
  padding-top: 13px;
  margin-bottom: 19px;
}

.favorite-btn.favorited {
  color: gold;
}

.right-menu {
  width: 250px;
  padding: 20px;
  border-left: 1px solid #eaeaea;
  background: #f9f9f9;
  position: fixed;
  right: 0;
  height: calc(100vh - 60px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.left-menu {
  width: 250px;
  padding: 20px;
  border-right: 1px solid #eaeaea;
  background: #f9f9f9;
  position: fixed;
  left: 0;
  top: 60px;
  height: calc(100vh - 60px); /* Full height minus header */
  overflow: hidden;
}

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

.modal-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 90vh;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-box h3 {
  margin-bottom: 10px;
}

.modal-box ul {
  list-style: none;
  padding: 0;
  display: flex; /* Enables side-by-side layout */
  flex-wrap: wrap; /* Ensures tags wrap if they don't fit in one line */
  gap: 8px; /* Adds spacing between tags */
}

.modal-box ul li {
  display: inline-block; /* Makes each tag behave like a block but inline */
  padding: 5px 10px;
  background: #f4f4f4;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap; /* Prevents tags from breaking into multiple lines */
}

.modal-box ul li:hover {
  background: #ddd;
}

.close-btn2 {
  display: block;
  margin-top: 15px;
  padding: 10px;
  background: red;
  color: white;
  border: none;
  cursor: pointer;
  width: 100%;
}

.show-all-tags-btn {
  display: block;
  margin-top: 10px;
  width: 100%;
  background: #007bff;
  color: white;
  padding: 8px 12px;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3sease-in-out;
  font-family: "degular-text", sans-serif;
}

.show-all-tags-btn:hover {
  background: #0056b3;
}

.download-button {
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  margin-top: auto;
  transition: background-color 0.3sease;
  color: #333;
  font-weight: 400;
  font-family: "degular-text", sans-serif;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-button:hover {
  background-color: #4256e7;
  color: #fff;
}

.download-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.logo-container-full {
  position: relative;
  display: inline-block;
  text-align: center;
  margin-top: 5px;
  width: 100%;
  padding: 0;
}

.logo-container {
  position: relative;
  display: inline-block;
  text-align: center;
  margin-top: 40px;
  width: 49%;
  padding: 70px 0;
}

.logo-container img.logo {
  width: 350px;
  transition: transform 0.2s ease;
}

.logo-container:hover .copy-icon {
  opacity: 1;
}

.copy-icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  background-color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.copy-icon img {
  width: 18px;
  height: 18px;
}

.copy-message {
  display: none;
  color: green;
  font-size: 14px;
  margin-top: 5px;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #ddd;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 1000;
}

.previous {
  margin-left: 20px;
}

.next {
  margin-right: 20px;
}

.nav-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: black;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  text-decoration: none;
  opacity: 0.5;
}

.nav-text {
  display: flex;
  flex-direction: column;
}

.nav-label {
  font-size: 14px;
  color: gray;
  font-family: "degular-text", sans-serif;
}

.nav-title {
  font-size: 16px;
  font-weight: bold;
  font-family: "degular-text", sans-serif;
  color: #160f26;
}

.arrow {
  font-size: 18px;
  margin: 0 8px;
  color: #160f26;
}

/* Image Row */
.image-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease-in-out;
}

.image-item:hover {
  background: #f9f9f9;
}

/* Image Preview */
.image-preview img {
  width: 150px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.download-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.image-item:hover .downSVG,
.downSVG.hovered {
  background-color: #4256e7;
  color: #fff;
}

.pattern {
  padding-left: 3%;
}

#usage-section {
  padding-top: 20px;
  transition: background 0.3s ease-in-out;
}

.highlight {
  animation: highlightFade 1.2s ease-in-out;
}

@keyframes highlightFade {
  0% {
    background-color: rgba(255, 223, 88, 0.5); /* Light yellow */
  }
  100% {
    background-color: transparent;
  }
}

html {
  scroll-behavior: auto; /* Disable browser's default scrolling */
  transition: opacity 0.3s ease-in-out;
}

/* ✅ Hide mobile menu by default */
#mobileMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #160f26;
  color: white;
  display: none; /* ✅ Hide menu initially */
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s ease-in-out;
  z-index: 1000;
}

/* ✅ Show full-screen menu when active */
#mobileMenu.active {
  display: flex;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Full-Screen Menu Links */
#mobileMenu nav ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

#mobileMenu nav ul li {
  margin: 20px 0;
}

#mobileMenu nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  transition: color 0.3s ease-in-out;
}

#mobileMenu nav ul li a:hover {
  color: #00bcd4;
}

/* ✅ Hide Hamburger Above 600px */
.hamburger {
  display: none;
}

.filter-section {
  margin-top: 25px;
  display: none;
}

/* ✅ Show Hamburger Below 600px */
@media (max-width: 600px) {
  .filter-section {
    display: none;
  }

  .right-menu {
    width: 190px;
    display: none;
  }

  main {
    padding: 80px 10px 40px 10px;
    margin-left: 0;
    margin-right: 178px;
  }

  aside {
    display: none;
  }

  .search-container {
    width: 30%;
  }

  .theme-switcher {
    display: none;
  }

  header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 5px; /* Adjust this to reduce spacing */
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 43px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-right: 16px;
  }

  /* Hamburger Lines */
  .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #160f26;
    transition: transform 0.3s ease-in-out;
  }

  /* "X" Animation */
  .hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .logo-container {
    width: 100%;
  }
}

.icon-image {
  width: 40px; /* Set default size */
  height: 40px; /* Set default size */
}

.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #f0f0f0;
  border: 2px solid #160f26;
  color: #160f26;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.toggle-btn svg {
  transition: transform 0.3s ease-in-out;
}

.toggle-btn:hover {
  background-color: #160f26;
  color: #fff;
}

.toggle-btn:hover svg {
  stroke: #fff;
}

.toggle-btn.locked {
  background-color: #160f26;
  color: #fff;
}

.toggle-btn.locked svg {
  stroke: #fff;
}

.toggle-btn.unlocked {
  background-color: #fff;
  color: #160f26;
  border: 2px solid #160f26;
}

.toggle-btn.unlocked svg {
  stroke: #160f26;
}

.gridIndex {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 100%;
  margin: auto;
  position: relative;
}

.gridIndex::before {
  content: "";
  position: absolute;
  top: -20px;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: #eaeaea; /* Adjust color */
  transform: translateX(-50%);
}

.gridIndex::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #eaeaea; /* Bottom border */
}

.gridIndex > div:nth-child(odd) {
  border-right: 1px solid #ccc; /* Add border to right side of first column */
  padding-right: 8px;
}

.gridIndex-item {
  text-align: center;
  width: 100%;
  min-height: 300px;
}

.gridIndex-item img {
  width: 100%;
  height: auto;
}
.gridIndex-item .content {
  padding: 10px;
  text-align: left;
}
.gridIndex-item h3,
.gridIndex-item p {
  margin: 5px 0;
}

.content-grid {
  display: grid;
  gap: 16px;
}

.grid-container-misuse {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: auto;
}

.grid-item-misuse {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  transition: background 0.3s;
}

.logo-misuse {
  width: 100%;
  max-width: 200px;
  transition: opacity 0.3s;
}

.title {
  font-size: 14px;
  font-weight: bold;
  margin-top: 10px;
}

.subtitle {
  font-size: 12px;
  color: #160f26;
  margin-top: 5px;
}

/* Responsive Grid */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

body.dark-mode .title,
body.dark-mode .subtitle {
  color: #fff;
}

body.dark-mode .card {
  background-color: #343434;
}

/* Theme-specific styles */
body.dark-mode.theme-white .card {
  background-color: #343434;
}

body.dark-mode.theme-seqera .card {
  background-color: transparent;
}

body.dark-mode.theme-nextflow .card {
  background-color: #0dc09d;
  color: #000;
}

body.dark-mode.theme-wave .card {
  background-color: #3d95fd;
  color: #fff;
}

body.dark-mode.theme-multiQC .card {
  background-color: #f18046;
  color: #000;
}

body.dark-mode.theme-fusion .card {
  background-color: #fa6863;
  color: #000;
}

.video-player {
  position: relative;
  max-width: 85%;
  border-radius: 8px;
  overflow: hidden;
  background: black;
}

video {
  width: 100%;
  border-radius: 8px;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  position: absolute;
  bottom: 0;
  width: 98%;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.video-player:hover .controls {
  opacity: 1;
}

.control-btn {
  background: none;
  border: none;
  cursor: pointer;
}

input[type="range"] {
  flex: 1;
  margin: 0 10px;
  cursor: pointer;
  background: #160f26;
  border-radius: 5px;
  height: 5px;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

span {
  color: white;
  font-size: 14px;
}

.error {
  border-color: red !important;
}

#qrcode {
  margin-top: 20px;
  max-width: 230px;
}

.generateInput {
  padding: 8px;
  width: 280px;
  border: 1px solid #160f26;
  border-radius: 4px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  transition:
    border-color 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
  outline: none;
  background: transparent;
}
.generateInput:focus {
  border-color: #4256e7;
  box-shadow: 0 0 8px #4256e7;
}

.error-message {
  color: red;
  font-size: 14px;
  margin-top: 5px;
  display: none;
  background: rgba(255, 0, 0, 0.1);
  padding: 5px 10px;
  border-radius: 5px;
}

button.qr:hover,
button.generate:hover {
  background-color: #4256e7;
  color: #fff;
}

.icon-name {
  display: none;
  color: #160f26;
  font-weight: 400;
  font-family: "degular-text", sans-serif;
}

button.qr,
button.generate {
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  margin-top: 20px;
  transition: background-color 0.3sease;
  color: #160f26;
  font-weight: 400;
  font-family: "degular-text", sans-serif;
  margin-bottom: 5px;

  align-items: center;
}
button.qr:disabled {
  background-color: #ccc;
}

.drive-btn {
  display: inline-block;
  margin-top: 10px;
  color: #4256e7;
  text-decoration: none;
  border-radius: 4px;
  font-size: 12px;
  transition: background-color 0.2s ease;
  font-family: "degular-text", sans-serif;
}
.drive-btn:hover {
  text-decoration: none;
  color: #160f26;
}

.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  position: absolute;
  bottom: -105%; /* Position above */
  left: 50%;
  transform: translateX(-50%);
  background-color: #160f26;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 10;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.1s ease-in-out;
  pointer-events: none;
}

.tooltip-container:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}
.icon-btn {
  padding: 8px 12px;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3s ease-in-out;
  font-family: "degular-text", sans-serif;
  background-color: #fff;
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #160f26;
  line-height: 16px;
}

.icon-btn:hover {
  background-color: #4256e7;
  color: #fff;
  text-decoration: none;
}

.icon-btn .icon {
  font-size: 20px;
  margin-right: 10px;
}

.btn-text strong {
  font-size: 14px;
  display: block;
}

.btn-text span {
  font-size: 13px;
  color: #160f26;
}

.icon-wrapper {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.hand-icon {
  color: #160f26;
  height: 26px;
  width: auto;
  transition: transform 0.3s ease-in-out;
  transform-origin: 70% 20%; /* Adjust for a natural wave pivot */
}

/* Animate on hover */
.icon-btn:hover .hand-icon {
  color: #fff;
  animation: wave 1s ease-in-out infinite;
}

@keyframes wave {
  0% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(14deg);
  }
  30% {
    transform: rotate(-8deg);
  }
  45% {
    transform: rotate(14deg);
  }
  60% {
    transform: rotate(-4deg);
  }
  75% {
    transform: rotate(10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
