@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
    --page-bg: #f3f7fb;
    --page-bg-deep: #dce8f5;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --surface-muted: #edf4fb;
    --text-main: #203246;
    --text-soft: #5f7388;
    --line-soft: rgba(73, 111, 145, 0.18);
    --brand: #2c6aa0;
    --brand-deep: #1f4f79;
    --brand-soft: #dcecf9;
    --accent: #d08b49;
    --shadow-soft: 0 18px 40px rgba(26, 59, 91, 0.12);
    --shadow-card: 0 22px 45px rgba(32, 62, 92, 0.14);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(132, 177, 220, 0.22), transparent 32%),
        radial-gradient(circle at top right, rgba(208, 139, 73, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fbfe 0%, var(--page-bg) 38%, #edf4fa 100%);
    color: var(--text-main);
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--brand-deep);
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

a:hover,
a:focus {
    color: var(--accent);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.card-header h3,
.section-heading {
    color: #17314e;
    font-family: 'Fraunces', Georgia, serif;
    letter-spacing: -0.02em;
}

p,
label,
li,
td,
th,
.card-body,
.card-footer,
.dropdown-item,
.nav-link,
.nav-link2 {
    color: var(--text-main);
}

.container {
    position: relative;
}

body > .container:not(.site-header-shell):not(.site-footer),
body > .container-fluid:not(.site-header-shell):not(.site-footer) {
    flex: 1;
    width: 100%;
    margin-top: 26px;
}

.site-header-shell {
    margin-top: 18px;
    margin-bottom: 8px;
}

.site-banner {
    display: block;
    width: 100%;
    border-radius: 28px 28px 0 0;
    box-shadow: var(--shadow-soft);
}

.site-nav {
    background: linear-gradient(135deg, #2f6d9f 0%, #214f7d 100%) !important;
    border-radius: 0 0 28px 28px;
    box-shadow: var(--shadow-soft);
}

.site-nav .container {
    padding-top: 0.95rem !important;
    padding-bottom: 0.95rem !important;
}

.nav-link2 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.96) !important;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.nav-link2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link2:hover::after,
.nav-link2:focus::after,
.nav-item.show .nav-link2::after {
    transform: scaleX(1);
}

.dropdown-menu {
    margin-top: 12px;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 18px 35px rgba(23, 49, 78, 0.16);
    padding: 10px;
}

.dropdown-item {
    border-radius: 10px;
    padding: 9px 12px;
    font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--brand-soft);
    color: var(--brand-deep);
}

.card,
.tree,
.sidebar .navbar,
.tab-content,
iframe,
.dataTables_wrapper,
.well {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(8px);
}

.card {
    overflow: hidden;
    margin-bottom: 18px;
}

.card-header,
.card-footer {
    background: linear-gradient(180deg, rgba(225, 238, 249, 0.96) 0%, rgba(243, 248, 253, 0.98) 100%);
    border-bottom: 1px solid var(--line-soft);
    border-top: 0;
    padding: 1rem 1.25rem;
}

.card-footer {
    border-top: 1px solid var(--line-soft);
}

.card-body {
    padding: 1.25rem 1.35rem;
}

.card-body,
.card-footer,
.table,
td,
th,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: anywhere;
}

.logo {
    position: relative;
    min-height: 210px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(rgba(20, 44, 66, 0.42), rgba(20, 44, 66, 0.42)), url(../images/logo.jpg) no-repeat center;
    background-size: cover;
    box-shadow: var(--shadow-soft);
}

.logo h1 {
    margin: 0;
    padding: 56px 20px;
    text-shadow: 0 10px 25px rgba(10, 28, 44, 0.35);
}

.logo a,
.logo font {
    color: #f9fbff !important;
}

