@charset "UTF-8";
.button {
  width: 220px;
  max-width: 180px;
  padding: 5px 20px 5px 20px;
  align-self: center;
  line-height: 35px;
  margin-top: 15px;
  border-radius: 10px;
  display: flex;
}

.img-bnt {
  margin-right: 10px;
}

.btn-clr-default {
  background-color: #4E4E4E;
  color: rgb(255, 255, 255);
  text-decoration: none;
  transition: 0.1s;
}
.btn-clr-default:hover {
  background-color: #585858;
}

.btn-clr-isb {
  background-color: rgb(133, 36, 135);
  color: rgb(255, 255, 255);
  text-decoration: none;
  -webkit-animation: AnimationName 5s ease infinite;
  -moz-animation: AnimationName 5s ease infinite;
  animation: AnimationName 5s ease infinite;
  transition: 0.1s;
}
.btn-clr-isb:hover {
  background-color: #952997;
}

@-webkit-keyframes AnimationName {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@-moz-keyframes AnimationName {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes AnimationName {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.magicpanel {
  place-items: center;
}

.lumo-connect {
  place-items: center;
  border-bottom: 1px solid #4E4E4E;
  width: 100%;
  padding-bottom: 15px;
}

.lumo-chatlist {
  width: 100%;
  scrollbar-color: rgba(255, 255, 255, 0.1) rgba(0, 0, 0, 0);
  scrollbar-width: thin;
  scrollbar-gutter: stable both-edges;
  place-items: center;
  max-height: 69vh;
  padding-bottom: 3vh;
  overflow-x: hidden;
  overflow-y: auto;
  text-align: left;
}

.user-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  line-height: 25px;
  display: flex;
  text-align: left;
  align-items: flex-start;
}

.contact-name {
  margin: 0px 0px -10px 0px;
  font-size: 14px;
}

.your-message {
  width: 150px;
  margin: 0px;
  white-space: nowrap; /* Запрет на перенос строк */
  overflow: hidden; /* Скрыть лишний текст */
  text-overflow: ellipsis; /* Добавить троеточие */
  font-size: 10px;
}

.draggable-window, .toggle-button {
  position: absolute;
  z-index: 1000;
}

.toggle-button {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.212);
  color: rgba(255, 255, 255, 0.164);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.toggle-button:hover {
  background-color: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.4);
}

.minimize-btn {
  background: black;
  padding: 5px 20px 5px 20px;
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.minimize-btn:hover {
  background: rgb(27, 27, 27);
}

.draggable-window {
  width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background: white;
  background-color: #1a0000;
  color: white;
}

.window-header {
  background-color: #470000;
  color: white;
  padding: 10px 15px;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.window-title {
  font-weight: bold;
}

.window-content {
  padding: 20px;
  min-height: 150px;
}

.dragging {
  opacity: 0.7;
}

/* Стили для debug консоли */
.debugconsole {
  width: 400px;
  height: 300px;
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: 8px;
  padding: 15px;
  font-family: monospace;
  overflow-y: auto;
}

.debugconsole h3 {
  color: #4ec9b0;
  margin-top: 0;
}

/* Стили для модальных окон */
.modal {
  display: none; /* Скрыто по умолчанию */
  position: fixed; /* Остается на месте при прокрутке */
  z-index: 1000; /* Поверх всего */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Включает прокрутку, если нужно */
  background-color: rgba(0, 0, 0, 0.5); /* Черный с прозрачностью */
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% сверху и авто по бокам */
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
}

.close-btn {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
}

.lumo-sh-default {
  box-shadow: -2px 10px 16px -5px rgba(0, 0, 0, 0.51);
  -webkit-box-shadow: -2px 10px 16px -5px rgba(0, 0, 0, 0.51);
  -moz-box-shadow: -2px 10px 16px -5px rgba(0, 0, 0, 0.51);
}

.lumo-sh-default2 {
  box-shadow: -2px 10px 16px -5px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: -2px 10px 16px -5px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: -2px 10px 16px -5px rgba(0, 0, 0, 0.1);
}

.your-panel {
  position: absolute;
  display: flex;
  height: 60px;
  width: 300px;
  background-color: rgba(255, 255, 255, 0.2);
  align-self: flex-end;
  z-index: 2;
  left: 20px;
  bottom: 20px;
  border: rgba(255, 255, 255, 0.2) solid 2px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  user-select: none;
  justify-content: space-between;
}
.your-panel img {
  width: 45px;
  user-select: none;
  -webkit-user-drag: none;
}

.user-names {
  height: 40px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  flex-direction: column;
  line-height: 35px;
  display: flex;
  text-align: left;
  align-items: flex-start;
}

.yp-name {
  margin: 0px 0px 0px 0px;
  font-weight: 600;
  height: 1%;
  color: white;
  padding-left: -5px;
  font-size: 16px;
}

.yp-uid {
  padding-top: 25px;
  margin: 0px 0px 0px 0px;
  padding-bottom: 40px;
  font-weight: 400;
  font-size: 14px;
  color: white;
  padding-left: -5px;
}

.yp-ico {
  width: 20px;
  padding: 10px;
  display: flex;
  background-color: rgba(255, 255, 255, 0.2);
  align-self: center;
  place-self: center;
  justify-self: center;
  place-items: center;
  justify-items: center;
  align-items: center;
  border-radius: 10px;
  transition: 0.1s;
}
.yp-ico svg {
  align-self: center;
  place-self: center;
  justify-self: center;
}
.yp-ico:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.yp-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-right: 10px;
  cursor: pointer;
}

.udata {
  left: 10px;
  display: flex;
  align-items: center;
  flex-direction: row;
  line-height: 45px;
  display: flex;
  text-align: left;
  align-items: flex-start;
}

.img-your-avatar {
  width: 35px;
  align-self: center;
  place-self: center;
  justify-self: center;
  margin-left: 10px;
  border-radius: 40px;
}
.img-your-avatar:hover {
  background: black;
}

.button-friendlist {
  padding: 5px 20px 5px 20px;
  align-self: center;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
}

.img-friend-avatar {
  width: 35px;
  align-self: center;
  place-self: center;
  justify-self: center;
  margin-right: 10px;
  border-radius: 40px;
}

.img-friend-avatar-bigger {
  width: 35px;
  align-self: center;
  place-self: center;
  justify-self: center;
  margin-right: 10px;
  border-radius: 40px;
}

.username-inlist {
  align-self: center;
  line-height: 35px;
  border-radius: 10px;
  display: flex;
}
.username-inlist img {
  align-self: center;
  place-self: center;
  justify-self: center;
  margin-right: 10px;
}

.usercommpanel {
  align-items: center;
  display: flex;
}

.dirname {
  padding-left: 20px;
  display: flex;
}

.catname {
  padding-left: 10px;
  color: white;
  font-weight: 500;
  align-self: center;
  place-self: center;
  justify-self: center;
}

.user-buttons {
  display: flex;
  gap: 10px;
}

.action-button {
  padding: 7px;
  display: flex;
  align-self: center;
  place-self: center;
  justify-self: center;
  place-items: center;
  justify-items: center;
  align-items: center;
  text-decoration: none;
  color: white;
  background-color: #4E4E4E;
  transition: 0.2s ease;
  border-radius: 10px;
}
.action-button:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

/* --- Стили для оверлея (без изменений) --- */
#overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(28, 28, 28, 0.1);
  z-index: 1000;
  transition: opacity 0.4s ease, visibility 0.01s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(0px);
}

#overlay.is-active {
  backdrop-filter: blur(20px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --- Улучшенные стили для контейнера и панелей --- */
.settings-container-main {
  display: flex;
  width: 80vw;
  max-width: 900px;
  height: 80vh;
  background-color: rgba(24, 24, 24, 0.8);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  margin-top: 200vh;
  transition: 0.4s ease;
}

#overlay.is-active .settings-container-main {
  margin-top: 0vh;
}

.left-list, .right-list {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  scrollbar-width: thin;
}

.left-list {
  width: 250px;
  background-color: rgba(24, 24, 24, 0.9);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0; /* Не сжиматься */
}

.right-list {
  flex-grow: 1; /* Занимать оставшееся место */
  background-color: rgba(37, 37, 37, 0.4);
  padding: 20px;
}

/* --- Стили для категорий и контента --- */
.settings-cat {
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-radius: 10px;
}

.settings-cat:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* НОВОЕ: Стиль для активной категории */
.settings-cat.active {
  background-color: rgba(100, 150, 255, 0.2); /* Пример подсветки */
  font-weight: 600;
}

/* НОВОЕ: Стили для контента */
.settings-content {
  display: block; /* По умолчанию весь контент скрыт */
  color: #e0e0e0;
  animation: fadeIn 0.3s ease;
}

/* НОВОЕ: Показываем нужный блок контента */
.settings-content.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* --- Ваши исходные стили (без изменений) --- */
.settings-head {
  display: flex;
  align-items: center;
  height: 30px;
  margin-top: 10px;
  padding: 10px 30px 0px 30px;
  border-radius: 10px;
  width: 200px;
  text-align: left;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  user-select: none;
  -webkit-user-drag: none;
}

.settings-head-name {
  color: white;
  text-decoration: none;
}

.settings-cat {
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  height: 30px;
  margin-top: 8px;
  padding: 5px 30px 5px 30px;
  width: 200px;
  text-align: left;
  user-select: none;
  -webkit-user-drag: none;
}

.settings-cat-name {
  color: white;
  text-decoration: none;
}

.settings-wspace {
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  height: 0px;
  margin-top: 8px;
  padding: 1px 30px 1px 30px;
  cursor: default;
  width: 180px;
  border-top: rgba(255, 255, 255, 0.1) solid 1px;
}

.body-landing {
  background-color: #0B0B0B;
  font-size: 20px;
}

.nav-bar {
  top: 30px;
  color: white;
  position: fixed;
  display: flex;
  background-color: rgba(255, 255, 255, 0.04);
  justify-content: space-between;
  justify-self: center;
  width: 80vw;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.123);
  padding: 10px 100px 10px 100px;
  z-index: 100;
  font-size: 20px;
  font-weight: 500;
  user-select: none;
}

