/* ==========================================================
   DNA PROMOTER PREDICTION V2
   COMPLETE FINAL STYLESHEET
   Home + Explorer + Batch + Reports
========================================================== */


/* ==========================================================
   1. DESIGN VARIABLES
========================================================== */

:root {
    --navy: #061331;
    --navy-2: #0b2c68;

    --blue: #2563eb;
    --light-blue: #3b82f6;

    --purple: #7c3aed;
    --light-purple: #a855f7;

    --green: #10b981;
    --orange: #f59e0b;
    --red: #ef4444;
    --cyan: #06b6d4;

    --page-bg: #f4f7fc;

    --card-bg: #ffffff;

    --text-dark: #17213d;
    --text: #334155;
    --text-grey: #64748b;
    --text-light: #94a3b8;

    --border: #dce5f2;

    --shadow:
        0 7px 22px rgba(15, 32, 76, 0.055);

    --radius: 12px;
}


/* ==========================================================
   2. RESET
========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    background: var(--page-bg);
    color: var(--text-dark);

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    line-height: 1.5;
}


button,
input,
select,
textarea {
    font: inherit;
}


button,
a,
select {
    -webkit-tap-highlight-color: transparent;
}


button {
    cursor: pointer;
}


button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}


[hidden] {
    display: none !important;
}


/* ==========================================================
   3. NAVBAR
========================================================== */

.navbar {
    min-height: 60px;

    padding:
        7px 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    position: sticky;
    top: 0;
    z-index: 1000;

    color: white;

    background:
        rgba(6, 19, 49, 0.985);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.1);
}


.logo h2 {
    font-size: 18px;
    font-weight: 750;

    letter-spacing: -0.4px;

    line-height: 1.2;
}


.logo h2 span {
    display: inline-block;

    margin-left: 3px;

    padding:
        2px 6px;

    border-radius: 5px;

    background:
        linear-gradient(135deg,
            var(--blue),
            var(--purple));

    font-size: 9px;

    vertical-align: middle;
}


.logo p {
    margin-top: 2px;

    color: #b9c7e6;

    font-size: 9px;
}


nav {
    display: flex;
    align-items: center;

    gap: 24px;
}


nav a {
    position: relative;

    padding:
        15px 0;

    color: #dce5ff;

    text-decoration: none;

    font-size: 11px;
    font-weight: 650;

    white-space: nowrap;

    transition:
        color 0.2s ease;
}


nav a:hover,
nav a.active {
    color: white;
}


nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 7px;

    width: 0;
    height: 2px;

    border-radius: 20px;

    background:
        linear-gradient(90deg,
            #38bdf8,
            #8b5cf6);

    transition:
        width 0.2s ease;
}


nav a:hover::after,
nav a.active::after {
    width: 100%;
}


/* ==========================================================
   4. SHARED GRADIENT HERO BACKGROUND
========================================================== */

.hero,
.page-hero {
    position: relative;

    overflow: hidden;

    color: white;

    background:
        radial-gradient(circle at 82% 20%,
            rgba(56, 189, 248, 0.34),
            transparent 23%),
        radial-gradient(circle at 93% 80%,
            rgba(168, 85, 247, 0.35),
            transparent 27%),
        linear-gradient(115deg,
            #061331 0%,
            #0b2c68 53%,
            #3b1678 100%);
}


/* ==========================================================
   5. HOME HERO
   intentionally short
========================================================== */

.home-page .hero {
    min-height: 0;

    padding:
        24px 5% 25px;

    display: flex;
    align-items: center;
}


.home-page .hero-text {
    max-width: 900px;

    position: relative;
    z-index: 2;
}


.home-page .hero h1 {
    max-width: 830px;

    margin-bottom: 8px;

    font-size:
        clamp(31px,
            2.7vw,
            42px);

    line-height: 1.04;

    letter-spacing: -1px;
}


.home-page .hero p {
    max-width: 760px;

    margin-bottom: 14px;

    color: #e0e8ff;

    font-size: 12px;

    line-height: 1.5;
}


.hero-buttons {
    display: flex;

    gap: 8px;

    flex-wrap: wrap;
}


.hero-buttons button {
    min-height: 34px;

    padding:
        7px 14px;

    color: white;

    background:
        linear-gradient(135deg,
            var(--purple),
            var(--blue));

    border: none;

    border-radius: 7px;

    font-size: 10px;
    font-weight: 700;

    box-shadow:
        0 6px 16px rgba(78, 70, 229, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.hero-buttons button:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 9px 20px rgba(78, 70, 229, 0.34);
}


.hero-buttons .secondary-btn {
    color: white;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid rgba(255, 255, 255, 0.55);

    box-shadow: none;
}


/* ==========================================================
   6. INTERNAL PAGE HERO
   Explorer + Batch + Reports
========================================================== */

.page-hero {
    min-height: 0;

    padding:
        17px 5% 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}


.page-hero-content {
    min-width: 0;

    position: relative;
    z-index: 2;
}


.page-hero .page-label {
    margin-bottom: 4px;

    color: #8acbff;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.2px;
}


.page-hero h1 {
    margin-bottom: 5px;

    font-size:
        clamp(27px,
            2.1vw,
            34px);

    line-height: 1.05;

    letter-spacing: -0.7px;
}


.page-hero-description,
.page-hero>div:first-child>p:last-of-type {
    max-width: 720px;

    color: #dce7ff;

    font-size: 11px;

    line-height: 1.45;
}


.page-hero-buttons {
    display: flex;
    align-items: center;

    gap: 7px;

    flex-wrap: wrap;

    position: relative;
    z-index: 2;
}


.explorer-back-button,
.primary-action {
    min-height: 33px;

    padding:
        6px 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    text-decoration: none;

    font-size: 9px;
    font-weight: 700;
}


.explorer-back-button {
    color: white;

    background:
        rgba(255, 255, 255, 0.05);

    border:
        1px solid rgba(255, 255, 255, 0.55);
}


.primary-action {
    color: white;

    background:
        linear-gradient(135deg,
            var(--purple),
            var(--blue));

    border: none;
}


/* ==========================================================
   7. SHARED LABELS + CARDS
========================================================== */

.section-label {
    margin-bottom: 4px;

    color: #7b8aa3;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.05px;
}


.card,
.explorer-card,
.sidebar-card,
.batch-card,
.report-card,
.report-stat-card,
.batch-stat-card {
    background: white;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    box-shadow:
        var(--shadow);
}


.card,
.explorer-card,
.batch-card,
.report-card {
    padding: 17px;
}


.card h3 {
    margin-bottom: 12px;

    color: #182342;

    font-size: 16px;
}


.explorer-card h2,
.batch-card h2,
.report-card h2 {
    color: #17213d;

    font-size: 16px;

    line-height: 1.3;
}


/* ==========================================================
   8. HOME MAIN CONTAINER
========================================================== */

.home-page .container {
    width:
        min(96%, 1550px);

    margin:
        14px auto 34px;
}


/* ==========================================================
   9. HOME INPUT + SUMMARY GRID
========================================================== */

.top-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.42fr) minmax(310px, 0.72fr);

    gap: 14px;

    margin-bottom: 14px;
}