.navbar-default,
.navbar.navbar-default {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(64, 103, 138, 0.14) !important;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.navbar-default .nav > li > a,
.nav-pills > li > a,
.navbar-default .navbar-nav > li > a {
    border-radius: 999px;
    color: var(--brand-deep) !important;
    font-weight: 600;
    margin: 6px 4px;
    padding: 10px 16px;
}

.navbar-default .nav > li > a:hover,
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li > a:hover,
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover {
    background: var(--brand-soft) !important;
    color: var(--brand-deep) !important;
}

.btn,
.button,
button.btn,
input[type="submit"],
input[type="button"] {
    border: 0;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(44, 106, 160, 0.16);
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.button:hover,
button.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(44, 106, 160, 0.2);
}

.btn-light,
.button {
    background: linear-gradient(135deg, #2f6d9f 0%, #1f527c 100%);
    color: #fff;
}

.btn-light:hover,
.btn-light:focus,
.button:hover,
.button:focus {
    background: linear-gradient(135deg, #d08b49 0%, #b87034 100%);
    color: #fff;
}

.form-control,
.bootstrap-select > .dropdown-toggle,
select,
input[type="text"],
input[type="search"],
textarea {
    min-height: 48px;
    border: 1px solid rgba(77, 116, 150, 0.22) !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control:focus,
.bootstrap-select > .dropdown-toggle:focus,
select:focus,
input[type="text"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: rgba(44, 106, 160, 0.45) !important;
    box-shadow: 0 0 0 0.18rem rgba(44, 106, 160, 0.14) !important;
}

label {
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #25415f;
}

.bootstrap-select .dropdown-menu {
    border-radius: 16px;
}

.table {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    overflow: hidden;
}

.table-responsive,
.dataTables_wrapper,
.dataTables_scrollBody {
    overflow-x: auto;
}

.table thead th,
.table thead td,
.dataTable thead th,
.dataTable thead td {
    background: linear-gradient(135deg, #2c6aa0 0%, #214f7d 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12) !important;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.table tbody tr td,
.table tbody tr th {
    vertical-align: middle;
    border-color: rgba(84, 122, 153, 0.12);
}

.table-striped > tbody > tr:nth-child(odd) > td,
.table-striped > tbody > tr:nth-child(odd) > th,
.table-striped2 > tbody > tr:nth-child(even) > td,
.table-striped2 > tbody > tr:nth-child(even) > th {
    background-color: rgba(217, 234, 248, 0.82);
}

.table-striped2 > thead > tr:nth-child(odd) > td,
.table-striped2 > thead > tr:nth-child(odd) > th {
    background-color: #5c91bf;
}

.table-striped2 > tbody > tr:nth-child(odd) > td,
.table-striped2 > tbody > tr:nth-child(odd) > th {
    background-color: rgba(243, 247, 251, 0.92);
}

.table-hover tbody tr:hover,
.table tbody tr:hover {
    background-color: rgba(245, 202, 158, 0.16);
}

.dataTables_wrapper {
    padding: 18px;
}

.dataTables_filter input,
.dataTables_length select {
    min-height: 38px;
}

.tree {
    min-height: 20px;
    padding: 24px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 246, 251, 0.9) 100%);
}

.tree ul {
    margin-bottom: 0;
}

.tree li {
    list-style-type: none;
    margin: 0;
    padding: 12px 6px 0 8px;
    position: relative;
}

.tree li::before,
.tree li::after {
    content: '';
    left: -18px;
    position: absolute;
    right: auto;
}

.tree li::before {
    border-left: 1px solid rgba(76, 117, 152, 0.34);
    bottom: 50px;
    height: 100%;
    top: 0;
    width: 1px;
}

.tree li::after {
    border-top: 1px solid rgba(76, 117, 152, 0.34);
    height: 20px;
    top: 27px;
    width: 23px;
}

.tree li span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(78, 118, 151, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-deep);
    font-weight: 600;
}

.tree li.parent_li > span {
    cursor: pointer;
}

.tree > ul > li::before,
.tree > ul > li::after {
    border: 0;
}

.tree li:last-child::before {
    height: 30px;
}

.tree li.parent_li > span:hover,
.tree li.parent_li > span:hover + ul li span {
    background: #eef6fd;
    border-color: rgba(44, 106, 160, 0.34);
    color: #17314e;
}

.icon-plus-sign,
.icon-minus-sign {
    display: inline-block;
    width: 16px;
    height: 16px;
}

.icon-plus-sign {
    background: url('../images/ico_small.png') left -44px no-repeat;
}

.icon-minus-sign {
    background: url('../images/ico_small.png') left 0 no-repeat;
}

ul.nav-tabs {
    width: auto;
    margin-top: 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

ul.nav-tabs li {
    margin: 0;
    border-top: 0;
}

ul.nav-tabs li a {
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
}

ul.nav-tabs li.active a,
ul.nav-tabs li.active a:hover {
    color: #fff;
    background: linear-gradient(135deg, #2c6aa0 0%, #214f7d 100%);
    border-color: transparent;
}

ul.nav-tabs.affix {
    top: 30px;
}

iframe {
    width: 100%;
    background: #fff;
    max-width: 100%;
    display: block;
}

.section-heading {
    font-size: 38px;
    font-weight: 700;
}

.enlarge {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.enlarge:hover {
    transform: translateY(-4px) scale(1.03);
}

.site-footer {
    padding-top: 18px;
    width: 100%;
}

.site-footer-shell {
    background: linear-gradient(135deg, rgba(222, 235, 247, 0.92) 0%, rgba(240, 246, 252, 0.96) 100%);
    border: 1px solid rgba(71, 110, 143, 0.14);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 14px 10px;
    margin-left: 0;
    margin-right: 0;
}

.site-footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer-logo img {
    filter: drop-shadow(0 8px 15px rgba(45, 76, 103, 0.15));
}

.site-footer-copy h5 {
    margin: 0;
    color: #24415f;
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-size: 18px;
    font-weight: 600;
    word-break: break-word;
}

.page-shell {
    width: 100%;
}

.home-page {
    margin-top: 32px !important;
}

.home-page .card,
.help-page .card,
.search-page .card,
.statistics-page .card,
.rf-statistics-page .card,
.subtype2gene-page .card {
    height: 100%;
}

.abbr-page .abbr-layout {
    margin-bottom: 24px;
}

.abbr-page .abbr-masonry {
    column-count: 2;
    column-gap: 20px;
}

.abbr-page .abbr-letter-card {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 22px;
}

.abbr-page .abbr-sidebar {
    border-radius: 16px;
    border: 1px solid rgba(58, 96, 128, 0.2);
    box-shadow: 0 16px 30px rgba(31, 67, 101, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 247, 253, 0.95) 100%);
}

.abbr-page .abbr-floating-index {
    position: fixed;
    top: 128px;
    right: max(14px, calc((100vw - 1140px) / 2 + 6px));
    width: 156px;
    z-index: 1000;
}

.abbr-page .abbr-sidebar-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    color: #17314e;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.abbr-page .abbr-index-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    max-height: calc(100vh - 230px);
    overflow-y: auto;
    padding-right: 2px;
}

.abbr-page .abbr-index-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(236, 244, 251, 0.95) 0%, rgba(223, 237, 249, 0.95) 100%);
    border: 1px solid rgba(73, 111, 145, 0.2);
    color: var(--brand-deep);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.abbr-page .abbr-index-link:hover,
.abbr-page .abbr-index-link:focus {
    background: linear-gradient(135deg, #2c6aa0 0%, #214f7d 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(34, 78, 114, 0.24);
}

.abbr-page .abbr-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c6aa0 0%, #214f7d 100%);
    color: #fff;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22px;
    margin-bottom: 14px;
}

.abbr-page .abbr-list {
    display: grid;
    gap: 10px;
}

.abbr-page .abbr-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(236, 244, 251, 0.82);
    border: 1px solid rgba(73, 111, 145, 0.14);
}

.abbr-page .abbr-item strong {
    display: block;
    color: var(--brand-deep);
}

.help-page .card-body,
.subtype2gene-page .card-body {
    padding: 1.5rem;
}

.search-page .search-card,
.statistics-page .stats-control-card,
.rf-statistics-page .stats-control-card,
.subtype2gene-page .chart-card {
    padding: 18px;
}

.search-page .tab-content,
.statistics-page .tab-content,
.rf-statistics-page .tab-content {
    padding: 20px;
}

.search-page .search-column,
.statistics-page .chart-column,
.rf-statistics-page .chart-column {
    margin-bottom: 24px;
}

.search-page .search-card .row > .col-12,
.statistics-page .stats-control-card .row > .col-12,
.rf-statistics-page .stats-control-card .row > .col-12 {
    margin-bottom: 14px;
}

.search-page .search-card .row > .col-12:last-child,
.statistics-page .stats-control-card .row > .col-12:last-child,
.rf-statistics-page .stats-control-card .row > .col-12:last-child {
    margin-bottom: 0;
}

.chart-card {
    padding: 14px;
}

.statistics-page .chart-card,
.rf-statistics-page .chart-card {
    padding: 0;
}

.chart-frame {
    overflow: hidden;
}

.chart-frame iframe {
    border: 0;
    border-radius: 16px;
    background: transparent;
}

.subtype2gene-page #gene {
    width: 100% !important;
}

.subtype2gene-page .dataTables_wrapper {
    margin-top: 12px;
}

@media (max-width: 991.98px) {
    .site-banner {
        border-radius: 22px 22px 0 0;
    }

    .site-nav {
        border-radius: 0 0 22px 22px;
    }

    .nav-link2 {
        display: inline-block;
        margin-bottom: 10px;
    }

    .logo h1 {
        padding: 42px 18px;
        font-size: 52px;
    }

    body > .container:not(.site-header-shell):not(.site-footer),
    body > .container-fluid:not(.site-header-shell):not(.site-footer) {
        margin-top: 22px;
    }
}

@media (max-width: 767.98px) {
    body {
        background: linear-gradient(180deg, #f7fbff 0%, #eef4fa 100%);
    }

    .card,
    .tree,
    .sidebar .navbar,
    .tab-content,
    iframe,
    .dataTables_wrapper,
    .well {
        border-radius: 18px;
    }

    .section-heading {
        font-size: 28px;
    }

    .logo h1 {
        font-size: 36px;
    }

    ul.nav-tabs {
        width: 100%;
    }

    .site-footer-copy h5 {
        font-size: 15px;
        line-height: 1.5;
    }

    .home-page {
        margin-top: 22px !important;
    }

    .search-page .tab-content,
    .statistics-page .tab-content,
    .rf-statistics-page .tab-content {
        padding: 16px;
    }

    .abbr-page .abbr-masonry {
        column-count: 1;
        column-gap: 0;
    }

    .abbr-page .abbr-sidebar {
        position: static;
    }

    .abbr-page .abbr-floating-index {
        position: static;
        width: 100%;
        margin-bottom: 14px;
    }

    .abbr-page .abbr-index-list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        max-height: none;
        overflow: visible;
    }
}