body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

html {
  height: -webkit-fill-available;
}

main {
  height: 100vh;
  height: -webkit-fill-available;
  max-height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
}

.dropdown-toggle {
  outline: 0;
}

.btn-toggle {
  padding: .25rem .5rem;
  font-weight: 600;
  color: var(--bs-emphasis-color);
  background-color: transparent;
}

.btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(var(--bs-emphasis-color-rgb), .85);
  background-color: var(--bs-tertiary-bg);
}

.btn-toggle::before {
  width: 1.5em;
  /* line-height: 24px; */
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  /* transform-origin: 50%; */
  transform-origin: center;
  height: 24px;
}

[data-bs-theme="dark"] .btn-toggle::before {
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28255,255,255,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
}

.btn-toggle[aria-expanded="true"] {
  color: rgba(var(--bs-emphasis-color-rgb), .85);
}

.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: 1.25rem;
}

.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: var(--bs-tertiary-bg);
}

#content {
  box-shadow: inset 20px 0px 10px -20px #000000, inset -20px 0px 10px -20px #000000;
}

.scrollarea {
  overflow-y: auto;
  height: 100%;
}


.badge.long-word-badge {
  max-width: 230px;
  /* Задайте нужную ширину */
  overflow-wrap: break-word;
  white-space: normal;
  margin-top: 3px;
}

.call-link {
  cursor: pointer;
}

.call-link:hover {
  text-shadow: 0 0 10px;
}

.lh-i {
  line-height: inherit !important;
}

#chat-list>.d-none+.message {
  margin-top: auto !important;
}

.nav-channel {
  border: 1px solid rgba(0, 0, 0, 0);
}

.nav-channel.active {
  border-color: rgba(0, 0, 0, 0.5);
  /* border-radius: 15px !important; */
}

.nav-server {
  width: 280px;
  position: relative;
}

.nav-server.active::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  left: 12px;
  bottom: 12px;
  top: 12px;
  width: 276px;
}

.nav-menu {
  display: block;
  border-radius: 5px;
  color: black;
  text-decoration: none;
}

.nav-menu.active {
  position: relative;
  background-color: rgb(54, 10, 17);
  color: whitesmoke !important;
}

.users-online {
  margin-left: 0;
  padding-left: 0;
}

.users-offline {
  margin-left: 0;
  padding-left: 0;
}

.users-offline>li>span {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  padding: 3px 10px;
}

.users-online>li>span {
  background-color: rgba(0, 128, 0, 0.5);
  border-radius: 15px;
  padding: 3px 10px;
}

.users-offline>li,
.users-online>li {
  list-style-type: none;
  margin: 7px 0;
  padding: 0px;
}

.scrollarea {
  scrollbar-width: thin;
}

.server-form:has(option[value="private"]:checked){
  background-color: rgb(33 37 41);
  color: rgb(245, 245, 245);
}