.input-card {
    border-top:
        3px solid var(--purple);
}


.summary-card {
    border-top:
        3px solid var(--blue);
}


textarea {
    display: block;

    width: 100%;

    min-height: 145px;

    padding: 13px;

    color: #172033;

    background: #fbfdff;

    border:
        1px solid #cad6e8;

    border-radius: 9px;

    outline: none;

    resize: vertical;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 11px;

    line-height: 1.5;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


textarea:focus {
    border-color:
        var(--purple);

    box-shadow:
        0 0 0 3px rgba(124, 58, 237, 0.09);
}


.small-text {
    margin-top: 7px;

    color:
        var(--text-grey);

    font-size: 10px;
}


/* ==========================================================
   10. TSS OPTIONS
========================================================== */

.analysis-options {
    margin-top: 11px;

    padding: 11px;

    background: #f8faff;

    border:
        1px solid #dce5f2;

    border-radius: 8px;
}


.analysis-options label,
.strand-selection label {
    display: block;

    margin-bottom: 5px;

    color: #263653;

    font-size: 11px;
    font-weight: 700;
}


.analysis-options label span {
    margin-left: 4px;

    color:
        var(--purple);

    font-size: 8px;

    text-transform: uppercase;
}


.analysis-options input {
    width: 160px;

    min-height: 34px;

    padding:
        6px 9px;

    color: #17213d;

    background: white;

    border:
        1px solid #cbd5e1;

    border-radius: 7px;

    outline: none;
}


.analysis-options input:focus {
    border-color:
        var(--purple);

    box-shadow:
        0 0 0 3px rgba(124, 58, 237, 0.09);
}


.analysis-options p,
.strand-selection p {
    margin-top: 6px;

    color:
        var(--text-grey);

    font-size: 9.5px;

    line-height: 1.45;
}


/* ==========================================================
   11. STRAND SELECTION
========================================================== */

.strand-selection {
    margin-top: 10px;
}


.strand-selection select {
    width: 210px;

    min-height: 34px;

    padding:
        6px 9px;

    color: #17213d;

    background: white;

    border:
        1px solid #cbd5e1;

    border-radius: 7px;

    outline: none;

    cursor: pointer;
}


.strand-selection select:focus {
    border-color:
        var(--purple);

    box-shadow:
        0 0 0 3px rgba(124, 58, 237, 0.09);
}


/* ==========================================================
   12. HOME INPUT BUTTONS
========================================================== */

.input-actions {
    margin-top: 12px;

    display: flex;

    gap: 7px;

    flex-wrap: wrap;
}


.analyze-button,
.clear-button {
    min-height: 34px;

    padding:
        7px 14px;

    border-radius: 7px;

    font-size: 10px;
    font-weight: 700;
}


.analyze-button {
    color: white;

    background:
        linear-gradient(135deg,
            var(--purple),
            var(--blue));

    border: none;
}


.clear-button {
    color: #475569;

    background: white;

    border:
        1px solid #cbd5e1;
}


/* ==========================================================
   13. ANALYSIS STATUS
========================================================== */

.analysis-status {
    margin-top: 10px;

    padding:
        8px 10px;

    color: #64748b;

    background: #f8fafc;

    border:
        1px solid #e2e8f0;

    border-radius: 7px;

    font-size: 9.5px;
}


.status-success {
    color: #166534;

    background: #ecfdf5;

    border-color: #86efac;
}


.status-error {
    color: #b91c1c;

    background: #fef2f2;

    border-color: #fecaca;
}


/* ==========================================================
   14. HOME SUMMARY BOXES
========================================================== */

.summary-boxes {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 9px;
}


.mini-box {
    min-height: 72px;

    padding: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        linear-gradient(145deg,
            #f8faff,
            #f1f5fc);

    border:
        1px solid #e6ecf6;

    border-radius: 9px;
}


.mini-box h4 {
    margin-bottom: 3px;

    color:
        var(--text-grey);

    font-size: 10px;

    font-weight: 600;
}


.mini-box p {
    color: #14254b;

    font-size: 18px;

    font-weight: 760;
}


.mini-box:nth-child(2) p {
    color:
        var(--blue);
}


.mini-box:nth-child(3) p {
    color:
        var(--green);
}


.mini-box:nth-child(4) p {
    color:
        var(--purple);
}


.mini-box:nth-child(5) p {
    color: #0284c7;
}


.mini-box:nth-child(6) p {
    color: #0891b2;
}


/* ==========================================================
   15. HOME OVERVIEW CARDS
========================================================== */

.overview-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 11px;

    margin-bottom: 14px;
}


.stat-card {
    min-height: 78px;

    padding:
        11px 13px;

    position: relative;

    overflow: hidden;
}


.stat-card h3 {
    margin-bottom: 5px;

    color:
        var(--text-grey);

    font-size: 10px;

    font-weight: 650;
}


.stat-card p {
    font-size: 19px;

    font-weight: 780;

    letter-spacing: -0.4px;
}


.stat-card small {
    display: block;

    margin-top: 2px;

    color:
        var(--text-grey);

    font-size: 9px;
}


.stat-card:nth-child(1) {
    border-left:
        4px solid var(--green);

    background:
        linear-gradient(145deg,
            #f0fff8,
            white);
}


.stat-card:nth-child(1) p {
    color: #079669;
}


.stat-card:nth-child(2) {
    border-left:
        4px solid var(--purple);

    background:
        linear-gradient(145deg,
            #f5f2ff,
            white);
}


.stat-card:nth-child(2) p {
    color:
        var(--purple);
}


.stat-card:nth-child(3) {
    border-left:
        4px solid var(--orange);

    background:
        linear-gradient(145deg,
            #fff8e9,
            white);
}


.stat-card:nth-child(3) p {
    color: #d97706;
}


.stat-card:nth-child(4) {
    border-left:
        4px solid var(--blue);

    background:
        linear-gradient(145deg,
            #eef7ff,
            white);
}


.stat-card:nth-child(4) p {
    color:
        var(--blue);
}


/* ==========================================================
   16. HOME RESULTS
========================================================== */

.results-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr) minmax(300px, 0.7fr);

    gap: 14px;

    align-items: start;
}


