/* >>> 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 url('/assets/img/authBg.jpg') fixed;
    backdrop-filter: brightness(0.5);
    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 - 56px);
    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;
}

.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 {
    width: 100%;
    height: 100%;
    position: fixed;
}

#authForm {
    width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 16%;
}

#titleAuth {
    background: white;
    border-radius: 30px;
    width: 300px;
    text-align: center;
    color: black;
    font-size: 17px;
    height: 30px;
    padding-top: 5px;
}

#authBtn {
    background: white;
    color: black;
    border-radius: 30px;
    border-color: black;
    width: 300px;
    font-size: 17px;
}

.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 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-on-exchange {
    text-align: center;
    cursor: pointer;
}

.accordion-body {
    color: #000000;
}

.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 */
