/* @media screen and (min-width: 800px) { The following CSS runs only for displays with a width (in pixels) of more than 800px
    body {
        background-color: #ffffff;
    } */

.input-tabs {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.page-footer {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #00695c;
  text-align: center;
  padding: 1px 0;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}
.page-footer * {
  line-height: 1.6;
  color: white !important;
}
.form-wrapper { 
  display: block; /* let inner .form-layout handle layout */
  width: 100%;
}

/* layout: left sequence column, right filter panel */
.form-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* left column content aligned to left */
.left-col {
  flex: 0 0 56%;
  min-width: 200px;
  box-sizing: border-box;
  text-align: center;
  border-right: 2.5px solid #009688bd; /* thin teal divider line */
  padding-right: 0.5px; /* space before line */
}

#alpha-list {
  margin: 12px auto 0;
  justify-items: center;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

/* keep panel height so textarea doesn't jump */
.right-panel {
  min-height: 160px;
  flex: 0 0 44%; /* take remaining width */
  box-sizing: border-box;
  margin-top: 15px; /* aligns vertically with textarea */
}

body {
  padding-bottom: 60px; /* space for fixed footer */
  min-height: 100vu;
  position: relative;
}
.cut-sites-section {
  background-color: #f9fafb;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px #009688;
  font-size: 1em;
  color: #222;
  margin-bottom: 2rem;
}
.tab-btn {
    background-color: #ffffff;
    border: 2px solid #009688;
    color: #009688;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 150, 136, 0.2);
}
.tab-btn:hover {
    background-color: #b2dfdb;
    color: #004d40;
}
.tab-btn.active {
    background-color: #009688;
    color: white;
    border-color: #00796b;
    box-shadow: 0 2px 8px #00796b;
}
textarea {
    width: 90%;
    max-width: 500px; /* Controls size */
    height: 120px;
    font-family: monospace;
    padding: 1px;
    font-size: 1em;
    resize: vertical;
}
.analyze-btn {
    background-color: #009688;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 8px auto 0 auto;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }
.analyze-btn:hover {
  background-color: #007b6d;
}
/* Header navbar style */
.header-navbar {
    background-color: #26a69a; /* dark gray/blackish background */
    padding: 10px 0;
}
.header-navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.header-navbar ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}
.header-navbar ul li a:hover {
    background-color: #004d40; /* slightly lighter on hover */
    border-radius: 4px;
}
.header-navbar ul li {
  position: relative;
}
.header-navbar ul li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 0%;
  height: 100%;
  width: 1px;
  background-color: white; /* separator color */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
header {
    background: #009688;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
nav ul li a:hover {
    color: #fff828;
}
main {
    padding: 4rem 3rem 1rem 3rem;
    width: 100%;
    max-width: none;
    background: white;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}
h1, h2 {
    text-align: center;
    color: #2e2d2d;
    margin-bottom: 1rem;
}
.results-area h2, h3 {
   color: #009688;
   font-weight: bold;
   margin: 1rem;
}
.analysis {
    background: #b3dfea;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
}
.strand {
    margin: 2px 0;
}
.strand span {
    display: inline-block;
    width: 1ch;
}
.cut_top {
    color: red;
    font-weight: bold;
}
.cut.bottom {
    color: blue;
    font-weight: bold;
}
.sequence-visual {
  margin-top: 1em;
  padding: 1em;
  background-color: #f0f4f8;
  border-radius: 8px;
  overflow-x: auto;
  font-family: monospace;
  white-space: nowrap;
  box-shadow: 0 2px 6px #7ab2ea;
  flex: 3 1 500px;
  display: inline-block;
  text-align: center;
  max-width: 100%;
}
.sequence-visual .bases,
.sequence-visual .annotations,
.sequence-visual .labels {
  display: flex;
  line-height: 1;
}
.sequence-visual .base,
.sequence-visual .cut,
.sequence-visual .label {
  width: 1ch;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sequence-visual .cut {
  font-weight: bold;
}
.sequence-visual .cut.top {
  color: red;
}
.sequence-visual .cut.bottom {
  color: blue;
}
.sequence-visual .labels {
  font-size: 0.7em;
  height: 1em;
}
.welcome-section {
  text-align: center;
  padding-bottom: 20px;
}
.welcome-heading {
  color: #2c3e50;
  font-size: 1.8em;
  margin-top: 40px;
}
.highlight {
  color: #117a8b;
}
.welcome-text {
  max-width: 800px;
  margin: 15px auto;
  color: #555;
  font-size: 1.5em;
}
.welcome-subtext {
  max-width: 700px;
  margin: 5px auto;
  color: #666;
  font-size: 1.3em;
}
.results-area p {
  margin: 0.5em 0;
  font-size: 1em;
  color: #444;
}
.results-area {
  padding: 1rem 3rem;
}
.error {
  color: red;
  font-weight: bold;
  margin: 1em 0;
}
.results-columns {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.sequence-stats {
  flex: 1 1 250px;
  max-width:260px;
  background-color: #f9fafb;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px #009688;
  font-size: 0.95em;
  color: #333;
  line-height: 1.4;
}
.sequence-stats p {
  margin: 0.5em 0;
  font-size: 1em;
  color: #444;
}
.sequence-main {
  flex: 3 1 600px;
  background-color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px #009688;
  font-size: 1em;
  color: #222;
  line-height: 1.5;
}
.sequence-main h2 {
  color: #2c3e50;
  border-bottom: 2px solid #009688;
  padding-bottom: 0.3em;
  margin-bottom: 1em;
}
.sequence-main pre {
  background-color: #f4f6f8;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1em;
  font-family: monospace;
  font-size: 0.95em;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 1.5em;
}
.cut-sites-section h2 {
  color: #2c3e50;
  border-bottom: 2px solid #009688;
  padding-bottom: 0.3em;
  margin-bottom: 1em;
}
.sequence-stats h2 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 1.3em;
  border-bottom: 2px solid #009688;
  padding-bottom: 0.3em;
  margin-bottom: 1em;
}
/* New_modify */
#svg-container {
  display:flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible; /* ← fixes vertical clipping */
  height: auto;
  max-height: none;
  /* padding: 8em 20em 12em 20em; */
  background: #fff;
  border: 1px solid #ccc;
  position: relative;
  white-space: pre-wrap;
  padding: 0em 0 1em 0;
}
svg#enzyme-map {
  width: max-content; /* ← auto expand */
  height: 75vh;
  display: flex;
  overflow: visible;
}
svg.enzyme-map {
    height: auto;
    background-color: #fefefe;
    border: 1px solid #ccc;
    font-family: monospace;
    background: #fff;
    /* width: 100%; */
    display: flex;
    transform: scale(0.62) translate(0px, 0px);
    transform-origin: center;
    margin-top: 4em;
    margin-left: 12em;
    justify-content: center;
    align-items: center;
    /* height: 100vh;*/
}
svg.enzyme-map text {
    font-size: 12px;
    pointer-events: none;
}
.enzyme-line {
    stroke-width: 1;
    opacity: 0.7;
}
.enzyme-text {
    font-size: 11px;
    cursor: pointer;
}
.enzyme-site:hover {
    fill: red;
    cursor: pointer;
}
.axis-line {
    stroke: #444;
    stroke-width: 1;
}
#enzyme-map {
  width: max-content !important; /* expands to fit content */
  min-width: 100px;
  height: 75vh;
  display: block;
  background: #fff;
  border: none;
  overflow: visible;
  max-width: none !important;
}
.extra-row {
    display: none;
}
.enzyme-label.highlighted:hover {
    fill: #1976d2 !important;
    font-weight: bold;
    text-decoration: underline;
    transition: fill 0.2s, font-weight 0.2s;
}
.enzyme-arrow-line.highlighted,
.enzyme-hline.highlighted:hover {
    stroke: #1976d2 !important;
    stroke-width: 2.5 !important;
    transition: stroke 0.2s, stroke-width 0.2s;
}
.highlight-box {
  pointer-events: none;
}
 css for contact page */
