/* ====== Day/Night skin for Bootstrap 4 (минимальные переопределения) ====== */

/* рус: базовые цвета для тёмной темы */
body.theme-dark {
    background-color: #0f172a; /* slate-900 */
    color: #e5e7eb;            /* slate-200 */
  }
  
  /* Navbar */
  body.theme-dark .navbar,
  body.theme-dark .bg-light {
    background-color: #111827 !important; /* slate-800 */
  }
  body.theme-dark .navbar .nav-link,
  body.theme-dark .navbar .navbar-brand,
  body.theme-dark .navbar .dropdown-item {
    color: #e5e7eb !important;
  }
  body.theme-dark .dropdown-menu {
    background-color: #111827;
    border-color: #1f2937;
  }
  body.theme-dark .dropdown-item:hover,
  body.theme-dark .dropdown-item:focus {
    background-color: #1f2937;
  }
  
  /* Sidebar (твоё левое меню на bg-dark) */
  body.theme-dark .sidebar,
  body.theme-dark .bg-dark {
    background-color: #0b1220 !important;
    color: #e5e7eb !important;
  }
  body.theme-dark .sidebar .nav-link {
    color: #cbd5e1 !important;
  }
  body.theme-dark .sidebar .nav-link.active {
    background: rgba(148,163,184,.12);
  }
  
  /* Cards */
  body.theme-dark .card {
    background-color: #0f172a;
    border-color: #1f2937;
    color: #e5e7eb;
  }
  body.theme-dark .card .text-muted { color: #94a3b8 !important; }
  
  /* Tables */
  body.theme-dark .table {
    color: #e5e7eb;
  }
  body.theme-dark .table thead th {
    border-color: #1f2937;
    color: #a3b3c7;
  }
  body.theme-dark .table td, 
  body.theme-dark .table th {
    border-color: #1f2937;
  }
  
  /* Forms */
  body.theme-dark .form-control,
  body.theme-dark .custom-select,
  body.theme-dark .input-group-text {
    background-color: #0f172a;
    color: #e5e7eb;
    border-color: #1f2937;
  }
  body.theme-dark .form-control::placeholder { color: #94a3b8; }
  body.theme-dark .form-control:focus {
    border-color: #2563eb; /* blue-600 */
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, .25);
  }
  
  /* Buttons */
  body.theme-dark .btn-light {
    background-color: #111827;
    color: #e5e7eb;
    border-color: #1f2937;
  }
  body.theme-dark .btn-outline-secondary {
    color: #cbd5e1;
    border-color: #334155;
  }
  body.theme-dark .btn-outline-secondary:hover {
    background-color: #111827;
  }
  
  /* List group */
  body.theme-dark .list-group-item {
    background-color: #0f172a;
    border-color: #1f2937;
    color: #e5e7eb;
  }
  
  /* Alerts / badges */
  body.theme-dark .alert {
    background-color: #0f172a;
    border-color: #1f2937;
    color: #e5e7eb;
  }
  
  /* Modal */
  body.theme-dark .modal-content {
    background-color: #0f172a;
    border-color: #1f2937;
    color: #e5e7eb;
  }
/* чтобы flex-дитя .chat-msgs могло получать вычисленную высоту */
.content{ display:flex; flex-direction:column; min-height:0; }
.chat-main{ display:flex; flex-direction:column; min-height:0; }
  