/* >>> Bootstrap override */
.modal-content {
    background-color: #5b646d;
}

.nav-link {
    white-space: nowrap;
}

.btn-primary {
    background-color: #144b9d;
    border-color: #15458d;
}

.btn-primary:hover {
    background-color: #175abf;
}

/* <<< Bootstrap override */

/* MAIN SETTINGS START */
body {
    background: #050A0B;
    backdrop-filter: brightness(0.8);
    background-size: cover;
    color: #fff;
}

.no-wrap {
    white-space: nowrap;
}

.highlight-column {
    background-color: rgb(203, 199, 150, .15) !important;
}

.page-container {
    height: calc(100vh - 57px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbc790 #676767;
}

.tab-link:not(.navbar-text) > i, .tab-link > span {
    display: inline-block;
    vertical-align: middle;
}

.tab-link > span {
    font-size: 13px;
    max-width: 120px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.form-floating > label {
    color: #333;
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.form-floating {
    width: 300px;
    max-width: 100%;
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    box-sizing: border-box;
}

.table {
    color: #cfcfcb;
    --bs-table-hover-color: #fff;
    --bs-table-hover-bg: rgba(255, 255, 255, .2);
}

.scrollable-dropdown {
    height: 250px;
    overflow-y: scroll;
}

.scroller {
    scrollbar-width: thin;
    scrollbar-color: white black;
}

th:hover {
    cursor: pointer;
}

header {
    height: 60px;
    position: fixed;
    background-color: #050A0B;
    width: 100vw;
    margin: 0;
    padding: 0;
    top: 0;
}

.exchanges-dropdown {
    height: 300px;
    overflow-y: scroll;
}

.fs-13 {
    font-size: 13px;
}

.text-center {
    text-align: center;
}

.flt-rg {
    float: right;
}

.cursor-pointer:hover {
    cursor: pointer;
}

.filterDropdown {
    width: 10rem;
}

.dropdown-menu-filters {
    overflow-y: auto;
    margin-left: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
}

.dropdown-menu-filters-sm {
    max-height: 20rem;
    width: 10rem;
}

.dropdown-menu-filters-md {
    max-height: 40rem;
    width: 20rem;
}

.dropdown-menu-filters-lg {
    max-height: 60rem;
    width: 40rem;
}

.tabs-container {
    max-width: 65vw;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
}

/* MAIN SETTINGS END */

/* AUTH SETTINGS START */
#authPage {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #050A0B url('/assets/img/authBg.jpg') fixed;
    background-size: cover; /* ключевое свойство */
    background-position: center center;
    background-repeat: no-repeat;
}

#authForm {
    margin: 0 auto;
    position: relative;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.jelly-container {
    display: block;
    position: relative;
    width: 450px;
    max-width: 90vw;
    padding: 3px;
    border-radius: 24px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 1s ease;
    box-shadow:
            0 0 15px rgba(120, 119, 198, 0.2),
            inset 0 0 10px rgba(120, 119, 198, 0.05);
}

.jelly-container:hover {
    animation: jelly-pulse 3s ease-in-out infinite;
    transform: scale(1.02);
}

@keyframes jelly-pulse {
    0%, 100% {
        box-shadow:
                0 0 25px rgba(120, 119, 198, 0.35),
                0 0 40px rgba(120, 119, 198, 0.2),
                inset 0 0 18px rgba(120, 119, 198, 0.12);
    }
    25% {
        box-shadow:
                0 0 20px rgba(120, 119, 198, 0.28),
                0 0 35px rgba(120, 119, 198, 0.16),
                inset 0 0 15px rgba(120, 119, 198, 0.09);
    }
    50% {
        box-shadow:
                0 0 15px rgba(120, 119, 198, 0.2),
                0 0 30px rgba(120, 119, 198, 0.12),
                inset 0 0 12px rgba(120, 119, 198, 0.06);
    }
    75% {
        box-shadow:
                0 0 20px rgba(120, 119, 198, 0.28),
                0 0 35px rgba(120, 119, 198, 0.16),
                inset 0 0 15px rgba(120, 119, 198, 0.09);
    }
}

.jelly-inner {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 21px;
    padding: 40px 45px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#titleAuth {
    background: white;
    border-radius: 30px;
    width: 300px;
    max-width: 100%;
    text-align: center;
    color: black;
    font-size: 17px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding: 0 20px;
    box-sizing: border-box;
}

#authBtn {
    background: white;
    color: black;
    border-radius: 30px;
    border: 2px solid black;
    width: 300px;
    max-width: 100%;
    font-size: 17px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

#authBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

/* Для мобильных устройств */
@media (max-width: 480px) {
    .jelly-container {
        width: 100%;
        max-width: 350px;
    }

    .jelly-inner {
        padding: 30px 20px;
    }

    #titleAuth, #authBtn, .form-floating {
        width: 100%;
    }
}

.preloader {
    background-color: rgba(0, 0, 0, .5);
    z-index: 9999;
}

.preloader::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 6px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

.preloader.p-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.preloader.p-relative {
    position: relative;
    top: 50%;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* AUTH SETTINGS END */

/* HEADER SETTINGS START */
#homeBtn {
    margin-left: 30px;
    width: 90px;
}

#dataBtn {
    margin-right: 10px;
    width: 150px;
}

