/* =========================
   GLOBAL
========================= */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #111;
}

a {
  text-decoration: none;
}

/* =========================
   HEADER BANNER
========================= */
.header {
  width: 100%;
}

.banner-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-bottom: 1px solid #aaa;
}

.banner-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.banner-title {
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 44px;
  font-weight: 800;
  color: #d6ff6b;
  text-shadow: 2px 2px 8px #000;
}

/* =========================
   NAVIGATION MENU
========================= */
.nav {
  background: linear-gradient(90deg, #1f2c7c, #2b3aa9);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 10px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
}

/* Menu item box look */
.nav-item {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: 0.25s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Hover effect */
.nav-item:hover {
  background: #d6ff6b;
  color: #1f2c7c;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

/* Active tab */
.nav-item.active {
  background: #ffffff;
  color: #1f2c7c;
  border: 2px solid #d6ff6b;
}

/* =========================
   MAIN PAGE AREA
========================= */
.page {
  width: 88%;
  margin: 0 auto;
  padding: 25px 0 35px 0;
}

.page-title {
  text-align: center;
  color: #e22b2b;
  font-size: 32px;
  font-weight: 700;
  margin: 10px 0 20px 0;
}

/* =========================
   INTRODUCTION PAGE
========================= */
.intro-box {
  font-size: 16px;
  line-height: 1.7;
  text-align: justify;
}

.ref-title {
  margin-top: 18px;
  font-weight: bold;
}

.ref-list {
  margin-top: 8px;
  padding-left: 22px;
}

/* =========================
   TEAM + CONTACT PAGES
========================= */
.center-box {
  background: #e9e9ff;
  border: 2px solid #888;
  padding: 25px;
  width: 80%;
  margin: 0 auto;
  border-radius: 12px;
}

.team-list {
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
}

.contact-block {
  text-align: left;
  font-size: 15px;
  line-height: 1.7;
}

/* =========================
   FOOTER
========================= */
.footer {
  margin-top: 20px;
  background: #e9e9ff;
  border-top: 3px solid #8b0000;
  padding: 25px 0;
}

.footer-inner {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  gap: 30px;
}

.footer-block {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.footer-link {
  color: #1a2a9b;
  text-decoration: underline;
  font-size: 14px;
}

/* =========================
   HAPMAP CONTROLS
========================= */
.hap-controls {
  width: 100%;
  margin: 0 auto;
}

.chr-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

/* Chromosome radio look */
.chr-radio {
  background: #1f2c7c;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.chr-radio input {
  margin-right: 6px;
  cursor: pointer;
}

/* Slider area box */
#slider-range {
  margin: 15px auto 0 auto;
  width: 95%;
}

/* =========================
   HAPMAP SNP MATRIX TABLE
========================= */
.geno-table {
  width: 100%;
  overflow-x: auto;
  margin-top: 15px;
}

.geno-table table {
  border-collapse: collapse;
  font-size: 12px;
}

.geno-table td,
.geno-table th {
  border: 1px solid #cfcfcf;
  padding: 2px 3px;
  text-align: center;
  white-space: nowrap;
}

/* Left sample label column */
.sample-name {
  padding: 3px 10px;
  font-weight: bold;
  background: #f0f0f0;
  position: sticky;
  left: 0;
  z-index: 2;
}

/* Zebra & hover effects */
.geno-table tr:nth-child(even) td {
  background: #fafafa;
}
.geno-table tr:hover td {
  background: #e9f1ff;
}

/* =========================
   ALLELE CELL STYLE
========================= */
.allele {
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-weight: 800;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid rgba(28, 27, 27, 0.12);
  user-select: none;
  background: #f4f6fb; /* default */
  color: #111;
}

/* =========================
   COLOR BY TEXT INSIDE CELL
========================= */
.allele:where(:not(:empty)) {
  color: #111;
}

/* A */
.allele:where(:contains("A")) { background:#e53935; color:#fff; }
/* C */
.allele:where(:contains("C")) { background:#fb8c00; color:#fff; }
/* G */
.allele:where(:contains("G")) { background:#fdd835; color:#111; }
/* T */
.allele:where(:contains("T")) { background:#43a047; color:#fff; }

/* Missing N and "." */
.allele:where(:contains("N")),
.allele:where(:contains(".")) {
  background: #eeeeee;
  color:#111;
  border: 1px dashed rgba(0,0,0,0.25);
}

/* IUPAC */
.allele:where(:contains("R")) { background:#8e24aa; color:#fff; }
.allele:where(:contains("Y")) { background:#3949ab; color:#fff; }
.allele:where(:contains("S")) { background:#00897b; color:#fff; }
.allele:where(:contains("W")) { background:#5d4037; color:#fff; }
.allele:where(:contains("K")) { background:#546e7a; color:#fff; }
.allele:where(:contains("M")) { background:#c62828; color:#fff; }

/* ===========================
   HOME PAGE DESIGN (INDEX)
=========================== */
.home-wrapper {
  max-width: 1100px;
  margin: auto;
  padding: 30px 20px;
}

.welcome-title {
  font-size: 34px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: #8291f1;
}

.welcome-subtitle {
  text-align: center;
  font-size: 16px;
  color: #555;
  margin-bottom: 35px;
}

.home-section {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 35px;
  align-items: center;
  background: #ffffff;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.home-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 15px;
  text-align: justify;
}

.home-btn {
  display: inline-block;
  padding: 12px 18px;
  margin-right: 10px;
  margin-top: 10px;
  background: #1f2c7c;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s;
}

.home-btn:hover {
  background: #15205f;
  transform: translateY(-2px);
}

.home-btn.outline {
  background: white;
  color: #1f2c7c;
  border: 2px solid #1f2c7c;
}

.home-btn.outline:hover {
  background: #1f2c7c;
  color: white;
}

/* Right side image section */
.home-images {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.circle-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.20);
  transition: 0.3s;
}

.circle-img:hover {
  transform: scale(1.07);
}

/* =========================
   RESPONSIVE 
========================= */
@media (max-width: 768px) {
  .banner-title {
    font-size: 26px;
    top: 20px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-item {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 10px;
  }

  .page {
    width: 95%;
  }

  .center-box {
    width: 95%;
  }
}

@media (max-width: 900px) {
  .home-section {
    grid-template-columns: 1fr;
    padding: 25px;
    text-align: center;
  }

  .home-text p {
    text-align: left;
  }

  .home-images {
    margin-top: 15px;
  }
}

/* =========================
   GLOBAL
========================= */
body.site-bg {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #f6f8fc;
  color: #111;
}

/* =========================
   HEADER
========================= */
.site-header {
  background: linear-gradient(120deg, #1f2c7c, #2b3aa9);
  color: #fff;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-inner {
  width: 92%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.25);
  padding: 8px;
  border-radius: 14px;
}

.brand-title {
  font-size: 30px;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
}

.brand-subtitle {
  margin: 3px 0 0 0;
  font-size: 13px;
  opacity: 0.85;
  font-weight: 400;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6ff6b;
  box-shadow: 0 0 10px rgba(214, 255, 107, 0.7);
}

.badge-text {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
}

/* =========================
   NAVBAR (Box Menu)
========================= */
.navbar {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  width: 92%;
  max-width: 1200px;
  margin: auto;
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* menu item box */
.nav-item {
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  color: #1f2c7c;
  background: #f1f4ff;
  border: 1px solid rgba(31, 44, 124, 0.12);
  transition: 0.25s ease;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* hover */
.nav-item:hover {
  background: #1f2c7c;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* active link */
.nav-item.active {
  background: #d6ff6b;
  color: #1f2c7c;
  border: 1px solid rgba(31, 44, 124, 0.25);
}

/* =========================
   PAGE CONTAINER
========================= */
.page-container {
  width: 92%;
  max-width: 1200px;
  margin: 28px auto;
}

/* Main content card */
.content-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

/* =========================
   FOOTER
========================= */
.site-footer {
  margin-top: 30px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 18px 0;
}

.footer-inner {
  width: 92%;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.footer-text {
  margin: 4px 0;
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

.footer-text.small {
  color: #666;
  font-weight: 400;
  font-size: 12px;
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .header-badge {
    width: fit-content;
  }

  .brand-title {
    font-size: 26px;
  }

  .content-card {
    padding: 18px;
  }

  .nav-item {
    padding: 9px 14px;
    font-size: 13px;
    border-radius: 12px;
  }
}
/* tabs */
.tabs-wrap{
  margin-top:22px;
  display:flex;
  gap:12px;
  justify-content:center;
}

.tab-btn{
  padding:10px 18px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,0.10);
  background:#f1f4ff;
  color:#1f2c7c;
  font-weight:900;
  cursor:pointer;
  transition:.2s;
}
.tab-btn:hover{ transform:translateY(-2px); }
.tab-btn.active{
  background:#d6ff6b;
  color:#1f2c7c;
}

.tab-content{
  display:none;
  margin-top:20px;
}
.tab-content.active{
  display:block;
}

/* chromosome folder bar */
.folder-bar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin:12px 0 18px;
}
.folder-btn{
  padding:10px 16px;
  border-radius:12px;
  border:none;
  background:#1f2c7c;
  color:#fff;
  font-weight:800;
  cursor:pointer;
  transition:.2s;
}
.folder-btn:hover{ transform:translateY(-2px); background:#15205f; }
.folder-btn.active{
  background:#d6ff6b;
  color:#1f2c7c;
}
/* ✅ File table (Haplotype Results) */
.file-table{
  width:100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.file-table th{
  text-align:left;
  padding: 12px;
  background: #f1f4ff;
  color: #1f2c7c;
  font-weight: 900;
  border-bottom: 2px solid rgba(0,0,0,0.12);
}

.file-table td{
  padding: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 14px;
}

.file-name{
  font-weight: 700;
  color: #222;
  word-break: break-word;
}

/* download button only */
.btn-download-only{
  display:inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 900;
  text-decoration:none;
  background: #d6ff6b;
  color: #1f2c7c;
  border: 2px solid rgba(31,44,124,0.18);
  transition: 0.2s;
}

.btn-download-only:hover{
  transform: translateY(-2px);
}
/* =========================
   TEAM PAGE 
========================= */
.team-wrapper{
  display: flex;
  gap: 18px;
  flex-wrap: wrap; 
  justify-content: center;
  margin-top: 20px;
}

.team-card{
  width: 210px;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 12px 25px rgba(0,0,0,0.07);
  transition: 0.25s;
}

.team-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

.team-img{
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 18px rgba(0,0,0,0.15);
  margin-bottom: 12px;
}

.team-name{
  font-size: 15px;
  font-weight: 900;
  color: #1f2c7c;
  margin: 6px 0 4px;
}

.team-qual{
  font-size: 13px;
  color: #444;
  margin: 0;
  line-height: 1.5;
}

/* Highlight designation/role */
.team-role{
  display: inline-block;
  font-weight: 900;
  color: #8b0000;          
  background: #fff0f0;      
  padding: 4px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(139, 0, 0, 0.18);
}

/* Responsive */
@media(max-width: 768px){
  .team-card{
    width: 85%;
    max-width: 320px;
  }
}

/* Footer container */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logos */
.footer-logos {
  display: flex;
  flex-direction: row;     
  align-items: center;
  gap: 14px;               
}

/* logo size */
.footer-logos img {
  height: 99px;            
  width: auto;
  object-fit: contain;
  opacity: 100;
}



<div style="
  text-align:center;
  margin: 25px auto;
  padding: 10px;
  background:#f8f9fc;
  border-radius:10px;
  box-shadow:0 2px 6px rgba(0,0,0,0.1);
">
  <img src="/static/haplotype_heatmap.png"
       alt="Haplotype Heatmap"
       style="max-width:95%; border-radius:6px;">
</div>

















/* Page title */
.page-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Chromosome selection */
.chr-select {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* Range box */
.range-box {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}

/* Button */
.btn-submit {
  background: #3a47d5;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-submit:hover {
  background: #1e2a78;
}

/* Table */
.table-container {
  overflow-x: auto;
  margin-top: 20px;
}

.hapmap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.hapmap-table th {
  background: #3a47d5;
  color: white;
  padding: 6px;
}

.hapmap-table td {
  padding: 4px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

/* =========================================================
   HAPMAP TITLE
========================================================= */

.hapmap-title {
    text-align: center;
    font-size: 44px;
    font-weight: 900;
    margin-bottom: 28px;

    background: linear-gradient(
        90deg,
        #1f2c7c,
        #4f46e5,
        #06b6d4
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    letter-spacing: 1px;
    position: relative;
}

.hapmap-title::after {
    content: "";

    display: block;

    width: 180px;
    height: 5px;

    margin: 10px auto 0 auto;

    border-radius: 10px;

    background: linear-gradient(
        90deg,
        #4f46e5,
        #06b6d4,
        #22c55e
    );
}


/* =========================================================
   CHROMOSOME SELECTOR
========================================================= */

.chr-select {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 14px;

    margin-bottom: 30px;

    padding: 18px;

    background: linear-gradient(
        135deg,
        #f8fbff,
        #eef2ff
    );

    border-radius: 22px;

    border: 1px solid rgba(79, 70, 229, 0.12);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255,255,255,0.7);
}

.chr-select label {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 18px;

    background: white;

    border-radius: 14px;

    border: 1px solid #dbeafe;

    color: #1e3a8a;

    font-weight: 800;
    font-size: 14px;

    cursor: pointer;

    transition: all 0.25s ease;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.05);
}

.chr-select label:hover {
    transform: translateY(-3px);

    background: linear-gradient(
        135deg,
        #4f46e5,
        #06b6d4
    );

    color: white;

    box-shadow:
        0 10px 22px rgba(79,70,229,0.25);
}

.chr-select input[type="radio"] {
    transform: scale(1.15);
    accent-color: #4f46e5;
}


/* =========================================================
   RANGE + CONTROL PANEL
========================================================= */

.range-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 16px;

    margin-top: 22px;
    margin-bottom: 28px;

    padding: 22px;

    background: linear-gradient(
        135deg,
        #ffffff,
        #f8fbff
    );

    border-radius: 22px;

    border: 1px solid rgba(0,0,0,0.06);

    box-shadow:
        0 12px 28px rgba(0,0,0,0.06);
}

.range-box strong {
    color: #1e3a8a;
    font-size: 15px;
}

.range-box input {
    width: 160px;

    padding: 10px 14px;

    border-radius: 12px;

    border: 1px solid #cbd5e1;

    background: white;

    font-size: 14px;
    font-weight: 600;

    transition: 0.2s ease;
}

.range-box input:focus {
    outline: none;

    border-color: #4f46e5;

    box-shadow:
        0 0 0 4px rgba(79,70,229,0.12);
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.submit-btn {
    background: linear-gradient(
        135deg,
        #4f46e5,
        #06b6d4
    );

    color: white;

    border: none;

    padding: 11px 22px;

    border-radius: 14px;

    font-weight: 800;
    font-size: 14px;

    cursor: pointer;

    transition: all 0.25s ease;

    box-shadow:
        0 10px 20px rgba(79,70,229,0.25);
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.03);

    box-shadow:
        0 16px 28px rgba(79,70,229,0.35);
}


/* =========================================================
   GENOTYPE COLUMN
========================================================= */

.sample-column {
    position: sticky;
    left: 0;

    background: linear-gradient(
        135deg,
        #1f2c7c,
        #4f46e5
    ) !important;

    color: white !important;

    z-index: 10;

    min-width: 210px;

    font-weight: 800;

    text-align: left !important;

    padding-left: 18px !important;

    border-right: 3px solid #93c5fd;

    letter-spacing: 0.3px;

    box-shadow:
        4px 0 10px rgba(0,0,0,0.12);
}


/* =========================================================
   GENOTYPE HEADER
========================================================= */

.header-title {
    position: sticky;
    left: 0;
    top: 0;

    z-index: 30;

    min-width: 210px;

    background: linear-gradient(
        135deg,
        #0f172a,
        #1e293b
    ) !important;

    color: #ffffff !important;

    font-size: 18px;
    font-weight: 900;

    border-right: 3px solid #38bdf8;

    letter-spacing: 0.5px;
}