
/*Home Intro*/

.row.fw-row .v-box-wrap .v-box-inner {
    padding: 12%;
}

.row.fw-row .v-box-wrap .v-box-inner.no-padding {
    padding: 0%;
}

.row.fw-row .v-box-wrap .col-sm-6 {
    padding-left: 0px;
    padding-right: 0px;
}

/*End Home Intro*/


.ui-widget-content a {
    color: #333333;
}

.ui-widget-content a:hover {
    color: #1dc6df;
}

    /*Custom Size*/
@media (min-width: 1200px) {
    .container {
        width: 1100px;
    }
}
@media only screen and (min-width: 1250px) {
    body.boxed-layout {
        width: 1140px;
    }

        body.boxed-layout header {
            max-width: 1140px;
        }
	
}

#loading {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.7;
    background-color: #fff;
    z-index: 99;
  }
  
  #loading-image {
    z-index: 100;
  }
.v-container{
    padding-top:70px !important;
    padding-bottom:70px !important;
}

.v-container-2x{
    padding-top:100px !important;
    padding-bottom:100px !important;
}

/* ============================================
   MINIMAL HERO SECTION ALTERNATIVES
   To use: add the class to .home-slider-wrap
   ============================================ */

/* Option 1: Gradient Blue (Minimal & Professional) */
.hero-gradient-blue {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #3182ce 100%) !important;
    background-image: none !important;
}

/* Option 2: DNA Helix Pattern (Subtle) */
.hero-dna-pattern {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a7c 100%) !important;
    background-image: none !important;
    position: relative;
}
.hero-dna-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Option 3: Dark Minimal */
.hero-dark-minimal {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    background-image: none !important;
}

/* Option 4: Teal/Cyan Gradient */
.hero-teal-gradient {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%) !important;
    background-image: none !important;
}

/* Option 5: Purple Science */
.hero-purple-science {
    background: linear-gradient(135deg, #2c1654 0%, #4a0080 50%, #7b2cbf 100%) !important;
    background-image: none !important;
}

/* Option 6: Clean White with subtle pattern */
.hero-clean-white {
    background: #f8f9fa !important;
    background-image: none !important;
}
.hero-clean-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%233182ce' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.hero-clean-white h1, .hero-clean-white h2, .hero-clean-white p {
    color: #1a365d !important;
}