.nav-logo {
  display: flex;
}

.nav-logo-img {
  padding-right: 10px;
  height: 40px;
  justify-self: center;
  align-self: center;
}

.nav-button {
  cursor: pointer;
  display: flex;
  text-align: center;
  justify-self: center;
  align-self: center;
}

.nav-button-text {
  cursor: pointer;
  display: flex;
  margin: 0px;
  text-align: center;
  justify-self: center;
  align-self: center;
}

.nav-logo-text {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 700;
  display: flex;
  margin: 0px;
  text-align: center;
  justify-self: center;
  align-self: center;
}

.nav-auth-text {
  margin: 0px;
  text-align: center;
  justify-self: center;
  align-self: center;
}

.landing-content {
  padding: 0px 100px 0px 100px;
  height: 100%;
  background-color: rgba(80, 80, 80, 0);
  display: grid;
  grid-template-columns: 600px 1fr;
}

.landing-img {
  width: 600px;
  justify-self: end;
  align-self: center;
  filter: drop-shadow(-40px 100px 49px rgba(104, 78, 140, 0.3));
}

.nav-auth {
  padding: 5px 60px 0px 60px;
  background-color: #684D9E;
  border-radius: 40px;
}

.special-text {
  font-weight: 600;
  font-size: 30px;
  margin: 0px;
  line-height: 30px;
}
.special-text .transition-text {
  max-height: 10px;
  font-weight: 700;
  color: #FF61F4;
}

