/* Hover effect for Simulate button */
#run-button:hover {
    background-color: #1d4fa8 !important;
    border-color: #1d4fa8 !important;
    transform: scale(1.03);
    transition: all 0.15s ease-in-out;
}

#run-button-gen:hover {
    background-color: #1d4fa8 !important;
    border-color: #1d4fa8 !important;
    transform: scale(1.03);
    transition: all 0.15s ease-in-out;
}

#run-button-benchmarking:hover {
    background-color: #1d4fa8 !important;
    border-color: #1d4fa8 !important;
    transform: scale(1.03);
    transition: all 0.15s ease-in-out;
}

.free-simulation-native-wrapper {
    position: relative;
    width: 100%;
}

.free-simulation-results-tabs,
.free-simulation-results-tabs.nav-tabs,
.free-simulation-results-tabs .nav-tabs {
    background-color: #173b78 !important;
    border-bottom: 0 !important;
    padding: 0.75rem 1.25rem;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    align-items: center;
}

.free-simulation-results-tabs .nav-item,
.free-simulation-results-tabs.nav-tabs .nav-item {
    margin-bottom: 0;
}

.free-simulation-results-tabs .nav-item + .nav-item,
.free-simulation-results-tabs.nav-tabs .nav-item + .nav-item {
    margin-left: 1.5rem;
}

.free-simulation-results-tabs .nav-link,
.free-simulation-results-tabs.nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font: inherit;
    font-weight: 400;
    background-color: transparent !important;
    margin-bottom: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    line-height: inherit;
    box-shadow: none !important;
    text-decoration: none;
}

.free-simulation-results-tabs .nav-link:hover,
.free-simulation-results-tabs.nav-tabs .nav-link:hover {
    color: #ffffff !important;
    background-color: transparent !important;
}

.free-simulation-results-tabs .nav-link.active,
.free-simulation-results-tabs .nav-item.show .nav-link,
.free-simulation-results-tabs.nav-tabs .nav-link.active,
.free-simulation-results-tabs.nav-tabs .nav-item.show .nav-link {
    color: #ffffff !important;
    background-color: transparent !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.22rem;
    text-decoration-thickness: 0.12rem;
}

.free-simulation-results-tabs .tab-content {
    padding: 1rem 1rem 0;
}

.freshwater-multi-select-wrapper .dropdown,
.freshwater-multi-select-wrapper .dropdown-toggle {
    width: 100%;
}

.freshwater-multi-select-toggle {
    height: 38px;
    border-color: #dee2e6 !important;
    border-radius: 0 0.375rem 0.375rem 0 !important;
    background-color: #ffffff !important;
    color: #212529 !important;
    text-align: left !important;
    font-weight: 400 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.freshwater-multi-select-toggle:hover,
.freshwater-multi-select-toggle:focus,
.freshwater-multi-select-toggle:active {
    border-color: #dee2e6 !important;
    background-color: #ffffff !important;
    color: #212529 !important;
    box-shadow: none !important;
}

.freshwater-multi-select-wrapper .dropdown-menu {
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
}

.freshwater-multi-select-checklist .form-check {
    margin-bottom: 0.35rem;
}

.free-simulation-productive-top-row {
    margin-top: 1.25rem;
    margin-left: 0.5rem;
}

.free-simulation-graph-controls {
    --free-simulation-button-font-size: 14px;
    --free-simulation-button-line-height: 1.2;
    --free-simulation-button-padding-y: 8px;
    --free-simulation-button-padding-x: 16px;
    --free-simulation-button-border-width: 1px;
    --free-simulation-slider-rail-height: 8px;
    --free-simulation-slider-handle-size: 16px;
    --free-simulation-slider-optical-offset: calc(
        (
            (var(--free-simulation-button-font-size) * var(--free-simulation-button-line-height))
            + (2 * var(--free-simulation-button-padding-y))
            + (2 * var(--free-simulation-button-border-width))
            - var(--free-simulation-slider-handle-size)
        ) / 2
    );
    --free-simulation-slider-visual-shift: calc(var(--free-simulation-slider-optical-offset) / 2);
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 90%;
    z-index: 10;
}

.free-simulation-play-pause-button {
    margin-right: 15px;
    padding: var(--free-simulation-button-padding-y) var(--free-simulation-button-padding-x);
    font-size: var(--free-simulation-button-font-size);
    line-height: var(--free-simulation-button-line-height);
    border-radius: 4px;
    border: var(--free-simulation-button-border-width) solid #173b78;
    cursor: pointer;
    background: #173b78;
    color: #ffffff;
}

.free-simulation-play-pause-button:hover {
    background: #1d4fa8;
    border-color: #1d4fa8;
    transform: scale(1.03);
    transition: all 0.15s ease-in-out;
}

.free-simulation-slider-wrapper {
    width: 70%;
    transform: translateY(var(--free-simulation-slider-visual-shift));
}

.free-simulation-slider-wrapper input[type='range'] {
    width: 100%;
    height: var(--free-simulation-slider-rail-height);
    margin: 0;
    border-radius: 4px;
    background: #e5ecf6;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.free-simulation-slider-wrapper input[type='range']::-webkit-slider-runnable-track {
    height: var(--free-simulation-slider-rail-height);
    border-radius: 4px;
    background: #e5ecf6;
}

.free-simulation-slider-wrapper input[type='range']::-moz-range-track {
    height: var(--free-simulation-slider-rail-height);
    border-radius: 4px;
    background: #e5ecf6;
}

.free-simulation-slider-wrapper input[type='range']::-webkit-slider-thumb {
    width: var(--free-simulation-slider-handle-size);
    height: var(--free-simulation-slider-handle-size);
    margin-top: calc(
        (var(--free-simulation-slider-rail-height) - var(--free-simulation-slider-handle-size)) / 2
    );
    border: 0;
    border-radius: 50%;
    background: #173b78;
    box-shadow: none;
    opacity: 1;
    appearance: none;
    -webkit-appearance: none;
}

.free-simulation-slider-wrapper input[type='range']::-moz-range-thumb {
    width: var(--free-simulation-slider-handle-size);
    height: var(--free-simulation-slider-handle-size);
    border: 0;
    border-radius: 50%;
    background: #173b78;
    box-shadow: none;
    opacity: 1;
}

.free-simulation-slider-wrapper input[type='range']:hover::-webkit-slider-thumb,
.free-simulation-slider-wrapper input[type='range']:focus::-webkit-slider-thumb,
.free-simulation-slider-wrapper input[type='range']:active::-webkit-slider-thumb,
.free-simulation-slider-wrapper input[type='range']:hover::-moz-range-thumb,
.free-simulation-slider-wrapper input[type='range']:focus::-moz-range-thumb,
.free-simulation-slider-wrapper input[type='range']:active::-moz-range-thumb {
    background: #173b78;
}

/* Avoid cross (+) and use default mouse icon */
.js-plotly-plot .nsewdrag,
.js-plotly-plot .ewdrag,
.js-plotly-plot .nsdrag,
.js-plotly-plot .draglayer,
.js-plotly-plot .zoomlayer {
    cursor: default !important;
}

/* Evitar cursor de mano en los íconos de la leyenda */
.js-plotly-plot .legendtoggle {
    cursor: default !important;
    pointer-events: none !important;
}