#timeBtn {
    margin-right: 10px;
}

#reloadBtn {
    width: 60px;
    margin-right: 50px;
}

#timeBtn:hover {
    cursor: text;
}

.header-btn {
    margin-top: 10px;
}

#selectExchange {
    width: 150px;
    text-align: left;
    display: inline;
    border-radius: 30px;
    float: right;
    margin-right: 11px;
}

#selectCountRows {
    width: 150px;
    text-align: center;
    display: inline;
    border-radius: 30px;
    float: right;
    margin-right: 11px;
}

.active-tab {
    background-color: rgb(87 87 87);
    border-radius: 10px;
}

#selectExchange:hover {
    cursor: pointer;
}

.ticker-menu:hover {
    cursor: auto;
}

/* HEADER SETTINGS END */

/* >>> Aggregation table */
.agg-table .colored {
    text-align: center;
    font-weight: bold;
}

.agg-table th, .agg-table td {
    vertical-align: middle;
    border-right: 1px solid rgba(255, 255, 255, .2);
}

.agg-table th:last-child, .agg-table td:last-child {
    border-right: none;
}

.agg-table-header > i.sort-enabled {
    color: #5e00ff;
}

.ticker-exchanges-table-header > i.sort-enabled {
    color: #5e00ff;
}

.show-filter-window.enabled {
    color: #bf443e;
}

.values-best td.colored {
    color: #f67c0f;
}

.values-good td.colored {
    color: #fdbf1d;
}

.values-neutral td.colored {
    color: #48be6d;
}

.values-bad td.colored {
    color: #38568a;
}

.values-trash td.colored {
    color: #7d7575;
}

.circle {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 4px;
}

.circle.red {
    background-color: red;
}

.circle.yellow {
    background-color: yellow;
}

.aggregator-header {
    display: inline;
    vertical-align: middle;
}

#contextMenu {
    position: absolute;
    z-index: 1000;
    display: none; /* Скрыто по умолчанию */
}

#contextMenu ul {
    background-color: black;
    list-style-type: none;
    margin: 0;
    padding: 0;
    border-radius: 4px; /* Закругленные углы */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Тень для меню */
}

#contextMenu li {
    margin: 0; /* Убираем отступы между элементами списка */
}

#contextMenu li a {
    display: block; /* Делаем ссылку блочным элементом */
    color: white;
    text-decoration: none; /* Убираем подчеркивание */
    padding: 12px 16px; /* Внутренние отступы */
    transition: background-color 0.2s; /* Плавный переход при наведении */
}

#contextMenu li a:hover {
    background-color: #121212; /* Цвет фона при наведении */
}

#contextMenu li svg {
    margin-right: 8px; /* Отступ между иконкой и текстом */
    vertical-align: middle; /* Вертикальное выравнивание иконки */
}

/* <<< Aggregation table */

/* >>> Raw data table */
.raw-table {
    font-size: 13px;
    color: #cbc790;
}

/* <<< Raw data table */


/* GRAPH SCREEN SETTINGS START */
.radio-group-graph {
    display: flex;
    justify-content: space-between;
}

.radio-btn {
    font-weight: bold;
    padding: 0.5rem 1rem;
    width: 10rem;
    height: 2.5rem;
    border-radius: 30px;
    color: transparent;
    border-color: transparent;
    transition: all 0.3s ease-out;
    position: relative;
    cursor: pointer;
    margin-left: 10px;
    text-align: center;
}

.radio-btn-white {
    color: white;
    border-color: white;
}

