body {
  font-family: Arial, sans-serif;
  background-color: #202d3a;
  margin: 0;
  padding: 5px;
  color: #333;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 12px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #665;
  cursor: pointer;
}

body.dark::-webkit-scrollbar-thumb:hover,
body.dark .activity-data::-webkit-scrollbar-thumb:hover {
  background: #3b444d;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table,
th,
td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  color: #f2f2f2;
}

th {
  background-color: #f2f2f2;
  color: #333;
}

.form {
  width: 300px;
  margin-bottom: 20px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  color: #f2f2f2;
}

label {
  color: #f2f2f2;
}

.temp-login {
  margin-top: 150px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  margin: 5px 0 20px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
  border-radius: 4px;
  outline: none;
}

.btn {
  background-color: #4CAF50;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
  border-radius: 4px;
}

.error {
  color: red;
  text-align: center;
}

.success {
  color: green;
}

.form-group {
  margin-bottom: 1em;
}

.form-group label {
  display: block;
  margin-bottom: .5em;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: .5em;
  line-height: 1.5;
  border: 1px solid #ccc;
}

.form-actions {
  margin-top: 2em;
}

.form-actions button {
  padding: .5em 1em;
  background-color: #5cb85c;
  color: white;
  border: none;
  cursor: pointer;
}

.form-actions .button-alt {
  padding: .5em 1em;
  background-color: #f0ad4e;
  color: white;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.form-actions button:hover,
.form-actions .button-alt:hover {
  opacity: 0.9;
}

.button-alt {
  margin-left: 1em;
}

.chat-container {
  display: flex;
  height: 99vh;
}

.sidebar {
  width: 100%;
  max-width: 300px;
  background-color: #202d3a;
  overflow-y: auto;
  border-right: 1px solid #ccc;
}

.chat {
  flex-grow: 1;
  padding: 30px;
  border: 1px solid #ccc;
  border-radius: 15px;
  margin-left: 5px;
}

/* Стили для каждого превью чата в сайдбаре */
.sidebar .chat-preview {
  padding: 10px;
  border-bottom: 1px solid #ccc;
  cursor: pointer;
}

.sidebar .chat-preview:hover {
  background-color: #3b444d;
}

/* Стилизация активного чата */
.sidebar .chat-preview.active {
  background-color: #3b444d;
  border-radius: 10px;
  margin-right: 3px;
}

.chat-preview a {
  text-decoration: none;
}

.use-img {
  color: #fff;
}

.use-dialog {
  text-overflow: ellipsis;
  overflow-x: hidden;
  white-space: nowrap;
  font-size: 13px;
}

.chat .message-area {
  height: calc(100% - 60px);
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
}

/* Стилизация сообщения от пользователя */
.chat .message.user {
  background-color: #e6f9ff;
}

.chat .message.manager {
  background-color: #e9ffe6;
  align-self: flex-end;
}

.textarea {
  resize: none;
  width: 88%;
  border-radius: 10px;
}

.footer__textarea {
  padding-top: 14px;
  padding-left: 16px;
}

#message-form {
  width: 100%;
}

.button {
  display: flex;
}

.but-send {
  background: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  float: right;
}

.navigation {
  position: absolute;
  bottom: 0;
  width: 320px;
  left: -35px;
}

ul {
  list-style: none;
  display: grid;
  list-style-type: decimal;
}

.nav-menu li {
  padding: 5px;
}

.img-manager {
  width: 30px;
}

.textarea.footer__textarea {
  flex-grow: 1;
  /* TextArea будет занимать все доступное пространство */
  margin-right: 10px;
  /* Отступ справа от TextArea */
}

.button {
  display: flex;
  align-items: center;
  /* Выравнивание иконок по центру по вертикали */
}

.message-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow-y: auto;
}

.message-client {
  align-self: flex-start;
  background-color: #3b444d;
  color: #fff;
  margin: 5px;
  padding: 10px;
  border-radius: 10px;
  width: 45%;
  max-width: fit-content;
}

.message-manager {
  align-self: flex-end;
  background-color: #3b444d;
  color: #fff;
  padding: 10px;
  width: fit-content;
  border-radius: 10px;
  margin-right: 5px;
  width: 45%;
  max-width: fit-content;
}

.message-input {
  width: 100%;
}

#message-form {
  display: flex;
  align-items: center;
  width: 100%;
}

.textarea {
  flex: 1;
  height: 48px;
  resize: none;
  box-sizing: border-box;
  background: #202d3a;
}

.button {
  display: flex;
}

.custom-file-upload {
  margin-right: 10px;
}

.but-send {
  width: 48px;
  height: 48px;
  border: none;
  cursor: pointer;
}

.shablon {
  text-align: center;
}

.message-status {
  font-size: 0.8em;
  color: #999;
  float: left;
  margin-top: 10px;
}

.message-time {
  color: #999;
  font-size: 0.7em;
  float: right;
  margin-top: 10px;
}