/* Примерно так можно вернуть схожую типографику из Bootstrap 4 */
body {
  font-family: var(--bs-font-sans-serif) !important;
  font-size: 1rem;
  /* В Bootstrap 4 это было 1rem, хотя в 5-ке тоже 1rem */
  line-height: 1.5;
  /* При желании можно подправить под B4 (1.5) */
  background-color: #2c3e50;
  transition: opacity 2s ease;
  /* Плавное изменение прозрачности */
}

.container.site {
    margin-top: 20px;
    margin-bottom: 30px;
}

/* Состояние "сна" */
body.sleep-mode {
  opacity: 0.3;
  /* Установите нужный уровень прозрачности */
  pointer-events: none;
  /* Отключение взаимодействия с элементами */
}

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

.pull-left {
  float: left;
}

.pull-right {
  position: absolute;
  right: 15px;
}

#mining_type {
  margin-top: 30px;
  font-weight: bold;
  background-color: transparent;
}

.stan_logo {
  margin-bottom: 5px;
}

.input100 {
  max-width: 100px;
}

.input70 {
  max-width: 70px;
}

input::placeholder,
textarea::placeholder {
  color: #ccc !important;
}

/* ------ */

.table,
.table td,
.table th {
  border: none !important;
}

input {
  border: 1px solid #555;
  /* Стиль границ для полей ввода */
}

input,
select,
textarea {
  border-radius: 0 !important;
  border: 1px #084054 solid !important;
  background: #0A4A5F !important;
  color: white !important;
}

/* ------ */
.table td {
  line-height: 100%;
  background: #063649;
  color: #ededed;
  border: 2px solid #777;
}
.bg-dark-blue {
  background: #031f30 !important;
}
.table th {
  color: #2c3e50;
}

.table td b {
  color: #ffffff;
}

/* ------ */
header {
  background-color: #031f30;
  color: #fff;
  padding: 20px;
  margin-bottom: 10px;
}

tc-root {
  display: flex;
  justify-content: center;
  align-items: center;
  /*width: 100% !important;*/
}

.input-group .form-control,
.input-group .btn {
  height: 40px;
  /* Устанавливаем одинаковую высоту */
  padding: 6px 12px;
  /* Согласуем отступы */
  border-radius: 0;
  /* Если требуется убрать закругления */
}

.btn-group {
  margin-right: 2px;
}

.btn-sm {
  padding-top: 2px !important;
}

.theme-orange .btn {
  border-radius: 0;
  background: #063649 !important;
  border: none;
  margin-bottom: 2px;
  color: orange;
  border: 0.5px #084054 solid !important;
}

#select-lang,
#select-lang .bootstrap-select {
  width: 150px;
}

#select-lang button {
  box-shadow: none;
}

#select-lang button {
  background: none;
  color: #FFF;
}

.theme-orange .text-danger {
  color: hsl(320, 60%, 20%) !important;
}

.bg-warning {
  background-color: hsl(45, 100%, 28%) !important;
}

.bg-danger {
  background-color: hsl(320, 60%, 20%) !important;
}

.bg-secondary-custom {
  background-color: hsl(208, 8%, 20%) !important;
}

.bg-success {
  background-color: hsl(120, 60%, 20%) !important;
}

.bg-red {
  background-color: red !important;
}

.bg-green {
  background-color: green !important;
}

.bg-ccc {
  background-color: #ccc;
}

.bg-ccc input {
  background-color: #2c3e50 !important;
}

.theme-orange a {
  text-decoration: none;
  color: orange !important;
}

a:hover,
a:focus {
  text-decoration: none;
}

.well {
  padding: 10px 20px;
  color: #fff;
}

header img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.url {
  text-decoration: none;
  font-weight: bold;
  color: #ccc;
}

.connectedUser,
#miner_statistics,
#sendCoinWallet {
  display: none;
}

.large-text-block,
.text-block {
  background-color: #f4f4f4;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 20px;
}

.text-block h2,
.text-block b {
  color: #2c3e50;
}

.text-block p {
  color: #333;
}

.text-muted {
  color: #ccc !important;
}

.black {
  background-color: #031f30;
  color: #fff;
}

.black p {
  color: #fff;
}

.black b {
  color: #9aa9b1;
}

iframe {
  height: 600px;
  width: 100%;
  border: 0;
}

