@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');


html {
    scroll-behavior: smooth;
}


/* Стиль body */
.primary_body {
    background-color: #000000;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif !important;
}


/* Стиль текста */
.text-color {
    background-color: #FFFFFF;
}


/* Стили метрик */
.color-metrix {
    background-color: #1E2023;
    color: #FFFFFF;
}


/* Рамка */
.chart-wrapper {
    border: 2px solid #666666;
    border-radius: 8px;
    padding: 15px;
    background-color: #000000;
}


/* Стиль для полей ввода */
.input {
  border: 1px solid #f2c40f;
  background: #1E2023;
  border-radius: 10px;
  color: #FFFFFF;
}

.input:hover {
  border: 1px solid #f2c40f;
  background: #1E2023;
  border-radius: 10px;
  color: #FFFFFF;
}

.input:focus {
  border: 1px solid #f2c40f;
  background: #1E2023;
  border-radius: 10px;
  color: #FFFFFF;
}

.input:active {
  border: 1px solid #f2c40f;
  background: #1E2023;
  border-radius: 10px;
  color: #FFFFFF;
}

/* Выпадающий список */
.choices {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #CCB26E;
  font-size: 14px;
  line-height: 19px;
  color: #f2c40f;
}

.choices__inner {
  border: 1px solid #f2c40f;
  border-radius: 10px;
  background: #1E2023;
  color: #f2c40f;
}

.is-open .choices__inner {
  border: 1px solid #f2c40f;
  border-radius: 10px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: #1E2023;
}

.is-open .choices__list--dropdown {
  border: 1px solid #CCB26E;
  border-radius: 10px;
  background: #1E2023;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.choices__list--dropdown .choices__item--selectable {
  padding: 8px 12px;
  background: #1E2023;
  color: #f2c40f;
  cursor: pointer;
}

.choices__list--dropdown .choices__item--selectable:hover {
  background-color: #f2c40f !important;
  color: #000 !important;
  border-radius: 10px;
  margin: 0 2px;
  border: 1px solid transparent;
}

/* Активный элемент */
.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background-color: #f2c40f !important;
  color: #000 !important;
  font-weight: 500;
  margin: 0 2px;
  border-radius: 10px;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted:hover {
  background-color: #f2c40f !important;
  color: #000 !important;
}

/* Поле поиска */
.choices__list--dropdown .choices__input {
  background-color: #1E2023 !important;
  color: #f2c40f !important;
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 14px;
}

.choices__list--dropdown .choices__input::placeholder {
  color: #a0a0a0;
}

.choices__list--dropdown .choices__input:focus {
  color: #f2c40f !important;
}

/* Скроллбар  */
.choices__list--dropdown {
  scrollbar-width: thin;
  scrollbar-color: #f2c40f #1E2023;
}

.choices__list--dropdown::-webkit-scrollbar {
  width: 8px;
}

.choices__list--dropdown::-webkit-scrollbar-track {
  background: #1E2023;
  border-radius: 10px;
}

.choices__list--dropdown::-webkit-scrollbar-thumb {
  background-color: #f2c40f;
  border-radius: 10px;
}

.choices__list--dropdown::-webkit-scrollbar-thumb:hover {
  background-color: #e0b50e;
}


/* Общие стили для контейнера вкладок */
.nav-tabs {
  border-bottom: none;
}

/* Стиль кнопок вкладок */
.nav-tabs .nav-link {
  background-color: #1E2023;
  color: #FFFFFF;
  border: 2px solid #1E2023;
  border-radius: 8px 8px 0 0;
  margin-right: 5px;
  transition: all 0.3s ease;
}

/* При наведении */
.nav-tabs .nav-link:hover {
  background-color: #f2c40f;
  color: #000000;
  border: 2px solid #f2c40f;
  font-weight: bold;
}

/* Активная вкладка */
.nav-tabs .nav-link.active {
  background-color: #000000;
  color: #f2c40f;
  border-color: #f2c40f;
  font-weight: bold;
}


.content {
    transition: margin-left 0.3s ease-in-out;
}

.content.shift {
    margin-left: 0 !important;
}