.results-grid .motif-results-card {
    border-top:
        3px solid var(--purple);
}


.results-grid .interpretation-card {
    border-top:
        3px solid var(--green);

    background:
        linear-gradient(145deg,
            rgba(236, 253, 245, 0.72),
            white 75%);
}


.motif-results-heading,
.explorer-table-heading,
.report-card-heading {
    margin-bottom: 9px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;
}


.motif-table-summary {
    margin-top: 3px;

    color:
        var(--text-light);

    font-size: 9px;
}


/* ==========================================================
   17. SHOW ALL / SHOW LESS BUTTON
========================================================== */

.motif-table-toggle-button,
.toggle-motif-button {
    min-height: 30px;

    padding:
        5px 10px;

    color: #4f46e5;

    background: #eef2ff;

    border:
        1px solid #a5b4fc;

    border-radius: 7px;

    font-size: 9px;

    font-weight: 700;

    white-space: nowrap;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.motif-table-toggle-button:hover,
.toggle-motif-button:hover {
    color: white;

    background:
        linear-gradient(135deg,
            var(--purple),
            var(--blue));

    border-color: transparent;
}


/* ==========================================================
   18. TABLES
========================================================== */

.table-container {
    width: 100%;

    overflow-x: auto;
}


table {
    width: 100%;

    border-collapse: separate;
    border-spacing: 0;

    border:
        1px solid var(--border);

    border-radius: 9px;

    overflow: hidden;
}


table th,
table td {
    padding:
        8px 9px;

    text-align: left;

    border-bottom:
        1px solid var(--border);
}


table th {
    color: #40506b;

    background: #f1f4ff;

    font-size: 9px;

    font-weight: 750;

    white-space: nowrap;
}


table td {
    color: #334155;

    font-size: 10px;
}


table tbody tr:last-child td {
    border-bottom: none;
}


table tbody tr:hover td {
    background: #f8faff;
}


/* ==========================================================
   19. MOTIF BADGES
========================================================== */

.motif-badge {
    display: inline-block;

    padding:
        3px 6px;

    border-radius: 5px;

    font-size: 9px;

    font-weight: 750;

    white-space: nowrap;
}


.gc-badge {
    color: #166534;

    background: #dcfce7;
}


.ccaat-badge {
    color: #1d4ed8;

    background: #dbeafe;
}


.caccc-badge {
    color: #b45309;

    background: #fef3c7;
}


.tata-badge {
    color: #7e22ce;

    background: #f3e8ff;
}


/* ==========================================================
   20. HOME INTERPRETATION
========================================================== */

.interpretation-card>p:not(.section-label) {
    margin:
        8px 0 12px;

    color: #526078;

    font-size: 10.5px;

    line-height: 1.7;
}


.interpretation-actions {
    margin-top: 12px;

    display: flex;

    gap: 7px;

    flex-wrap: wrap;
}


.download-btn {
    min-height: 33px;

    padding:
        6px 11px;

    color: white;

    background:
        linear-gradient(135deg,
            var(--purple),
            var(--blue));

    border: none;

    border-radius: 7px;

    font-size: 9px;

    font-weight: 700;
}


.explorer-button {
    color: #4f46e5;

    background: white;

    border:
        1px solid #818cf8;
}


/* ==========================================================
   21. NO ANALYSIS MESSAGE
========================================================== */

.no-analysis-message {
    width:
        min(92%, 700px);

    margin:
        35px auto;

    padding: 30px;

    text-align: center;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 13px;

    box-shadow:
        var(--shadow);
}


.no-analysis-message h2 {
    margin-bottom: 7px;

    color:
        var(--text-dark);

    font-size: 20px;
}


.no-analysis-message p {
    margin-bottom: 14px;

    color:
        var(--text-grey);

    font-size: 12px;
}


.no-analysis-message a {
    display: inline-flex;

    padding:
        7px 13px;

    color: white;

    background:
        linear-gradient(135deg,
            var(--purple),
            var(--blue));

    border-radius: 7px;

    text-decoration: none;

    font-size: 10px;

    font-weight: 700;
}


/* ==========================================================
   22. SEQUENCE EXPLORER LAYOUT
========================================================== */

.explorer-layout {
    width:
        min(97%, 1680px);

    margin:
        13px auto 35px;

    display: grid;

    grid-template-columns:
        225px minmax(0, 1fr);

    gap: 13px;
}


.explorer-sidebar {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.back-link {
    display: block;

    padding:
        9px 11px;

    color: #334155;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 8px;

    text-decoration: none;

    font-size: 10px;

    font-weight: 650;

    box-shadow:
        var(--shadow);
}


.back-link:hover {
    color:
        var(--purple);

    border-color:
        #a78bfa;
}


.sidebar-card {
    padding: 12px;
}


.sidebar-card h3 {
    margin-bottom: 8px;

    color:
        var(--text-dark);

    font-size: 12px;
}


.sidebar-row {
    padding:
        6px 0;

    display: flex;

    justify-content: space-between;

    gap: 9px;

    border-bottom:
        1px dashed #dce3ef;

    color:
        var(--text-grey);

    font-size: 9.5px;
}


.sidebar-row:last-child {
    border-bottom: none;
}


.sidebar-row strong {
    color:
        var(--text-dark);

    text-align: right;

    font-size: 9.5px;
}


.analysis-mode-box {
    padding: 9px;

    display: flex;

    flex-direction: column;

    gap: 2px;

    background: #f5f3ff;

    border:
        1px solid #ddd6fe;

    border-radius: 7px;
}


.analysis-mode-box strong {
    color:
        var(--purple);

    font-size: 11px;
}


.analysis-mode-box span {
    color:
        var(--text-grey);

    font-size: 8.5px;
}


.explorer-main {
    min-width: 0;
}


/* ==========================================================
   23. EXPLORER TOP STAT CARDS
========================================================== */

.explorer-stats {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 9px;

    margin-bottom: 10px;
}


.explorer-stat-card {
    min-height: 76px;

    padding:
        10px 12px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 9px;

    box-shadow:
        var(--shadow);
}


.explorer-stat-card span {
    color:
        var(--text-grey);

    font-size: 9px;

    font-weight: 650;
}


.explorer-stat-card strong {
    margin:
        2px 0;

    color: #14213e;

    font-size: 18px;
}


.explorer-stat-card small {
    color:
        var(--text-light);

    font-size: 8px;
}


.green-stat {
    border-top:
        3px solid #22c55e;
}


.purple-stat {
    border-top:
        3px solid #a855f7;
}


.blue-stat {
    border-top:
        3px solid #3b82f6;
}


.orange-stat {
    border-top:
        3px solid #f59e0b;
}


/* ==========================================================
   24. EXPLORER CARD
========================================================== */

.explorer-card {
    padding: 14px;
}


.section-heading {
    margin-bottom: 10px;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 12px;
}


/* ==========================================================
   25. MOTIF LEGEND
========================================================== */

.motif-legend {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

    color:
        var(--text-grey);

    font-size: 8.5px;
}


.motif-legend span {
    display: flex;

    align-items: center;

    gap: 4px;
}


.legend-box {
    width: 9px;
    height: 9px;

    display: inline-block;

    border-radius: 2px;
}


.gc-color {
    background: #22c55e;
}


.ccaat-color {
    background: #3b82f6;
}


.caccc-color {
    background: #f59e0b;
}


.tata-color {
    background: #a855f7;
}


/* ==========================================================
   26. TRACK INFORMATION
========================================================== */

.track-information {
    margin-bottom: 8px;

    padding:
        7px 9px;

    display: flex;

    gap: 15px;

    flex-wrap: wrap;

    background: #f8fafc;

    border:
        1px solid #e2e8f0;

    border-radius: 7px;

    color:
        var(--text-grey);

    font-size: 8.5px;
}


.track-information strong {
    margin-left: 4px;

    color:
        var(--text-dark);
}


/* ==========================================================
   27. DNA SEQUENCE VIEWER
========================================================== */

.real-sequence-wrapper {
    width: 100%;

    max-height: 390px;

    overflow: auto;

    background: #08172f;

    border:
        1px solid #183568;

    border-radius: 9px;
}


.real-sequence {
    min-width: 760px;

    padding:
        9px 10px;
}


.dna-sequence-row {
    min-height: 26px;

    display: grid;

    grid-template-columns:
        42px minmax(0, 1fr) 42px;

    align-items: center;

    gap: 7px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.04);
}


.dna-sequence-row:last-child {
    border-bottom: none;
}


.dna-row-position {
    color: #7f98c8;

    font-family:
        Consolas,
        monospace;

    font-size: 8px;

    text-align: right;
}


.dna-row-position-right {
    text-align: left;
}


.dna-row-bases {
    display: grid;

    grid-template-columns:
        repeat(60, minmax(8px, 1fr));

    align-items: center;
}


.dna-base {
    min-width: 8px;
    min-height: 18px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: #dbeafe;

    border-radius: 2px;

    font-family:
        Consolas,
        monospace;

    font-size: 9px;

    font-weight: 650;

    transition:
        transform 0.15s ease;
}


.dna-base:hover {
    transform:
        translateY(-1px);

    color: white;
}


.candidate-base {
    background:
        rgba(245, 158, 11, 0.08);

    box-shadow:
        inset 0 -2px 0 rgba(245, 158, 11, 0.5);
}


.explorer-gc-highlight {
    color: #052e16;

    background: #86efac;
}


.explorer-ccaat-highlight {
    color: #172554;

    background: #93c5fd;
}


.explorer-caccc-highlight {
    color: #78350f;

    background: #fcd34d;
}


.explorer-tata-highlight {
    color: #581c87;

    background: #d8b4fe;
}


.explorer-default-highlight {
    color: #172554;

    background: #cbd5e1;
}


.sequence-position-note {
    margin-top: 6px;

    color:
        var(--text-light);

    font-size: 8.5px;
}


/* ==========================================================
   28. SCORE BREAKDOWN
========================================================== */

.score-breakdown-card {
    margin-top: 10px;
}


.score-large-badge {
    padding:
        5px 9px;

    color: #4f46e5;

    background: #eef2ff;

    border-radius: 7px;

    font-size: 11px;

    font-weight: 750;
}


.score-meter {
    height: 8px;

    overflow: hidden;

    background: #e7edf6;

    border-radius: 30px;
}


.score-meter-fill {
    width: 0;
    height: 100%;

    background:
        linear-gradient(90deg,
            var(--blue),
            var(--purple));

    border-radius: inherit;

    transition:
        width 0.5s ease;
}


.score-scale,
.report-score-scale {
    margin-top: 4px;

    display: flex;

    justify-content: space-between;

    color:
        var(--text-light);

    font-size: 7.5px;
}


.score-reasons {
    margin-top: 9px;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 7px;
}


.score-reason-item {
    padding:
        8px;

    display: flex;

    gap: 7px;

    background: #f8fafc;

    border:
        1px solid #e2e8f0;

    border-radius: 7px;
}


.score-reason-icon {
    color:
        var(--green);

    font-size: 11px;

    font-weight: 800;
}


.score-reason-item strong {
    display: block;

    margin-bottom: 1px;

    color:
        var(--text-dark);

    font-size: 9px;
}


.score-reason-item p {
    color:
        var(--text-grey);

    font-size: 8.5px;

    line-height: 1.4;
}


.score-final-level {
    grid-column:
        1 / -1;

    padding:
        8px 10px;

    display: flex;

    justify-content: space-between;

    background: #eef2ff;

    border-radius: 7px;

    color: #475569;

    font-size: 9px;
}


.score-final-level strong {
    color:
        var(--purple);
}


/* ==========================================================
   29. EXPLORER LOWER GRID
========================================================== */

.explorer-real-grid {
    margin-top: 10px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.6fr) minmax(290px, 0.65fr);

    gap: 10px;

    align-items: start;
}


