/* ===============================
   STYLE.CSS — БАЗОВЫЙ МАКЕТ, НАВИГАЦИЯ, АДАПТИВ
   =============================== */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #0b0d11;
  font-family: system-ui, sans-serif;
  color: #e0e3ea;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ======== ШАПКА ======== */
.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: #101419;
  border: 1px solid #00e89630;
  border-radius: 12px;
  margin: 10px;
  padding: 10px 18px;
  height: 60px;
  box-sizing: border-box;
  box-shadow: 0 0 15px rgba(0, 232, 150, 0.08);
}

.nav-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo {
  color: #00e896;
  font-weight: 600;
  font-size: 18px;
  border: 1px solid #00e89650;
  border-radius: 10px;
  padding: 6px 14px;
  box-shadow: 0 0 12px rgba(0, 232, 150, 0.4);
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0% { box-shadow: 0 0 10px rgba(0, 232, 150, 0.2); }
  50% { box-shadow: 0 0 22px rgba(0, 232, 150, 0.55); }
  100% { box-shadow: 0 0 10px rgba(0, 232, 150, 0.2); }
}

/* Меню */
.menu {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.menu a {
  text-decoration: none;
  color: #cfd3dc;
  font-size: 15px;
  padding: 6px 14px;
  border: 1px solid #2a2f38;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.menu a:hover {
  border-color: #00e89670;
  color: #00e896;
  box-shadow: 0 0 8px rgba(0, 232, 150, 0.25);
}

.menu a.active {
  background: #00e89615;
  border-color: #00e89690;
  color: #00e896;
  box-shadow: 0 0 10px rgba(0, 232, 150, 0.35);
}

/* Правая часть (иконки, кнопки) */
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ===============================
   Колокольчик (уведомления)
   =============================== */

.bell {
    position: relative;                 /* ← НУЖНО, чтобы badge позиционировался правильно */
    background: transparent;
    border: 1px solid #00e89640;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.bell:hover {
    background: rgba(0, 232, 150, 0.15);
    box-shadow: 0 0 8px rgba(0, 232, 150, 0.35);
}

/* Счётчик уведомлений (badge) */
.bell-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;  /* красный кружок */
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
    line-height: 1;
    display: none; /* скрыт по умолчанию */
}

.bell-count.active {
    display: inline-block;
}
.bell {
    position: relative;
}


/* Переключатель языка */
.lang-switch {
  display: flex;
  border: 1px solid #00e89640;
  border-radius: 8px;
  overflow: hidden;
}

.lang {
  background: transparent;
  border: none;
  color: #00e896;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang.active {
  background: #00e89620;
  font-weight: 600;
}

.lang:hover {
  background: #00e89610;
}

/* Кнопка входа */
.login {
  background: transparent;
  border: 1px solid #00e89640;
  color: #00e896;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.login:hover {
  background: #00e89625;
}

/* ======== ОСНОВНОЙ МАКЕТ ======== */
.layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 28%);
  gap: 12px;

  /* КЛЮЧЕВОЕ ИСПРАВЛЕНИЕ */
  height: calc(100vh - 60px - 44px - 20px);
  /* 60px — шапка
     44px — футер
     20px — внешние отступы navbar/footer */

  overflow: hidden;   /* теперь ничто не уедет вниз */
  padding: 0 12px 12px;
  box-sizing: border-box;
}
  /* ФУТЕР */
/* ============================
   Футер — выравнивание и стиль
   ============================ */
.footer {
    display: flex;
    justify-content: center; /* центрируем содержимое */
    align-items: center;
    padding: 10px 20px;
    background: #101419;
    color: #e0e3ea;
    border-top: 1px solid #00e89630;
    position: relative;
}

.footer-right {
    font-size: 13px; /* уменьшаем текст */
    opacity: 0.9;
}

/* Левый блок остаётся на месте */
.footer-left {
    position: absolute;
    left: 20px; 
    font-size: 14px;
}

.tg-menu-btn {
    color: #00e896;
    font-weight: 600;
    cursor: pointer;
}

.tg-dropdown {
    position: absolute;
    left: 0;
    bottom: 30px;
    background: #141922;
    border: 1px solid #00e89640;
    border-radius: 8px;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    min-width: 180px;
    z-index: 50;
}

.tg-dropdown a {
    padding: 8px 14px;
    text-decoration: none;
    color: #e0e3ea;
    white-space: nowrap;
    font-size: 14px;
}

.tg-dropdown a:hover {
    background: #00e89625;
}

.hidden {
    display: none;
}

/* ======== СКРЫТИЕ ЛОГОТИПА TRADINGVIEW ======== */
.tv-lightweight-charts-logo,
.tv-lightweight-charts-watermark,
a[href*="tradingview.com"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ======== АДАПТИВ ======== */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .menu a { font-size: 14px; padding: 5px 10px; }
}
body.bot-regression .layout,
body.bot-cp .layout,
body.bot-ema-go .layout {
    grid-template-columns: 1fr 400px !important;
}
/* === Стили уведомлений внутри модалки === */
#notifications-modal .notif-item {
    background: #1e222a !important;
    border: 1px solid #2a313c !important;
    border-radius: 10px !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
}

/* Заголовок — оранжевый */
#notifications-modal .notif-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #f08f07 !important;
    margin-bottom: 6px !important;
}

/* Текст — белый */
#notifications-modal .notif-text {
    font-size: 14px !important;
    color: #e7e7e7 !important;
    margin-bottom: 12px !important;
    line-height: 1.45 !important;
}

/* Дата — серый */
#notifications-modal .notif-date {
    font-size: 12px !important;
    color: #999 !important;
    margin-bottom: 10px !important;
}

/* Кнопка — зелёная */
#notifications-modal .notif-hide-btn {
    background: #00e896 !important;
    color: #000 !important;
    border: none !important;
    padding: 7px 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    width: 100% !important;
    text-align: center !important;
    transition: 0.15s !important;
}

/* Hover */
#notifications-modal .notif-hide-btn:hover {
    background: #00c97b !important;
}
