html,
body {
    height: 100%;
}

.container {
    min-height: 95%;
}

.loader-container {
    padding: 50px;
}

.subInfoTitle {
    font-weight: bold;
    text-transform: capitalize;
}

.pieText {
    font-size: 1.5em;
    font-weight: bold;
}

.markerText {
    font-weight: bold;
}

.marker-source,
.marker-text-source,
.marker-target,
.marker-text-target,
.blockView-polylinks,
.blockView-markers {
    cursor: pointer;
}

.link {
    fill: none;
    stroke-opacity: .5;
    cursor: pointer;
}

.link-polygon {
    stroke: none;
    fill-opacity: .5;
    cursor: pointer;
}

.link.hiddenLink {
    stroke-opacity: .01;
    pointer-events: none;
}

.link-polygon.hiddenLink {
    fill-opacity: .01;
    pointer-events: none;
}

.link.activeLink.link.hiddenLink {
    stroke-opacity: .9;
    pointer-events: all;
}

.link-polygon.activeLink.link-polygon.hiddenLink {
    fill-opacity: .9;
    pointer-events: all;
}

.hover-link-polygon:hover {
    fill-opacity: .9;
}

.markersText {
    fill: white;
    font-weight: bold;
    font-size: 1.0em;
}

.darkPlot {
    background: #000000;
}

.filterContainer .select-wrapper input.select-dropdown {
    width: 95%;
}

.filterheader {
    margin-bottom: 1em;
    margin-top: 1em;
}

.darkThemeLabel {
    font-size: 1.5em;
}

.genomeViewSVG,
.dotViewSVG,
.chromosomeViewRootSVG,
.blockViewRoot {
    margin: 20px auto 40px auto;
    display: block;
    border-radius: 1em;
}

.chromosomeViewRootSVG,
.dotViewSVG,
.blockViewRoot {
    border: 2px solid silver;
}

.dot-plot-markers {
    fill: grey;
    font-weight: bold;
    font-size: 1.0em;
}

.alignment-link-lines {
    opacity: 0.5;
    cursor: pointer;
}

.footer-link {
    color: #38e346
}

.globalLegendBox {
    display: inline-block;
    min-width: 270px;
}

.brand-logo {
    margin-left: 10px;
}

#synVisio nav li>a {
    font-weight: bold;
}

#doc-root p,
#doc-root ul {
    font-size: 1.2em;
}

#doc-root ul {
    margin-left: 15px;
}

#doc-root li {
    list-style-type: disc;
}

.preloader-wrapper.active {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.alignment-link-lines {
    stroke: blue;
}

.darkPlot .alignment-link-lines {
    stroke: #00deff;
}

#tool-root {
    width: 100%;
}

polygon.blockView-polylinks {
    opacity: 0.75;
}

polygon.blockView-polylinks:hover {
    opacity: 1;
}

.axis--x text {
    fill: grey;
}

.axis--x path {
    stroke: grey;
}

.axis--x line {
    stroke: grey;
}


/* /////////////////////////////////// */


/* styling for d3 drag */

.ticks {
    font: 10px sans-serif;
}

.track,
.track-inset,
.track-overlay {
    stroke-linecap: round;
}

.track {
    stroke: #000;
    stroke-opacity: 0.3;
    stroke-width: 10px;
}

.track-inset {
    stroke: #ddd;
    stroke-width: 8px;
}

.track-overlay {
    pointer-events: stroke;
    stroke-width: 50px;
    stroke: transparent;
    cursor: pointer;
}

.handle {
    fill: #fff;
    stroke: #000;
    stroke-opacity: 0.5;
    stroke-width: 1.25px;
}


/* //////////////////////////////////////////////// */
/* ========================================= */
/* Ks Filter Slider Styles */
/* ========================================= */

.ks-filter-slider-container {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.slider-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
}

#reset-ks-filter {
    padding: 6px 16px;
    font-size: 13px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#reset-ks-filter:hover {
    background: #5a6268;
}

#reset-ks-filter i {
    font-size: 12px;
}

.slider-info {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
    font-size: 13px;
    color: #6c757d;
}

#ks-range-display {
    font-weight: 600;
    color: #2c7fb8;
    font-size: 14px;
}

#alignment-count-display {
    font-style: italic;
    font-size: 12px;
}

/* Brush styling */
.brush .selection {
    fill: #69b3a2 !important;
    fill-opacity: 0.3 !important;
    stroke: #2c7fb8 !important;
    stroke-width: 1px !important;
}

.brush .handle {
    fill: #2c7fb8 !important;
    stroke: white !important;
    stroke-width: 2px !important;
    rx: 4px !important;
}

.slider-axis path,
.slider-axis line {
    stroke: #adb5bd;
    stroke-width: 1px;
}

.slider-axis text {
    fill: #495057;
    font-size: 11px;
}

.slider-label {
    fill: #6c757d;
    font-size: 11px;
    font-weight: 400;
}

/* Dark theme support */
.darkPlot .ks-filter-slider-container {
    background: #2d3436;
    border-color: #495057;
}

.darkPlot .slider-header h5 {
    color: #e9ecef;
}

.darkPlot .slider-info {
    border-top-color: #495057;
    color: #adb5bd;
}

.darkPlot #ks-range-display {
    color: #69b3a2;
}

.darkPlot .slider-axis path,
.darkPlot .slider-axis line {
    stroke: #6c757d;
}

.darkPlot .slider-axis text,
.darkPlot .slider-label {
    fill: #e9ecef;
}

.darkPlot #reset-ks-filter {
    background: #495057;
    color: #e9ecef;
}

.darkPlot #reset-ks-filter:hover {
    background: #6c757d;
}

/* Ka/Ks Chart Container Styling */
.kaKsChartContainer {
    margin: 20px 0;
    padding: 10px;
}

.kaks-chart-container {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.chart-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #343a40;
}

.chart-controls label {
    margin-left: 15px;
    font-size: 13px;
    color: #495057;
}

.darkPlot .kaks-chart-container {
    background: #2d3436;
}

.darkPlot .chart-header {
    border-bottom-color: #495057;
}

.darkPlot .chart-header h4 {
    color: #e9ecef;
}

.darkPlot .chart-controls label {
    color: #adb5bd;
}