.iframe-container {
  position: relative;
  width: 100%;
  height: 600px;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.command {
  width: 100%;
  background-color: #061722 !important;
  color: #ddd !important;
  border: 1px solid #cd9a00 !important;
  padding: 0.6rem 0.7rem;
  margin: 0.25rem 0 1rem;
  font-family: monospace;
  font-size: 0.85em;
}

@keyframes blink {
  0% {
    background-color: #031f30;
    /* Начальный цвет */
  }

  50% {
    background-color: #ededed;
    /* Промежуточный цвет */
  }

  100% {
    background-color: #031f30;
    /* Конечный цвет */
  }
}

.blinking-background {
  animation: blink 5s infinite;
  /* 2 секунды для одного цикла, бесконечное повторение */
}

.progress-div {
  color: #ccc;
  border: 1px #084054 solid;
  padding-left: 0px;
  padding-right: 0px;
  margin-bottom: 7px;
  max-width: 100% !important;
  position: relative;
}

.progress-bar {
  max-width: 100%;
  height: 37px;
}

.progress-bar h3 {
  margin-top: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.progress-bar-striped.bg-secondary {
  background-image: linear-gradient(45deg,
      #333 25%,
      #000 25%,
      #000 50%,
      #333 50%,
      #333 75%,
      #000 75%,
      #000 100%);
  background-size: 1rem 1rem;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

.alert-danger {
  text-align: center;
  background-color: #f44336;
  color: white;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid transparent;
}

#whatsMineNow {
  margin-top: 20px;
  margin-bottom: 20px;
}

@media only screen and (max-width: 600px) {
  .command {
    font-size: 100%;
    /* Увеличиваем шрифт для лучшей читаемости на мобильных устройствах */
  }

  .text-block {
    padding: 10px;
    /* Уменьшаем внутренние отступы для экономии пространства */
  }
}

.worker-block {
  margin-top: 0.5rem;
}

.worker-block .bi-pc-display {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  z-index: 5;
  color: #FFF;
}

.worker-block input.worker {
  padding-left: 32px;
}

@media (max-width: 600px) {
  .worker-block input {
    width: 100% !important;
  }
}

.worker-cpu {
  display: flex;
  align-items: center;
  cursor: pointer;
  ;
}

.worker-cpu-icon {
  font-size: 1.1rem;
  margin-right: 0.5em;
}

small {
  line-height: 130% !important;
}

.orange_top_border {
  border-top: 2px orange solid;
}
/* new mainos */
.mainos {
  position: relative;
  background-color: #063649 !important;
  /* Более светлый оттенок */
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  border-bottom: 2px orange solid;
}

.mainos .new-badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background-color: #ff4d4d;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 3px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mainos h3 {
  display: flex;
  align-items: center;
}

.mainos h3 i {
  margin-right: 10px;
}

.mainos h5 {
  margin-top: 20px;
}

#mainos_content {}

.theme-orange label {
  display: inline-block;
  margin-top: .5rem;
  margin-bottom: 0;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #ccc;
  /* Цвет фона кружка */
  color: #fff;
  /* Цвет иконки */
  margin-right: 8px;
  /* Отступ справа от иконки */
}

.icon-circle i {
  font-size: 14px;
  /* Размер иконки */
}

#cpux_market_bnb {
  padding: 2px 15px;
  width: 100%;
  height: 30px;
  position: fixed;
  bottom: 0px;
  background-color: #031f30;
  color: white;
  z-index: 99999 !important;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
}

.marquee {
  display: inline-block;
  animation: scroll 60s linear infinite;
  white-space: nowrap;
}

/* Анимация для прокрутки текста */
@keyframes scroll {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-100%);
  }
}

/* Останавливаем анимацию при наведении */
#cpux_market_bnb:hover .marquee,
#webinfoDiv:hover .marquee {
  animation-play-state: paused;
}

#removeInfo {
  padding: 2px 15px;
  position: fixed;
  bottom: 30px;
  right: 0;
  cursor: pointer;
  background-color: #ccc;
  z-index: 99999999 !important;
  opacity: 0.9;
}

#cookieUserWallet {
  white-space: nowrap;
  cursor: pointer;
}

/* NEW */
html {
  height: 100%;
}
body {
  height: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: var(--l-navbar-font-size);
}
.body-wrap-content {
  position: relative;
  margin: var(--header-height) 0 0 0;
}