/* Стиль для радио кнопок */
.btn-check {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

/* Базовый стиль для кастомных кнопок */
.btn-custom {
  background-color: #1E2023;
  color: #FFFFFF;
  border: 2px solid #1E2023;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  margin-right: 10px;
}

.btn-btn {
  background-color: #f2c40f;
  color: #000;
  border-color: #f2c40f;
  font-weight: bold;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  margin-right: 10px;
}

.btn-btn:hover {
  background-color: #1E2023;
  color: #FFFFFF;
}

input[type="radio"] + .btn-custom:hover {
  background-color: #f2c40f;
  color: #000;
  border-color: #f2c40f;
  font-weight: bold;
}

/* Активная кнопка */
.btn-check:checked + .btn-custom {
  background-color: #000000;
  color: #f2c40f;
  border-color: #f2c40f;
  font-weight: bold;
}


/* Стиль кастомных радио кнопок */
.custom-radio-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Стиль для label как кастомной радио-кнопки */
.custom-radio-label {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  display: inline-block;
}

/* Стиль "шарика" */
.custom-radio-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #000000;
  border: 2px solid #adb5bd;
}

/* Активное состояние шарика*/
.custom-radio-input:checked + .custom-radio-label::before {
  background-color: #f2c40f;
  border-color: #f2c40f;
  border: 2px solid #adb5bd;
}


/* Стиль ползунка */
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: #1E2023; /
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f2c40f; /* Цвет шарика */
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #04AA6D;
  cursor: pointer;
}


/* Стиль диаграммы */
#polarPlot {
    width: 100%;
    height: 600px;
    margin: auto;
}

.angulardrag {
    pointer-events: none !important;
}


/* Таблица */
.table-bordered-custom {
  border: 2px solid #f2c40f;
  border-collapse: collapse;
  background-color: #1E2023;
}

.table-bordered-custom th,
.table-bordered-custom td {
  border-color: #444;
}

/* Скругление углов таблицы*/
.table-bordered-custom {
  border-radius: 10px;
  overflow: hidden;
}

.centered-table {
    width: 60% !important;
    margin: 0 auto !important;
    text-align: center;
}

.centered-table th,
.centered-table td {
    text-align: center !important;
    vertical-align: middle !important;
}

.centered-table thead th {
    text-align: center !important;
}


/* Алерт Инфо */
.custom-dark-alert {
    background-color: #212529 !important;
    color: white !important;
    border-color: #343a40 !important;
    width: 80%;
}


/* Карусель */
.custom-carousel {
    padding: 0rem 0 2rem 0;
}

.custom-indicators {
    margin-bottom: 0rem !important;
}

.custom-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    margin: 0 6px !important;
}

.custom-carousel-inner {
    padding: 1rem 0;
}

.carousel-content-wrapper {
    padding: 0rem;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Для мобильных устройств */
@media (max-width: 768px) {
    .carousel-content-wrapper {
        min-height: 200px;
        padding: 0.5rem;
    }

    .custom-carousel {
        padding: 0.5rem 0 1.5rem 0;
    }
}


/* Базовый класс - нормальный размер для десктопов */
.mobile-full-width {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.mobile-full-width .chart-placeholder {
    width: 100% !important;
    height: 100% !important;
}

/* Высота по умолчанию для десктопов */
.mobile-full-width .chart-wrapper {
    width: 100% !important;
    height: 500px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Только для мобильных устройств */
@media (max-width: 767px) {
    .mobile-full-width {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .mobile-full-width .chart-wrapper {
        width: 100% !important;
        height: 300px !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 10px !important;
    }

    /* Предотвращаем горизонтальный скролл */
    body {
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    html {
        overflow-x: hidden;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .mobile-full-width .chart-wrapper {
        height: 250px !important;
        padding: 0 5px !important;
    }
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 1024px) {
    .mobile-full-width .chart-wrapper {
        height: 400px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
}

/* Большие десктопы */
@media (min-width: 1025px) {
    .mobile-full-width .chart-wrapper {
        height: 500px !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
}

.fullscreen-btn {
    background: transparent;
    border: none;
    color: #f2c40f; /* под цвет текста */
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 10px;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Для маленьких экранов */
@media (max-width: 767px) {
    .fullscreen-btn {
        font-size: 1.3rem;
        width: 36px;
        height: 36px;
    }
}