/* Option 7: Animated Gradient (Modern) */
.hero-animated-gradient {
    background: linear-gradient(-45deg, #1a365d, #2c5282, #276749, #2d3748) !important;
    background-size: 400% 400% !important;
    background-image: none !important;
    animation: gradientShift 15s ease infinite;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   OVERALL AESTHETIC IMPROVEMENTS
   ============================================ */

/* System font: San Francisco on Apple, native UI font on other platforms */
html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
/* Improved Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #2d3748;
    line-height: 1.6;
    font-weight: 400;
}

/* Make images scale nicely on all screens */
img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1rem;
}

/* Shared page hero (used on contact, docs, terms) */
.page-hero {
    background: linear-gradient(160deg, #1a365d 0%, #2c5282 50%, #3182ce 100%);
    color: #fff;
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20m40 20V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.page-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    letter-spacing: -0.02em;
    color: #fff !important;
    position: relative;
}
.page-hero .lead {
    font-size: 1.05rem;
    margin: 0;
    color: rgba(255,255,255,0.92);
    position: relative;
}
.page-hero .sub {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: rgba(255,255,255,0.75);
    position: relative;
}

/* Improved Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.table thead th {
    background-color: #2d3748;
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 12px 15px;
}

.table-dark th {
    background-color: #1a365d !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f7fafc;
}

.table-striped tbody tr:hover {
    background-color: #edf2f7;
}

.table td, .table th {
    padding: 10px 15px;
    vertical-align: middle;
}

/* Section Headers */
.container-fluid h1,
.container-fluid h2 {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-top: 1.5rem;
}

/* Improved Buttons */
.btn-primary {
    background-color: #3182ce;
    border-color: #3182ce;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #2c5282;
    border-color: #2c5282;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Improved Form Inputs */
input[type="text"],
input[type="search"],
textarea {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: #3182ce;
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* Improved Cards/Panels */
.card, .panel, .alert {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Improved Tabs */
.nav-tabs {
    border-bottom: 2px solid #e2e8f0;
}

.nav-tabs .nav-link {
    color: #4a5568;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #3182ce;
    border-bottom-color: #3182ce;
    background-color: transparent;
}

.nav-tabs .nav-link.active {
    color: #3182ce;
    border-bottom: 2px solid #3182ce;
    background-color: transparent;
}

/* Tab Content */
.tab-content {
    padding: 20px 0;
}

/* Definition Lists (dl/dt/dd) */
dl.row dt {
    font-weight: 600;
    color: #4a5568;
}

dl.row dd {
    color: #2d3748;
}

/* External Links Section */
.external-links .btn {
    border-radius: 20px;
    font-size: 13px;
    padding: 6px 14px;
}

/* Footer Improvements */
footer.footer {
    background-color: #1a365d !important;
    color: #e2e8f0;
    padding: 20px 0;
}

footer.footer a {
    color: #90cdf4;
}

/* Header Improvements */
header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.navbar-nav .nav-link:hover {
    opacity: 0.8;
}

/* Search Box on Homepage */
#search input[type="text"] {
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Loader Improvements */
.loader {
    background-color: rgba(255,255,255,0.95) !important;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .container-fluid h1,
    .container-fluid h2 {
        font-size: 1.5rem;
    }

    .table td, .table th {
        padding: 8px 10px;
        font-size: 14px;
    }

    .nav-tabs .nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }

    dl.row dt, dl.row dd {
        font-size: 14px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: #3182ce;
    color: #fff;
}

/* ============================================
   gnomAD-STYLE INDEX PAGE
   ============================================ */

/* Hero Section */
.gidb-hero {
    background: #fff;
    padding: 40px 20px 40px;
    text-align: center;
    min-height: auto;
}

.gidb-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.gidb-hero .subtitle {
    font-size: 1.4rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* ADMIXTURE-style Population Illustration */
.gidb-illustration {
    max-width: 450px;
    margin: 0 auto 2.5rem;
}

.gidb-illustration svg {
    width: 100%;
    height: auto;
}

/* Search Container */
.gidb-search-container {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    display: flex;
    gap: 12px;
}

.gidb-search-input {
    flex: 1;
    padding: 16px 24px;
    font-size: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gidb-search-input:focus {
    border-color: #3182ce;
    outline: none;
    box-shadow: 0 0 0 3px rgba(49,130,206,0.15);
}

.gidb-search-input::placeholder {
    color: #a0aec0;
}

.gidb-search-btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    background-color: #3182ce;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gidb-search-btn:hover {
    background-color: #2c5282;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49,130,206,0.3);
}

/* Examples */
.gidb-examples {
    color: #718096;
    font-size: 0.95rem;
}

.gidb-examples a {
    color: #3182ce;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.gidb-examples a:hover {
    color: #2c5282;
    text-decoration: underline;
}

/* Stats Grid */
.gidb-stats-section {
    background: #fff;
    padding: 50px 20px;
}

.gidb-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.gidb-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gidb-stat-card:hover {
    box-shadow: 0 12px 30px rgba(49, 130, 206, 0.15);
    transform: translateY(-5px);
}

.gidb-stat-card .number {
    display: block;
    font-size: 2.75rem;
    font-weight: 700;
    color: #3182ce;
    line-height: 1.2;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.gidb-stat-card .label {
    display: block;
    color: #4a5568;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin-top: 4px;
}

/* Orange accent for middle card */
.gidb-stat-card.accent .number {
    color: #ed8936;
}

/* Decorative corner accents */
.gidb-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-top: 3px solid #3182ce;
    border-left: 3px solid #3182ce;
    border-radius: 12px 0 0 0;
    opacity: 0.3;
}

.gidb-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-bottom: 3px solid #3182ce;
    border-right: 3px solid #3182ce;
    border-radius: 0 0 12px 0;
    opacity: 0.3;
}

.gidb-stat-card.accent::before,
.gidb-stat-card.accent::after {
    border-color: #ed8936;
}

.gidb-stat-card.green-accent .number {
    color: #38a169;
}

.gidb-stat-card.green-accent::before,
.gidb-stat-card.green-accent::after {
    border-color: #38a169;
}

/* Glow effect on hover */
.gidb-stat-card .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(49,130,206,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gidb-stat-card:hover .card-glow {
    opacity: 1;
}

/* About Section */
.gidb-about {
    background: #fafbfc;
    padding: 60px 20px;
}

.gidb-about-inner {
    max-width: 800px;
    margin: 0 auto;
}

.gidb-about h2 {
    color: #1a365d;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.gidb-about p {
    color: #2d3748;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.gidb-about p:last-child {
    margin-bottom: 0;
}

/* Footer */
.gidb-footer {
    background: #1a365d;
    color: #e2e8f0;
    padding: 24px 20px;
    text-align: center;
}

.gidb-footer a {
    color: #90cdf4;
    text-decoration: none;
}

.gidb-footer a:hover {
    text-decoration: underline;
}

/* Header Slim */
.gidb-header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 4px 0;
    height: auto;
}

.gidb-header .navbar {
    min-height: 48px;
    padding: 0;
}

.gidb-header .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: -0.01em;
}

.gidb-header .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 12px !important;
    transition: color 0.2s ease;
}

/* Ensure mobile navbar toggle is visible and usable */
.gidb-header .navbar-toggler {
    border-color: rgba(255,255,255,0.7);
}
.gidb-header .navbar-toggler-icon {
    width: 1.6rem;
    height: 1.6rem;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.gidb-header .nav-link:hover {
    color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .gidb-hero {
        padding: 50px 16px 40px;
    }

    .gidb-hero h1 {
        font-size: 2.5rem;
    }

    .gidb-hero .subtitle {
        font-size: 1.1rem;
    }

    .gidb-illustration {
        max-width: 100%;
        margin: 0 auto 1.5rem;
    }

    .gidb-search-container {
        flex-direction: column;
    }

    .gidb-search-input {
        font-size: 16px;
        padding: 14px 18px;
    }

    .gidb-search-btn {
        padding: 14px 24px;
    }

    .gidb-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gidb-stat-card {
        padding: 20px 16px;
    }

    .gidb-stat-card .number {
        font-size: 2.25rem;
    }

    .gidb-about {
        padding: 40px 16px;
    }

    .gidb-about h2 {
        font-size: 1.5rem;
    }

    .gidb-about p {
        font-size: 1rem;
    }
}

/* ============================================
   ACHIEVEMENTS MINI-CARDS
   ============================================ */
.gidb-achievements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 1.5rem 0;
}

.gidb-achievement-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gidb-achievement-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.gidb-achievement-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #3182ce;
    margin-bottom: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.gidb-achievement-text {
    display: block;
    font-size: 0.88rem;
    color: #4a5568;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .gidb-achievements {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ============================================
   CITATION CARD
   ============================================ */
.gidb-citation-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3182ce;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.gidb-citation-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 6px;
    line-height: 1.4;
}

.gidb-citation-authors {
    font-size: 0.92rem;
    color: #4a5568;
    margin-bottom: 4px;
}

.gidb-citation-journal {
    font-size: 0.92rem;
    color: #718096;
    font-style: italic;
    margin-bottom: 4px;
}

.gidb-citation-doi a {
    font-size: 0.88rem;
    color: #3182ce;
    text-decoration: none;
}

.gidb-citation-doi a:hover {
    text-decoration: underline;
}

/* ============================================
   POPULATION FREQUENCY PANELS (results.php)
   ============================================ */
.pop-freq-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 1.5rem 0;
}

.pop-freq-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
}

.pop-freq-biogeo {
    border-top: 4px solid #3182ce;
}

.pop-freq-ling {
    border-top: 4px solid #ed8936;
}

.pop-freq-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pop-freq-biogeo h3 {
    color: #2c5282;
}

.pop-freq-ling h3 {
    color: #c05621;
}

.pop-freq-group {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.pop-freq-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pop-freq-group-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: #1a365d;
    margin-bottom: 6px;
}

.pop-freq-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-size: 0.85rem;
    color: #4a5568;
}