.radio-btn-white.active,
.radio-btn-white:hover {
    color: black;
    background-color: white;
    box-shadow: 0 0 0 0.25rem rgba(83, 171, 255, 0.15), 0 0 20px 1px rgba(83, 171, 255, 0.5), inset 0 0 30px 2px rgba(83, 171, 255, 0.5);
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.52), transparent);
}

.radio-btn-green {
    color: #68ff63;
    border-color: #68ff63;
}

.radio-btn-green.active,
.radio-btn-green:hover {
    color: black;
    background-color: #68ff63;
    box-shadow: 0 0 0 0.25rem rgba(104, 255, 99, 0.15), 0 0 20px 1px rgba(104, 255, 99, 0.5), inset 0 0 30px 2px rgba(255, 255, 255, 0.5);
    background-image: radial-gradient(circle at 50% 50%, rgba(104, 255, 99, 0.1), transparent);
}

.radio-btn-red {
    color: #e12222;
    border-color: #e12222;
}

.radio-btn-red.active,
.radio-btn-red:hover {
    color: black;
    background-color: #e12222;
    box-shadow: 0 0 0 0.25rem rgba(225, 34, 34, 0.15), 0 0 20px 1px rgba(225, 34, 34, 0.5), inset 0 0 30px 2px rgba(255, 255, 255, 0.5);
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), transparent);
}

[type="radio"]:checked + .radio-btn-white {
    color: black;
    background-color: white;
}

[type="radio"]:checked + .radio-btn-green {
    color: black;
    background-color: #68ff63;
}

[type="radio"]:checked + .radio-btn-red {
    color: black;
    background-color: #e12222;
}

/* GRAPH SCREEN SETTING END */

/* TICKERS AND EXCHANGES SCREEN SETTING START */
.ticker-exchanges-table .highlight:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, .2);
}

.ticker-exchanges-table .highlight {
    position: relative;
}

.ticker-exchanges-table {
    font-size: 13px;
}

.ticker-exchanges-table th {
    white-space: nowrap;
    background: #000;
    text-align: center;
    vertical-align: middle;
}

.ticker-exchanges-table-info {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #000;
    text-align: center;
    vertical-align: middle;
    padding: 6px 8px;
    border-bottom: 1px solid #dee2e6;
    width: 100vw;
    left: 0;
    margin-left: calc(-50vw + 50%);
}

.ticker-exchanges-table td {
    text-align: center;
}

.ticker-exchanges-table td.ticker-title {
    cursor: pointer;
}

.ticker-exchanges-table th.highlight {
    background: #fff;
    color: #000;
}

.ticker-exchanges-table .ticker-title {
    white-space: nowrap;
    background: #000;
    position: sticky;
    left: 0;
    z-index: 1;
    font-weight: bold;
}

.ticker-exchanges-table .ticker-title.highlight {
    white-space: nowrap;
    background: #fff;
    color: #000;
    position: sticky;
    left: 0;
    z-index: 1;
    font-weight: bold;
}

.ticker-exchanges-table td.ticker-count {
    cursor: pointer;
}

.ticker-exchanges-table .ticker-count {
    white-space: nowrap;
    background: #000;
    position: sticky;
    left: 0;
    z-index: 1;
    font-weight: bold;
}

.ticker-exchanges-table .ticker-count.highlight  {
    white-space: nowrap;
    background: #fff;
    color: #000;
    position: sticky;
    left: 0;
    z-index: 1;
    font-weight: bold;
}

.ticker-on-exchange {
    text-align: center;
    cursor: pointer;
}

.accordion-body {
    color: #000000;
}

.ticker-on-exchange.frozen-state {
    background-color: rgba(0, 0, 255, 0.5);
}

.ticker-on-exchange.error-state {
    background-color: rgba(244, 51, 51, 0.5);
}

.ticker-on-exchange.success-state {
    background-color: rgba(47, 205, 47, 0.5);
}

.ticker-on-exchange.warning-state {
    background-color: rgba(234, 223, 17, 0.6);
}

.ticker-on-exchange.empty-state {
    background-color: rgb(166, 148, 166, 0.5);
}

.ticker-exchanges-table .highlight:hover:after {
    background: transparent !important;
}

.ticker-exchanges-table .ticker-on-exchange:hover:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid #fff;
}

.accordion-button {
    color: #6c757d;
}

.ticker-count {
    font-size: 14px;
    font-weight: bold;
    color: #cfcfcb;
    margin: 8px;
}

/* TICKERS AND EXCHANGES SCREEN SETTING END */

/* >>> Graph controls START */
.chart-controls {
    display: flex;
    gap: 2px;
    margin: 10px 0;
    padding: 2px;
    background: #222;
    border-radius: 8px;
}