.contact-area {
  text-align: center;
  padding: 2rem;
  color: #00796b;
  font-size: 1.1rem;
}
.textbox{
    padding: 10px;
    text-align: center;
    color: #2c3e50;
    align : "center"
}
.developers img{
    width:14%;
    height:auto;
    display:block;
    position:relative;
    margin: 0 auto 0 auto;
    border-radius: 50%;
    border-style: solid;
    border-color: #009688;
    padding: 0.2em;
    border-width: 0.2em;
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.6);
}
.developers img:hover {
    transform: scale(1.05);
}
/* ----------- About Page ----------- */
.about-area {
  padding: 2rem 3rem;
  background-color: white;
  color: #333;
  font-size: 1.05em;
  line-height: 1.6;
  max-width: 1000px;
  margin: 0 auto;
  text-align: justify;
}
.about-section h2,
.about-section h3 {
  color: #009688;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}
.about-section p {
  margin-bottom: 1rem;
}
.about-section ul {
  list-style: disc;
  padding-left: 2rem;
  margin-bottom: 1rem;
}
.about-section li {
  margin: 0.5rem 0;
}
.highlight-message {
  background-color: #d0e9f4;
  border-left: 4px solid #009688;
  border-right: 4px solid #009688;
  padding: 1rem;
  margin-top: 2rem;
  font-weight: bold;
  border-radius: 6px;
  text-align: center;
  color: #00695c;
}
/*---- Help Page ----*/
.help-area {
  padding: 2rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
  color: #2c3e50;
}
.help-area h1 {
  color: #009688;
  text-align: center;
  margin-bottom: 1.5rem;
}
.help-area .intro-text {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.help-section {
  margin-bottom: 2.5rem;
  font-size: 1.15rem;
}
.help-section h2 {
  color: #00796b;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.help-image {
  text-align: center;
  margin: 1rem 0;
}
.help-image img {
  max-width: 100%;
  height: auto;
  border: 2px solid #009688;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 150, 136, 0.3);
}
.image-caption {
  font-size: 0.95em;
  margin-top: 0.5rem;
  color: #555;
}div#svg-container {
    position: relative;
    overflow-x: auto;
}
/* Style for Table */
 table {
  border-collapse: collapse;
  width: 100%;
}
table th, table td {
  padding: 8px;
  text-align: center;
}
table thead {
  background-color: #009688; /* light green header */
  color:mintcream;
}
table tbody tr{
  background-color: #ffffff;
}
.enzyme-table tbody tr:nth-child(odd) {
    border-bottom: 3.4px solid #689dc9b6 !important; /* Darker Blue */
}
.enzyme-table tbody tr:nth-child(even) {
    border-bottom: 3.4px solid #00b8dda2 !important; /* Blue */
}
.enzyme-table td:not(:last-child) {
    position: relative;
    border-right: none !important;
}
.enzyme-table td:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10%;
    bottom: 10%;
    right: 0;
    height: auto;
    width: 0;
    border-radius: 9999px;
    border-right: 2.3px solid #40a3e9b3; /* partial line */
    z-index: 2;
}
/* #filter-section select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 2px solid #009688;
  background-color: #f9fafb;
  color: #00695c;
  font-weight: bold;
} */
#filter-section select:hover {
  background-color: #e0f2f1;
}
#filter-section h3 {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.1em;
  color: #004d40;
}
#filter-section label {
  font-weight: inherit;
  font-size: 1.2em;
  color: #1a1a1a;
}

/* keep filter area height stable so textarea doesn't shift when panels show/hide */
#filter-section {
  /* min-height: 140px; */
  display: block;
}

/* center the alphabet grid and its items */
#alpha-list {
  margin: 0 auto;
  justify-items: center;
  align-items: center;
}

/* make enzyme-items clearer and selectable */
#enzyme-names .enzyme-item {
  transition: background .12s, color .12s;
  user-select: none;
}

/* ensure legacy filters area occupies same horizontal space */
#legacy-filters {
  min-height: 56px;
}

/* responsive */
@media (max-width:880px) {
  .form-layout { flex-direction: column; gap: 14px; }
  .right-col { max-width: none; padding-left: 0; }
  .right-panel { position: static; border-left: none; min-height: auto; }
}