.block-lumo {
  justify-self: center;
  align-self: center;
  color: white;
  text-align: left;
}

.mini-text {
  margin-top: 10px;
}

.fullsized-a {
  height: 100%;
}

.nodeco {
  text-decoration: none;
}

body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 1.6;
  margin: 0;
  height: 100vh;
  width: 100vw;
  place-content: center;
  align-items: center;
  max-height: 50%;
  overflow-x: hidden;
  overflow-y: hidden;
}

.body-main {
  background-color: #1C1C1C;
}

.appcontainer {
  width: 95vw;
  height: 95%;
  align-self: center;
  padding: 20px;
  display: grid;
  grid-column: 100px 1fr;
  grid-template-columns: 90px 1fr;
  user-select: none;
  -webkit-user-drag: none;
}

.servlist {
  width: 100%;
  height: 100%;
  background-color: #333;
  border-radius: 10px;
  -webkit-box-shadow: 4px 4px 16px 3px rgba(0, 0, 0, 0.27);
  -moz-box-shadow: 4px 4px 16px 3px rgba(0, 0, 0, 0.27);
  box-shadow: 4px 4px 16px 3px rgba(0, 0, 0, 0.27);
}

.userpanel {
  width: 100%;
  height: 100%;
  background-color: #414141;
  border-radius: 10px;
  margin-left: 40px;
  display: grid;
  grid-template-columns: 250px 1fr 250px;
}