.list-group-item {
  background: #031f30 !important;
  color: #ffffff !important;
  border-color: #084054 !important;
}
.list-group-item:hover { background:#063649 !important; }
.list-group-item.active { background:#063649 !important; border-color: orange !important; color: orange !important; }


@media screen and (min-width: 768px) {
  main {
    padding-top: 1rem;
  }
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 1rem 1rem 2.5rem;
  background-color: #031f30;
  color: #758697;
  font-size: 0.95rem;
}
.footer  a {
  color: #758697;
}
.footer a:hover {
  color: #b2c6db;
}
.footer__policy {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
}
img {
  max-width: 100%;
}
.text-block-white {
  color: #333;
}

.cryptoaddr { /* пеернос по буквам для криптоадрессов */
  word-break: break-all;
}
 
.clipboard-btn {
  display: flex;
  align-items: center;
  gap: 1em;
  color: #FFF;
  /*border-color: #031f30;*/
  /*font-size: 0.9rem;*/
  /*padding: 0.5rem 1rem 0.5rem 0.5rem;*/
  padding-right: 2rem;
}
.theme-orange .clipboard-btn {
  margin: 0.5rem 1px 1rem;
}
.clipboard-btn  span {
  position: relative;
}
.clipboard-btn  i {
  position: absolute;
  transition: tr;
  transform: translateY(-50%) translateX(50%);
}

.clipboard-btn:active i {
  color: var(--bs-btn-active-color);
}

/* back to top*/
.scroll-top {
  position: relative;
  /*overflow: hidden;*/
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  font-size: 18px;
  color: #98adc4;
  background-color: rgba(31, 46, 62, 0.85);
  border: 1px solid rgba(31, 46, 62);
  border-radius: 5px;
  position: fixed;
  bottom: 40px;
  right: 15px;
  z-index: 90;
  cursor: pointer;
  transition: all 0.3s ease-out 0s;
  /*box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);*/
}
.scroll-top i {  
  margin-top: 1px;
}
.scroll-top:hover {
  color: #b3cae4;
  background: rgba(35, 51, 70, 0.8);
}
.scroll-top:hover  i {
  margin-top: -1px;
}
@media screen and (min-width: 768px) {
  .scroll-top {
    bottom: 40px;
    right: 30px;
  }
}

/* Connection */
.connection-os-list {
  margin-top: 1rem;
  padding-left: 0;
}
.connection-os-list  li {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 1rem;
}
.connection-os-list  img {
  width: 3rem;
  margin-right: 1rem;
}
.command {
  background-color: #061722;
  color: #ddd;
  padding: 0.6rem 0.7rem;
  font-family: monospace;
  margin: 0.25rem 0 1rem;
  font-size: 0.75rem;
}
.theme-orange .command-block {
  padding-bottom: 1rem;
  margin: 1rem 0;
  border-bottom: #c2c2c2 solid 1px;
}
.command-block i {
  overflow: hidden;
  opacity: 0;
  transition: .3s;
  color: #e9e9e9;
  transition: color 0.15s ease-in-out;
}
.command-block i.fa-check {
  color: #c2ffb9;
}
.command-block i.show {
  overflow: visible;
  opacity: 1;
}
.command-block textarea:first-child,
.command-block div:first-child {
  width: 100%;
  background-color: #061722 !important;
  color: #ddd !important;
  border: 1px solid #cd9a00 !important;
  padding: 0.6rem 0.7rem;
  margin: 0.25rem 0 1rem;
  font-family: monospace;
  font-size: 0.85em;
}
.command-block button {
  margin-bottom: 0;
}

@media only screen and (max-width: 600px) {
  .command,
  .command-block div {
      font-size: 100%; /* Увеличиваем шрифт для лучшей читаемости на мобильных устройствах */
  }
  .text-block {
      padding: 10px; /* Уменьшаем внутренние отступы для экономии пространства */
  }
}


/* user */
.user-info {
  width: auto;
}
.coin-wallet {
  word-break: break-all;
}
input[type="checkbox"] {
  appearance: checkbox;
  -webkit-appearance: checkbox;
  width: 18px;
  height: 18px;
  background-color: #fff !important;
  border: 1px solid #ccc !important;
  accent-color: orange;
}
.card-body ul li {
  background-color: #031f30;
  color: #fff;
  border-color: #6985a2;
}

/* Для маленьких экранов делаем collapse блок статическим и растягиваем его на всю ширину */
@media (max-width: 768px) {
  .worker-collapse {
    position: static !important;
    width: 100%;
  }
}

@keyframes chatHue {
  0%   { color: #ff3b3b; transform: scale(1);   filter: saturate(1); }
  50%  { color: #ff9a3b; transform: scale(1.08); filter: saturate(1.35); }
  100% { color: #ff3b3b; transform: scale(1);   filter: saturate(1); }
}

#chat-menu-icon.chat-has-dm {
  animation: chatHue 0.9s ease-in-out infinite;
  will-change: color, transform, filter;
}

.chat-emoji{
  border: 0;
  background: transparent;
  padding: 0 6px;
  margin: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.chat-emoji:hover{
  transform: scale(1.15);
}

/* реакция = не "кнопка", а аккуратная плашка */
.chat-rx-btn{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 8px !important;
  line-height: 1.1 !important;
  font-size: 18px !important;        /* размер эмодзи */
  border-radius: 999px !important;   /* округление */
  opacity: 0.95;
}
.chat-rx-btn:hover{
  opacity: 1;
  text-decoration: underline;
}
/* если это "мой" лайк — делаем заметнее, но без кубика */
.chat-rx-btn.btn-warning{
  background: transparent !important;
  color: #ffd54a !important;
}
.chat-rx-btn.btn-outline-light{
  color: #ddd !important;
}
.chat-reactions{
  gap: 6px !important;
}
/* Скрыть скроллбар, но оставить прокрутку */
#leftChatCard .card-body{
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE/Edge legacy */
}
#leftChatCard .card-body::-webkit-scrollbar{
  width: 0;                   /* Chrome/Safari/Opera */
  height: 0;
}

/* Highlight admin join-requests button when there are pending requests */
@keyframes joinReqPulse {
  0% { box-shadow: 0 0 0 0 rgba(220,53,69,.65); }
  70% { box-shadow: 0 0 0 10px rgba(220,53,69,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,53,69,0); }
}
#btnJoinRequests.join-req-attn {
  animation: joinReqPulse 1.3s infinite;
  border-color: rgba(220,53,69,.9) !important;
}