.time-range-btn,
.value-range-btn {
    padding: 2px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.time-range-btn:hover,
.value-range-btn:hover {
    background: #e9e9e9;
}

.time-range-btn[data-active="true"],
.value-range-btn[data-active="true"] {
    background: #1d793f;
    color: white;
    border-color: #36c56b;
}

.chart-context-menu {
    position: absolute;
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 10000;
    min-width: 180px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    padding: 4px 0;
}

.chart-context-menu.visible {
    display: block;
}

.context-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    color: #e2e8f0;
    transition: all 0.2s ease;
    border-bottom: 1px solid #4a5568;
}

.context-menu-item:last-child {
    border-bottom: none;
}

.context-menu-item:hover {
    background-color: #4a5568;
    color: #ffffff;
}

.context-menu-item:active {
    background-color: #2c5282;
}

/* <<< Graph controls END */

/* >>> Graph page tables START */
table.graph-info {
    background: #222;
    margin: 15px 0;
    border-radius: 7px;
}

.bright-title {
    color: #fff;
    font-weight: bold;
}

.market-info {
    color: #d8d8d8;
    font-size: 12px;
}

.text-right {
    text-align: right;
}

table.graph-info th {
    border-bottom: 1px solid #3adb76;
    text-align: center;
}

table.graph-info td.border-right {
    border-right: 1px solid #3adb76;
}

table.graph-info td.ticker-plate {
    width: 125px;
    text-align: center;
    vertical-align: middle;
    font-size: 16px;
    font-weight: bold;
}

table.graph-info td.lp-title {
    color: rgb(58, 219, 118);
    font-weight: bold;
}

table.graph-info td.lp-data {
    background-color: rgba(58, 219, 118, .1);
}

table.graph-info td.sp-title {
    color: rgb(219, 58, 58);
    font-weight: bold;
}

table.graph-info td.sp-data {
    background-color: rgba(219, 58, 58, .1);
}

/* <<< Graph page tables END */

/* WIKI LINK */

.wiki-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.wiki-link:hover {
    color: #4da3ff; /* мягкий синий оттенок */
    text-decoration: underline;
}
/* >>> Graph controls START */
.chart-controls {
    display: flex;
    gap: 2px;
    margin: 10px 0;
    padding: 2px;
    background: #222;
    border-radius: 8px;
}

.time-range-btn,
.value-range-btn {
    padding: 2px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.time-range-btn:hover,
.value-range-btn:hover {
    background: #e9e9e9;
}

.time-range-btn[data-active="true"],
.value-range-btn[data-active="true"] {
    background: #1d793f;
    color: white;
    border-color: #36c56b;
}

.chart-context-menu {
    position: absolute;
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 10000;
    min-width: 180px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    padding: 4px 0;
}

.chart-context-menu.visible {
    display: block;
}

.context-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    color: #e2e8f0;
    transition: all 0.2s ease;
    border-bottom: 1px solid #4a5568;
}

.context-menu-item:last-child {
    border-bottom: none;
}

.context-menu-item:hover {
    background-color: #4a5568;
    color: #ffffff;
}

.context-menu-item:active {
    background-color: #2c5282;
}

/* <<< Graph controls END */

/* >>> Graph page tables START */
table.graph-info {
    background: #222;
    margin: 15px 0;
    border-radius: 7px;
}

.bright-title {
    color: #fff;
    font-weight: bold;
}

.market-info {
    color: #d8d8d8;
    font-size: 12px;
}

.text-right {
    text-align: right;
}

table.graph-info th {
    border-bottom: 1px solid #3adb76;
    text-align: center;
}

table.graph-info td.border-right {
    border-right: 1px solid #3adb76;
}

table.graph-info td.ticker-plate {
    width: 125px;
    text-align: center;
    vertical-align: middle;
    font-size: 16px;
    font-weight: bold;
}

table.graph-info td.lp-title {
    color: rgb(58, 219, 118);
    font-weight: bold;
}

table.graph-info td.lp-data {
    background-color: rgba(58, 219, 118, .1);
}

table.graph-info td.sp-title {
    color: rgb(219, 58, 58);
    font-weight: bold;
}

table.graph-info td.sp-data {
    background-color: rgba(219, 58, 58, .1);
}

/* <<< Graph page tables END */

/* <<< Graph Exchange link END */
.exchange-link {
    color: #0066cc;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.exchange-link:hover {
    color: #007bff;
}