.motif-details-table {
    min-width: 790px;
}


/* ==========================================================
   30. INTERPRETATION MESSAGE
========================================================== */

.interpretation-message {
    margin-top: 8px;

    padding:
        9px;

    display: flex;

    flex-direction: column;

    gap: 2px;

    border-radius: 7px;
}


.interpretation-message strong {
    font-size: 9px;
}


.interpretation-message span {
    font-size: 8.5px;

    line-height: 1.45;
}


.info-message {
    color: #1e40af;

    background: #eff6ff;

    border:
        1px solid #93c5fd;
}


/* ==========================================================
   31. BATCH MAIN CONTAINER
========================================================== */

.real-batch-container {
    width:
        min(96%, 1600px);

    margin:
        13px auto 35px;
}


/* ==========================================================
   32. BATCH SUMMARY CARDS
========================================================== */

.real-batch-stats {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 9px;

    margin-bottom: 11px;
}


.batch-stat-card {
    min-height: 76px;

    padding:
        10px 12px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    border-radius: 9px;
}


.batch-stat-card span {
    color:
        var(--text-grey);

    font-size: 9px;

    font-weight: 650;
}


.batch-stat-card strong {
    margin:
        2px 0;

    color:
        var(--text-dark);

    font-size: 18px;
}


.batch-stat-card small {
    color:
        var(--text-light);

    font-size: 8px;
}