.pop-freq-row .pop-freq-label {
    width: 120px;
    min-width: 120px;
    flex-shrink: 0;
    color: #718096;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pop-freq-bar-wrap {
    flex: 1;
    height: 18px;
    background: #e8ecf1;
    border-radius: 4px;
    overflow: hidden;
    min-width: 80px;
}

.pop-freq-bar-zero {
    background: #d1d5db;
}

.pop-freq-bar {
    display: block;
    height: 100%;
    border-radius: 4px;
    min-width: 0;
    transition: width 0.4s ease;
    background: linear-gradient(90deg, #5a8fb8, #8bb5d4);
}

.pop-freq-biogeo .pop-freq-bar {
    background: linear-gradient(90deg, #4a7a9b, #7daec5);
}

.pop-freq-ling .pop-freq-bar {
    background: linear-gradient(90deg, #b07840, #cda070);
}

.pop-freq-value {
    min-width: 85px;
    text-align: right;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    color: #2d3748;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .pop-freq-panels {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   gnomAD-STYLE GENE TRACK (Highcharts-based)
   ============================================ */
.gene-track-container {
    margin-bottom: 0;
}
.gene-track-container .highcharts-background {
    fill: #f7fafc;
}
.gene-track-container .highcharts-plot-border {
    stroke: none;
}

/* ============================================
   gnomAD-STYLE PILL STRIP FILTERS
   ============================================ */
.gnomad-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 18px;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 18px;
}

.filter-strip-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-strip-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.filter-pill-strip {
    display: flex;
    flex-wrap: wrap;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #4a5568;
    background: #fff;
    border: 1.5px solid #cbd5e0;
    border-left-width: 0;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    margin: 0;
}

.filter-pill:hover {
    background: #edf2f7;
}

.filter-pill-first {
    border-left-width: 1.5px;
    border-radius: 16px 0 0 16px;
}

.filter-pill-last {
    border-radius: 0 16px 16px 0;
}

.filter-pill input[type="checkbox"] {
    display: none;
}

.pill-check {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 2px solid var(--pill-color, #cbd5e0);
    background: #fff;
    position: relative;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.filter-pill input[type="checkbox"]:checked ~ .pill-check {
    background: var(--pill-color, #3182ce);
    border-color: var(--pill-color, #3182ce);
}

.filter-pill input[type="checkbox"]:checked ~ .pill-check::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0px;
    width: 5px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-pill input[type="checkbox"]:checked ~ .pill-text {
    color: #1a202c;
    font-weight: 600;
}

.pill-text {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .gnomad-filter-bar {
        flex-direction: column;
        gap: 12px;
    }
    .filter-pill-strip {
        flex-wrap: wrap;
    }
    .filter-pill {
        font-size: 0.72rem;
        padding: 4px 8px;
    }
}

/* ============================================
   CLINICAL & PREDICTION TOOLS (results.php)
   ============================================ */

/* Section wrapper */
.clinpred-section {
    margin-bottom: 28px;
}

.clinpred-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 16px;
    border-bottom: none;
    padding-bottom: 0;
}

.clinpred-section-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* --- ClinVar Card --- */
.clinvar-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.clinvar-card-top {
    padding: 16px 20px;
    background: #fafbfc;
    border-bottom: 1px solid #e2e8f0;
}

.clinvar-sig-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.clinvar-card-body {
    padding: 16px 20px;
}

.clinvar-detail {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.clinvar-detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.clinvar-detail-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #718096;
    min-width: 100px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.clinvar-detail-value {
    font-size: 0.92rem;
    color: #2d3748;
    word-break: break-word;
}

.clinvar-detail-value a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
}

.clinvar-detail-value a:hover {
    text-decoration: underline;
}

/* --- Prediction Tools Grid --- */
.pred-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.pred-tool-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pred-tool-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.pred-tool-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pred-tool-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a365d;
    line-height: 1.2;
    font-family: 'Courier New', monospace;
}

.pred-tool-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
}

.pred-tool-extra {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 2px;
}

.pred-tool-extra-label {
    font-weight: 600;
}

/* --- Conservation Scores Grid --- */
.conservation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.conservation-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.conservation-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.conservation-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a365d;
}

.conservation-subtitle {
    font-size: 0.75rem;
    color: #a0aec0;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.conservation-score {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    font-family: 'Courier New', monospace;
    margin-bottom: 8px;
}

.conservation-bar-wrap {
    height: 6px;
    background: #edf2f7;
    border-radius: 3px;
    overflow: hidden;
}

.conservation-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .pred-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .conservation-grid {
        grid-template-columns: 1fr 1fr;
    }
    .clinvar-detail {
        flex-direction: column;
        gap: 4px;
    }
}

/* ============================================
   GLOBAL RESPONSIVE IMPROVEMENTS
   ============================================ */

/* Ensure tables scroll horizontally on small screens */
.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Variant page: make quality parameter charts leave room above footer */
.quality-tabs {
    min-height: 360px;
    margin-top: 10px;
    margin-bottom: 32px;
}
@media (max-width: 768px) {
    .quality-tabs {
        min-height: 420px;
        margin-bottom: 40px;
    }
}

/* DataTables responsive override */
div.dataTables_wrapper {
    overflow-x: auto;
}

@media (max-width: 768px) {
    /* Tables: allow horizontal scroll, reduce font */
    .dataTables_wrapper {
        font-size: 0.85rem;
    }
    .dataTables_wrapper .dataTables_filter input {
        width: 120px !important;
    }
    .dataTables_wrapper .dataTables_length select {
        min-width: 50px;
    }
    /* Highcharts responsive */
    .highcharts-container {
        max-width: 100% !important;
    }
    /* Pop freq panels responsive labels */
    .pop-freq-row .pop-freq-label {
        width: 90px;
        min-width: 90px;
        font-size: 0.75rem;
    }
    .pop-freq-value {
        min-width: 70px;
        font-size: 0.75rem;
    }
    .pop-freq-card {
        padding: 16px 12px;
    }
    .pop-freq-card h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .pred-tools-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .pred-tool-card {
        padding: 12px 10px;
    }
    .pred-tool-score {
        font-size: 1.2rem;
    }
    .conservation-grid {
        grid-template-columns: 1fr;
    }
    /* Frequency bar adjustments */
    .pop-freq-row {
        flex-wrap: wrap;
        gap: 4px;
    }
    .pop-freq-row .pop-freq-label {
        width: 100%;
        min-width: unset;
    }
    .pop-freq-bar-wrap {
        min-width: 60px;
    }
}