.magicpanel {
  width: 100%;
  height: 100%;
  background-color: #333;
  border-radius: 10px;
  -webkit-box-shadow: 4px 4px 16px 3px rgba(0, 0, 0, 0.17);
  -moz-box-shadow: 4px 4px 16px 3px rgba(0, 0, 0, 0.17);
  box-shadow: 4px 4px 16px 3px rgba(0, 0, 0, 0.17);
  z-index: 1;
  display: flex;
  align-content: flex-start;
  flex-direction: column;
}

.commutatepanel {
  display: grid;
  grid-template-rows: 1fr 95%;
  background-color: #414141;
  border-radius: 10px;
}

.chat {
  width: 100%;
  height: 100%;
  background-color: #1C1C1C;
  border-radius: 10px 10px 0px 0px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.inputmanager {
  display: flex;
  align-items: flex-end;
  padding: 10px;
  border-top: 1px solid #444;
}

.messageinput {
  width: 100%;
  resize: none;
  scrollbar-color: rgba(255, 255, 255, 0.1) rgba(0, 0, 0, 0);
  scrollbar-width: thin;
  max-height: 300px;
  position: relative;
  background-color: #161616;
  color: white;
  border: 1px solid #595959;
  border-radius: 15px;
  padding: 15px 20px 0px 20px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  transition: background-color 0.1s ease, border-color 0.1s ease;
}
.messageinput:focus {
  outline: none;
  border-color: #5e5e5e;
  background-color: rgb(27, 27, 27);
  border-radius: 16px;
}
.messageinput:hover {
  outline: none;
  border-color: #5e5e5e;
  border-radius: 16px;
}

.messagesholder {
  flex-grow: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px; /* Добавляем отступы между сообщениями */
  background-color: #1e1e1e; /* Темный фон как в Telegram */
  overflow-x: hidden;
  overflow-y: scroll;
  max-height: 85vh;
  scrollbar-color: rgba(255, 255, 255, 0.1) rgba(0, 0, 0, 0);
  scrollbar-width: thin;
  border-radius: 10px;
}

.message {
  max-width: 70%; /* Ограничиваем ширину сообщений */
  padding: 8px 12px;
  border-radius: 18px; /* Скругляем углы как в Telegram */
  word-wrap: break-word; /* Переносим длинные слова */
}

.message-sender {
  align-self: flex-start; /* Выравниваем по левому краю */
  background-color: #2b5278; /* Синий цвет для сообщений собеседника */
  color: white;
  border-radius: 10px 10px 10px 0px;
  padding: 5px 10px 6px 10px;
}

.message-user {
  align-self: flex-end; /* Выравниваем по правому краю */
  background-color: #2f6e4f; /* Зеленый цвет для своих сообщений */
  color: white;
  border-radius: 10px 10px 0px 10px;
  padding: 5px 10px 6px 10px;
}

.message-text {
  margin: 0; /* Убираем отступы у параграфа */
}