.green-batch-stat {
    border-top:
        3px solid #22c55e;
}


.blue-batch-stat {
    border-top:
        3px solid #3b82f6;
}


.purple-batch-stat {
    border-top:
        3px solid #8b5cf6;
}


.orange-batch-stat {
    border-top:
        3px solid #f59e0b;
}


.cyan-batch-stat {
    border-top:
        3px solid #06b6d4;
}


/* ==========================================================
   33. BATCH UPLOAD + SETTINGS GRID
========================================================== */

.real-batch-top-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.3fr) minmax(280px, 0.7fr);

    gap: 11px;

    margin-bottom: 11px;
}


.batch-card {
    padding: 14px;
}


/* ==========================================================
   34. BATCH DROP ZONE
========================================================== */

.real-batch-drop-zone {
    min-height: 185px;

    margin-top: 8px;

    padding: 20px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    background: #f8faff;

    border:
        2px dashed #9aaaf0;

    border-radius: 9px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


.real-batch-drop-zone.drag-active {
    background: #eef2ff;

    border-color:
        var(--purple);
}


.real-batch-upload-icon {
    margin-bottom: 3px;

    color: #6366f1;

    font-size: 30px;

    font-weight: 800;
}


.real-batch-drop-zone h3 {
    color:
        var(--text-dark);

    font-size: 13px;
}


.real-batch-drop-zone p {
    margin:
        3px 0 9px;

    color:
        var(--text-grey);

    font-size: 9.5px;
}


.real-batch-drop-zone small {
    margin-top: 7px;

    color:
        var(--text-light);

    font-size: 8px;
}


.upload-button {
    min-height: 32px;

    padding:
        6px 11px;

    color: white;

    background:
        linear-gradient(135deg,
            var(--purple),
            var(--blue));

    border: none;

    border-radius: 7px;

    font-size: 9px;

    font-weight: 700;
}


/* ==========================================================
   35. BATCH FILE INFORMATION
========================================================== */

.real-batch-file-info {
    margin-top: 8px;

    padding:
        8px 10px;

    display: flex;

    justify-content: space-between;

    gap: 10px;

    background: #ecfdf5;

    border:
        1px solid #86efac;

    border-radius: 7px;
}


.real-batch-file-info span {
    color:
        var(--text-grey);

    font-size: 8.5px;
}


.real-batch-file-info strong {
    color: #166534;

    font-size: 9px;

    text-align: right;
}


/* ==========================================================
   36. BATCH SETTINGS
========================================================== */

.real-batch-setting {
    margin-top: 10px;
}


.real-batch-setting label {
    display: block;

    margin-bottom: 4px;

    color: #334155;

    font-size: 9.5px;

    font-weight: 700;
}


.real-batch-setting select {
    width: 100%;

    min-height: 34px;

    padding:
        6px 9px;

    color: #334155;

    background: white;

    border:
        1px solid #cbd5e1;

    border-radius: 7px;

    outline: none;
}


.real-batch-setting p {
    margin-top: 5px;

    color:
        var(--text-light);

    font-size: 8.5px;

    line-height: 1.45;
}


.real-batch-mode {
    margin-top: 10px;

    padding: 10px;

    background: #f5f3ff;

    border:
        1px solid #ddd6fe;

    border-radius: 7px;
}


.real-batch-mode span {
    display: block;

    color:
        var(--text-grey);

    font-size: 8px;
}


.real-batch-mode strong {
    display: block;

    margin:
        2px 0;

    color:
        var(--purple);

    font-size: 11px;
}


.real-batch-mode p {
    color:
        var(--text-grey);

    font-size: 8.5px;

    line-height: 1.45;
}


.start-batch-button {
    width: 100%;

    min-height: 34px;

    margin-top: 10px;

    color: white;

    background:
        linear-gradient(135deg,
            var(--purple),
            var(--blue));

    border: none;

    border-radius: 7px;

    font-size: 9px;

    font-weight: 700;
}


/* ==========================================================
   37. BATCH PROGRESS
========================================================== */

.real-batch-progress-card {
    margin-bottom: 11px;
}


.batch-progress-heading {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 12px;
}


.batch-progress-heading strong {
    color: #4f46e5;

    font-size: 14px;
}


.overall-progress-bar {
    height: 8px;

    margin-top: 8px;

    overflow: hidden;

    background: #e7edf6;

    border-radius: 30px;
}


.overall-progress-bar>div {
    height: 100%;

    background:
        linear-gradient(90deg,
            var(--blue),
            var(--purple));

    border-radius: inherit;

    transition:
        width 0.3s ease;
}


#batchProgressText {
    margin-top: 5px;

    color:
        var(--text-grey);

    font-size: 8.5px;
}


/* ==========================================================
   38. BATCH RESULTS
========================================================== */

.real-batch-results-heading {
    margin-bottom: 9px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 15px;
}


.batch-results-description {
    margin-top: 3px;

    color:
        var(--text-light);

    font-size: 8.5px;
}


#batchSearch {
    width: 230px;

    min-height: 32px;

    padding:
        6px 9px;

    color: #334155;

    background: #fbfdff;

    border:
        1px solid #d7e0ed;

    border-radius: 7px;

    outline: none;

    font-size: 9px;
}


#batchSearch:focus {
    border-color:
        var(--purple);
}


.real-batch-results-table {
    min-width: 1050px;
}


.status-badge {
    display: inline-block;

    padding:
        3px 6px;

    border-radius: 20px;

    font-size: 8px;

    font-weight: 700;
}


.completed-badge {
    color: #166534;

    background: #dcfce7;
}


.batch-error-badge {
    display: inline-block;

    padding:
        3px 6px;

    color: #b91c1c;

    background: #fee2e2;

    border-radius: 20px;

    font-size: 8px;

    font-weight: 700;
}


.batch-open-result {
    min-height: 27px;

    padding:
        4px 8px;

    color: #4338ca;

    background: white;

    border:
        1px solid #a5b4fc;

    border-radius: 6px;

    font-size: 8px;

    font-weight: 700;
}


.batch-open-result:hover {
    color: white;

    background:
        linear-gradient(135deg,
            var(--purple),
            var(--blue));

    border-color: transparent;
}


/* ==========================================================
   39. REPORT HERO META
========================================================== */

.report-hero-meta {
    margin-top: 8px;

    display: flex;

    gap: 5px;

    flex-wrap: wrap;
}


.report-hero-meta span {
    padding:
        4px 7px;

    color: #cbd9f4;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid rgba(255, 255, 255, 0.13);

    border-radius: 6px;

    font-size: 7.5px;
}


.report-hero-meta strong {
    margin-left: 3px;

    color: white;
}


/* ==========================================================
   40. REPORTS MAIN CONTAINER
========================================================== */

.real-reports-container {
    width:
        min(96%, 1600px);

    margin:
        13px auto 35px;
}


/* ==========================================================
   41. REPORT STAT CARDS
========================================================== */

.real-report-stats {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 9px;

    margin-bottom: 10px;
}


.report-stat-card {
    min-height: 76px;

    padding:
        10px 12px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    border-radius: 9px;
}


.report-stat-card span {
    color:
        var(--text-grey);

    font-size: 9px;

    font-weight: 650;
}


.report-stat-card strong {
    margin:
        2px 0;

    color:
        var(--text-dark);

    font-size: 18px;
}


.report-stat-card small {
    color:
        var(--text-light);

    font-size: 8px;
}


.real-report-stats .report-stat-card:nth-child(1) {
    border-top:
        3px solid #6366f1;
}


.real-report-stats .report-stat-card:nth-child(2) {
    border-top:
        3px solid #2563eb;
}


.real-report-stats .report-stat-card:nth-child(3) {
    border-top:
        3px solid #8b5cf6;
}


.real-report-stats .report-stat-card:nth-child(4) {
    border-top:
        3px solid #10b981;
}


.real-report-stats .report-stat-card:nth-child(5) {
    border-top:
        3px solid #f59e0b;
}


/* ==========================================================
   42. REPORT EXPORT PANEL
========================================================== */

.export-panel {
    min-height: 65px;

    margin-bottom: 10px;

    padding:
        11px 14px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;
}


.export-panel p:not(.section-label) {
    margin-top: 2px;

    color:
        var(--text-grey);

    font-size: 8.5px;
}


.export-buttons {
    display: flex;

    gap: 5px;

    flex-wrap: wrap;
}


.export-buttons button,
.report-explorer-link {
    min-width: 54px;

    min-height: 30px;

    padding:
        5px 9px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 6px;

    font-size: 8px;

    font-weight: 700;
}


.export-buttons button {
    color: #4338ca;

    background: white;

    border:
        1px solid #a5b4fc;
}


.report-explorer-link {
    color: white;

    background:
        linear-gradient(135deg,
            var(--purple),
            var(--blue));

    text-decoration: none;
}


/* ==========================================================
   43. REPORT ANALYTICS GRID
========================================================== */

.real-report-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 10px;
}


.real-report-grid .report-card {
    min-height: 280px;

    padding: 15px;
}


/* ==========================================================
   44. REPORT DETAILS
========================================================== */

.report-detail-list {
    margin-top: 9px;
}


.report-detail-list>div {
    min-height: 35px;

    padding:
        7px 1px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    border-bottom:
        1px dashed #dbe4ef;

    color:
        var(--text-grey);

    font-size: 9px;
}


.report-detail-list>div:last-child {
    border-bottom: none;
}


.report-detail-list strong {
    color:
        var(--text-dark);

    font-size: 9px;
}


/* ==========================================================
   45. REPORT COMPOSITION
========================================================== */

.real-composition-layout {
    min-height: 220px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 25px;
}


.real-composition-circle {
    width: 145px;
    height: 145px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        conic-gradient(#2563eb 0% 50%,
            #8b5cf6 50% 100%);

    box-shadow:
        0 7px 20px rgba(37, 99, 235, 0.1);
}


.real-composition-circle>div {
    width: 90px;
    height: 90px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    background: white;

    border-radius: 50%;
}


.real-composition-circle strong {
    color:
        var(--text-dark);

    font-size: 17px;
}


.real-composition-circle span {
    color:
        var(--text-grey);

    font-size: 8px;
}


.base-count-list {
    display: grid;

    grid-template-columns:
        repeat(2, 74px);

    gap: 7px;
}


.base-count-list div {
    min-height: 42px;

    padding:
        8px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: #f8fafc;

    border:
        1px solid #e2e8f0;

    border-radius: 7px;
}


.base-count-list span,
.base-count-list strong {
    font-size: 9px;
}


.base-count-list span {
    color:
        var(--text-grey);
}


.base-count-list strong {
    color:
        var(--text-dark);
}


/* ==========================================================
   46. MOTIF FREQUENCY CHART
========================================================== */

.report-chart-description {
    max-width: 500px;

    margin-top: 4px;

    color: #748198;

    font-size: 8.5px;

    line-height: 1.45;
}


.real-frequency-chart {
    margin-top: 15px;

    display: flex;

    flex-direction: column;

    gap: 12px;
}


.frequency-report-label {
    margin-bottom: 4px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    color: #475569;

    font-size: 9px;
}


.frequency-report-label>div {
    display: flex;

    flex-direction: column;

    gap: 1px;
}


.frequency-motif-name {
    color: #334155;

    font-size: 9px;

    font-weight: 700;
}


.frequency-report-label small {
    color:
        var(--text-light);

    font-size: 7.5px;
}


.frequency-report-label strong {
    color: #4f46e5;

    font-size: 11px;
}


.frequency-report-track {
    height: 8px;

    overflow: hidden;

    background: #e7edf6;

    border-radius: 30px;
}


.frequency-report-track div {
    height: 100%;

    background:
        linear-gradient(90deg,
            var(--blue),
            var(--purple));

    border-radius: inherit;

    transition:
        width 0.5s ease;
}


/* ==========================================================
   47. REPORT SCORE
========================================================== */

.report-score-number {
    margin:
        16px 0 13px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;
}


.report-score-number strong {
    color: #4f46e5;

    font-size: 27px;

    letter-spacing: -0.7px;
}


.report-score-number span {
    padding:
        4px 7px;

    color: #4f46e5;

    background: #eef2ff;

    border-radius: 20px;

    font-size: 8px;

    font-weight: 650;
}


/* ==========================================================
   48. REPORT MOTIF TABLE
========================================================== */

.real-report-table-card {
    margin-bottom: 10px;

    padding: 15px;
}


.report-motif-table,
.real-report-table-card table {
    min-width: 840px;
}


/* ==========================================================
   49. REPORT INTERPRETATION
========================================================== */

.report-interpretation-panel {
    margin-bottom: 10px;

    padding: 15px;

    border-left:
        3px solid var(--blue);
}


.report-interpretation-panel>p:not(.section-label) {
    max-width: 1200px;

    margin:
        8px 0 10px;

    color: #526078;

    font-size: 10px;

    line-height: 1.65;
}


/* ==========================================================
   50. FOOTER
========================================================== */

.footer {
    min-height: 48px;

    padding:
        14px 5%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #cdd9f2;

    background:
        var(--navy);

    border-top:
        1px solid rgba(255, 255, 255, 0.08);

    text-align: center;

    font-size: 9px;
}


/* ==========================================================
   51. DESKTOP WIDE SCREEN
========================================================== */

@media (min-width: 1600px) {

    .home-page .container,
    .real-reports-container,
    .real-batch-container {
        width:
            min(95%, 1680px);
    }


    .explorer-layout {
        width:
            min(96%, 1750px);
    }
}


/* ==========================================================
   52. MEDIUM DESKTOP
========================================================== */

@media (max-width: 1200px) {

    .real-report-stats {
        grid-template-columns:
            repeat(3, 1fr);
    }


    .real-batch-stats {
        grid-template-columns:
            repeat(3, 1fr);
    }


    .explorer-stats {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .explorer-real-grid {
        grid-template-columns:
            1fr;
    }


    .score-reasons {
        grid-template-columns:
            1fr;
    }
}


/* ==========================================================
   53. TABLET / SMALL LAPTOP
========================================================== */

@media (max-width: 1000px) {

    .navbar {
        position: relative;

        align-items: flex-start;

        flex-direction: column;

        gap: 4px;

        padding:
            9px 4%;
    }


    nav {
        width: 100%;

        overflow-x: auto;

        gap: 20px;
    }


    nav a {
        padding:
            7px 0 10px;
    }


    nav a::after {
        bottom: 4px;
    }


    .page-hero {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }


    .top-grid,
    .results-grid,
    .real-batch-top-grid {
        grid-template-columns:
            1fr;
    }


    .overview-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .explorer-layout {
        grid-template-columns:
            1fr;
    }


    .explorer-sidebar {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .back-link {
        grid-column:
            1 / -1;
    }


    .real-report-grid {
        grid-template-columns:
            1fr;
    }


    .real-report-stats,
    .real-batch-stats {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* ==========================================================
   54. MOBILE
========================================================== */

@media (max-width: 650px) {

    .navbar {
        padding:
            9px 16px;
    }


    .logo h2 {
        font-size: 15px;
    }


    .home-page .hero {
        padding:
            21px 17px;
    }


    .home-page .hero h1 {
        font-size: 29px;
    }


    .page-hero {
        padding:
            17px;
    }


    .page-hero h1 {
        font-size: 27px;
    }


    .home-page .container,
    .explorer-layout,
    .real-batch-container,
    .real-reports-container {
        width: 94%;
    }


    .overview-grid,
    .summary-boxes,
    .explorer-stats,
    .real-batch-stats,
    .real-report-stats,
    .explorer-sidebar {
        grid-template-columns:
            1fr;
    }


    .back-link {
        grid-column: auto;
    }


    .real-composition-layout {
        flex-direction: column;

        min-height: auto;

        padding:
            15px 0;
    }


    .export-panel,
    .real-batch-results-heading,
    .motif-results-heading,
    .explorer-table-heading,
    .report-card-heading,
    .section-heading {
        align-items: stretch;

        flex-direction: column;
    }


    #batchSearch {
        width: 100%;
    }


    .hero-buttons button,
    .page-hero-buttons a,
    .page-hero-buttons button {
        width: 100%;
    }


    .page-hero-buttons {
        width: 100%;
    }


    .interpretation-actions {
        flex-direction: column;
    }


    .interpretation-actions button {
        width: 100%;
    }
}

/* ==========================================================
   PREMIUM DNA PARTICLE ANIMATION
========================================================== */

.reports-page-hero {
    position: relative;
    isolation: isolate;
}