@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;;
  scrollbar-width: none;
  color: #000;
}

body {
  font-family: "Open Sans", sans-serif;;
  margin: 20px;
  line-height: 1.6;
  display: flex;
  justify-content: center;
  padding: 0;
  min-height: 100vh;
  background-color: #f3f3f3;
}

.support-body {
  margin: 0px;
}

.main-back {
  width: 100%;
  margin-top: 100px;
  display: flex;
  justify-content: center;
  padding-bottom: 50px;
}

.main-back-support {
  width: 100%;
  background-color: #000;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 99;
  border-bottom: 2px solid #30363d;
  background-color: white;
  color: #000;
}

.header-start {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.header-start h3 {
  font-size: 1.5em;
}

.header_logo {
  width: 50px;
}

hr {
  height: 2px;
  background-color: #30363d;
  border: none;
}

.logo {
  font-size: 3em; 
}

.navigation {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.action-count-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: rgb(118, 118, 118);
  border-radius: 100%;
  margin-left: 5px;
  color: #000;
}

a {
  text-decoration: none;
  color: #000;
}

.header-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mainBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  font-size: 16;
  border-radius: 10px;
  padding: 5px;
  border: 1px solid #dc3545;
  color: #dc3545;
  cursor: pointer;
  transition: 0.5s;
}

.mainBtn:hover {
  background-color: #dc3545;
  color: #fff;
}

nav a {
  font-size: 1.5em;
  text-decoration: none;
  font-weight: 500;
}

.menu-img {
  width: 30px;
}

.orders-list {
  width: 100%;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  text-align: center;
}

.orders-list h1 {
  margin-bottom: 20px;
}

.order-item {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  background-color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.order-header h3 {
  margin: 0;
  font-size: 1.2em;
  color: #007bff;
}

.order-content p {
  margin: 8px 0;
  font-size: 0.9em;
}

.order-actions {
  text-align: right;
}

.order-actions p {
  margin: 5px 0;
  font-weight: bold;
}

.order-actions a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.9em;
  color: #000;
  background-color: #007bff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.order-actions a:hover {
  background-color: #0056b3;
}

/* MAIN PAGE */

.main-page {
  width: 100%;
  padding: 0px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.main-page h1 {
  margin: 0 auto;
}

.main-page-row-1 {
  display: flex;
  gap: 50px;
}
.main-page-row-2 {
  display: flex;
  gap: 50px;
}

.main-page-boxes {
  padding: 20px;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  width: 33%;
  height: 300px;
  border-radius: 8px;

}

/* ---------------- LOGS ---------------- */

.logs-back {
  width: 100%;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.logs-page-title {
  display: flex;
  justify-content: space-between;
}

.clear-logs-btn {
  padding: 15px;
  color: #fff;
  background-color: rgb(238, 17, 5);
  border: none;
  border-radius: 15px;
  font-weight: bold;
  cursor: pointer;
}

.files-btn {
  padding: 15px;
  color: #fff;
  background-color: rgb(238, 17, 5);
  border: none;
  border-radius: 15px;
  font-weight: bold;
  cursor: pointer;
}

.status-success {
  background-color: green;
}

.status-error {
  background-color: red;
}

/* ---------------- USER LIST ---------------- */
.user-list-page {
  padding: 2rem;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
}

.container {
  min-width: 700px;
  max-width: 1400px;
  margin: 0 auto;
}

.user-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.user-list-header-btn {
  text-align: center;
  background-color: #dc3545;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
}

.user-list-header h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #333;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-info {
  background-color: #007bff;
  color: #fff;
}

.user-list-header-btn {
  width: 100px;
}

.btn-secondary {
  background-color: #6c757d;
  color: #fff;
}

.table-responsive {
  overflow-x: auto;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.user-table th,
.user-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.user-table th {
  background-color: #f1f1f1;
  font-weight: 600;
  color: #555;
}

.user-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.no-photo {
  color: #888;
  font-style: italic;
}

.status {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
}

.status.verified {
  background-color: #d4edda;
  color: #155724;
}

.status.applied {
  background-color: #fff3cd;
  color: #856404;
}

.status.unverified {
  background-color: #f8d7da;
  color: #721c24;
}

@media (max-width: 768px) {
  .user-list-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-list-header h1 {
    margin-bottom: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .user-table th,
  .user-table td {
    padding: 0.5rem;
    font-size: 0.85rem;
  }

  .user-photo {
    width: 30px;
    height: 30px;
  }
}

/* ORDERS LIST NEW */

.orders-list-page {
  padding: 30px;
  background-color: #f9f9f9;
}

.orders-header-user {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.orders-header-user-photo {
  width: 100px;
  border-radius: 20px;
}

.orders-header-user h4 {
  font-size: 20px;
}

.orders-header h1 {
  margin-bottom: 20px;
  font-size: 28px;
  color: #333;
}

.table-responsive {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.06);
}

.orders-table th,
.orders-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
  white-space: nowrap;
}

.orders-table th {
  background-color: #f1f1f1;
  font-weight: 600;
}

.orders-table tr:hover {
  background-color: #f8f8f8;
}

.status-новая,
.status-новая td {
  color: #007bff;
}

.status-в_работе,
.status-в_работе td {
  color: #ffc107;
}

.status-завершена,
.status-завершена td {
  color: #28a745;
}

.status-отменена,
.status-отменена td {
  color: #dc3545;
}

.btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
}

.btn-info {
  background-color: #17a2b8;
  color: white;
}

.btn-info:hover {
  background-color: #138496;
}

.empty-message {
  font-style: italic;
  color: #666;
  margin-top: 20px;
}

.status.Новая { color: #007bff; }
.status.В_работе { color: #ffc107; }
.status.Завершена { color: #28a745; }



/* ----------------  Table Styling ---------------- */
.user-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.user-table th, .user-table td {
  padding: 10px;
  text-align: center;
  border: 1px solid #ddd;
}

.user-table th {
  font-size: 1em;
  color: #000;
}

.user-details-back {
  width: 100%;
  height: 100%;
}

.orders-view-btn {
  padding: 10px;
  background-color: #FF4267;
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
}


.user-details {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
}

.lawyer-details {
  margin-top: 30px;
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
}

.lawyer-verify-buttons-back {
  width: 100%;
  height: 50px;
}

/* ---------------- Order View NEW ---------------- */

.order {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.order-wrapper {
  padding: 30px;
  width: 700px;
  margin: 0 auto;
  font-family: 'Segoe UI', sans-serif;
  color: #000f28;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.2);
}

.order-section-top {

}

.dfsb {
  display: flex;
  justify-content: space-between;
}

.df {
  display: flex;
}

.order-section-top-item {
  padding: 5px 10px 5px 10px;
  background-color: rgba(0, 100, 251, 0.1);
  border-radius: 20px;
  color: #0b0027;
  margin-right: 10px;
}

.order-section-bottom {
  display: flex;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  /* padding: 20px; */
}

.order-section-bottom-left {
  width: 70%;
  border-right: 1px solid rgba(0, 0, 0, 0.3);
}

.order-section-bottom-left-header {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.order-section-bottom-left-header-user {
  display: flex;
  gap: 5px;
}

.order-section-bottom-left-header-user-details {
  display: flex;
  flex-direction: column;
}

.order-section-bottom-left-header-user-details h4 {
  font-weight: normal;
}

.order-section-bottom-left-header-user-details h6 {
  font-weight: normal;
}

.order-user-photo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 100%;
}

.order-section-bottom-left-header-user-details {

}

.order-section-bottom-left-middle {
  min-height: 200px;
  padding: 10px;
  word-wrap: break-word;       /* Перенос длинных слов */
  overflow-wrap: break-word;   /* Современный вариант переноса */
  white-space: normal;         /* Разрешает перенос строк */
}

.order-section-bottom-left-middle h4 {
  font-size: 24px;
  margin-bottom: 8px;
}

.order-section-bottom-left-middle h6 {
  font-weight: normal;
  font-size: 20px;
  word-break: break-word;      /* Переносит слишком длинные слова */
  overflow-wrap: break-word;
}

/* .order-section-bottom-left-middle {
  min-height: 200px;
  padding: 10px;
  background-color: #007bff;
}

.order-section-bottom-left-middle h4 {
  font-size: 24px;
}

.order-section-bottom-left-middle h6 {
  font-weight: normal;
  font-size: 20px;
} */

.order-section-bottom-left-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.order-date {
  font-size: 14px;
}

.order-section-bottom-left-footer h4 {
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

.order-section-bottom-left-footer h6 {
  font-size: 12px;
  font-weight: normal;
}

.order-section-bottom-right {
  width: 30%;
}

.order-section-bottom-right h4 {
  font-weight: normal;
  font-size: 14px;
}

.order-section-bottom-right h6 {
  font-size: 12px;
  font-weight: normal;
}

.order-section-bottom-right-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 33.3%;
  padding: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.order-section-bottom-right-middle {
  display: flex;
  align-items: start;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  height: 33.3%;
  padding: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.order-section-bottom-right-footer {
  display: flex;
  align-items: center;
  justify-content: start;
  height: 33.3%;
  padding: 10px;
}

.order-section-bottom-right-middle-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: bold;
}

.order-price-svg {
  width: 25px;
}

/* Order Offers */

.offer-wrapper {
  padding: 10px;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.offer-user {
  display: flex;
  justify-content: space-between;
}

.offer-user-rating {
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-star {
  width: 20px;
  height: 20px;
}

.offer-details h5 {
  font-weight: normal;
}

.offer-user-df {
  display: flex;
  align-items: center;
  gap: 10px;
}

.offer-user-details h4 {
  font-weight: normal;
}

.offer-user-details h6 {
  font-weight: normal;
}



/*  */

.section-title {
  font-size: 22px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 15px;
  padding-bottom: 4px;
  color: #1a202c;
}

.order-section {
  margin-bottom: 30px;
}

.order-user-box {
  padding: 15px;
  /* background-color: rgba(251, 3, 3, 0.3); */
  display: flex;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid #dc3545;
  cursor: pointer;
}

.order-details p,
.status-item,
.order-section p {
  margin: 6px 0;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.status-item {
  background-color: #f7fafc;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.file-list {
  list-style: none;
  padding: 0;
}

.file-link {
  display: inline-block;
  padding: 8px 12px;
  background-color: #edf2f7;
  border: 1px solid #cbd5e0;
  border-radius: 5px;
  color: #2d3748;
  text-decoration: none;
  margin-bottom: 6px;
  transition: background 0.2s;
}

.file-link:hover {
  background-color: #e2e8f0;
}

.offer-list {
  list-style: none;
  padding: 0;
}

.offer-item {
  background-color: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 10px;
}

/* ---------------- USER PROFILE NEW ---------------- */

.profile {
  padding: 30px;
  min-width: 1000px;
  margin: 0 auto;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}

.triple-block {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.triple-block-left {
  display: flex;
  flex-direction: column;
  width: 70%;
  gap: 30px;
}

.triple-block-left-header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 40px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.2);
}

.triple-block-left-header-top {
  display: flex;
  align-items: center;
  gap: 30px;
}

.triple-block-left-header-bottom {
  padding-left: 5px;
}

.triple-block-user-photo-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.triple-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 20px;
}

.delete-user-photo-btn {
  border: 1px solid #dc3545;
  padding: 10px;  
  border-radius: 10px;
  font-weight: bold;
  color: #dc3545;
  transition: 0.5s;
}

.delete-user-photo-btn:hover {
  background-color: #dc3545;
  color: #fff;
}

.triple-local {
  width: 20px;
  object-fit: cover;
}

.triple-block-left-header-details-little {
  display: flex;

  gap: 10px;
}

.triple-block-left-header-details h6 {
  font-weight: normal;
}

object {
  width: 30px;
  height: 30px;
  object-fit: cover;
}

.triple-block-left-header-details {
  width: 100%;
}

.triple-block-left-footer {
  display: flex;
  flex-direction: column;
  padding: 40px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.2);
}

.triple-block-left-footer h4 {
  margin-bottom: 10px;
}

.triple-block-left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.user-main-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.triple-block-right {
  display: flex;
  flex-direction: column;
  width: 30%;
  gap: 20px;
  padding: 40px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.2);
}

.user-order-details-btn {
  border: 1px solid #dc3545;
  border-radius: 10px;
  padding: 10px;
  color: #dc3545;
}

.double-block {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.double-block-left {
  width: 50%;
  display: flex;
  flex-direction: column;
  padding: 40px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.2);
}

.double-block-left h4 {
  margin-bottom: 10px;
}

.double-block-right {
  width: 50%;
  display: flex;
  flex-direction: column;
  padding: 40px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.2);
}

.lawyer-categories-back {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lawyer-category-box {
  display: flex;
  gap: 10px;
  align-items: center;  
}

.lawyer-category-box object {
  width: 30px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 20px;
  color: #1a202c;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}

.profile-user {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.profile-wrapper .user-photo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.user-info p {
  margin: 5px 0;
}

.lawyer-details p {
  margin: 8px 0;
}

.file-downloads {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
}

.btn-primary {
  background-color: #3182ce;
  color: #fff;
}

.btn-danger {
  background-color: #e53e3e;
  color: #fff;
}

.btn-verified {
  background-color: #38a169;
  color: #fff;
}

.btn-submit {
  background-color: #2b6cb0;
  color: #fff;
  margin-top: 10px;
}

.btn-download {
  background-color: #edf2f7;
  color: #2d3748;
  border: 1px solid #cbd5e0;
}

.textarea {
  width: 100%;
  height: 80px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
}

.verification-status p {
  margin: 10px 0;
}

.verified {
  color: #38a169;
}

.pending {
  color: #d69e2e;
}

.not-verified {
  color: #e53e3e;
}

.verify-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.verify-cancel-form,
.verify-reject-form {
  margin-top: 15px;
}

.hidden {
  display: none;
}

.reviews {
  margin-top: 15px;
}

.review-list {
  list-style: none;
  padding-left: 0;
}

.review-item {
  padding: 10px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* MAIN PAGE NEW */

.main-page-container {
  background-color: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 700px;
  max-width: 1200px;
  margin: 0 auto;
}

.main-page-container h1 {
  font-size: 28px;
  margin-bottom: 25px;
  color: #333;
}

.main-page-container .stats-section {
  margin-bottom: 40px;
}

.main-page-container .stats-section h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #444;
}

.main-page-container .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.main-page-container .card {
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 16px;
  color: #000;
  border: 1px solid #dc3545;
  transition: transform 0.2s ease;
}

.main-page-container .card:hover {
  transform: translateY(-3px);
}

.main-page-container b {
  color: #000;
}

/* ---------------- Action Buttons ---------------- */
.btn-admin {
  text-align: center;
  padding: 5px 10px;
  font-size: 0.9em;
  background-color: #0d1117;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.btn-info {
  background-color: #dc3545;
  color: #fff;
}

.btn-info:hover {
  background-color: #017a25;
}

.btn-danger {
  background-color: #dc3545;
}

.btn-danger:hover {
  background-color: #c82333;
}

.admin-btn-back {
  display: flex;
  justify-content: space-between;
}

/* ---------------- Styling for User Photos ---------------- */
.user-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: block;
  margin: auto;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.no-photo {
  font-size: 0.9em;
  color: #999;
  text-align: center;
  display: block;
}


h2 {
  margin-bottom: 10px;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 10px;
}

.file-item a {
  text-decoration: none;
  color: blue;
}

.file-item a:hover {
  text-decoration: underline;
}

.nav-menu::after {
  content: "";
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 5px;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform .5s;
} 

.navigation a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------------- LOGIN ---------------- */

.btnLogin {
  width: 130px;
  height: 50px;
  padding: 10px 20px 10px 20px;
  outline: none;
  background: transparent;
  border: 2px solid #fff;
  outline: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.5em;

  font-weight: 500;
  margin-left: 40px;
  transition: .5s;
  text-decoration: none;
}

.navigation .btnLogin:hover {
  background: #fff;
  color: rgb(48, 56, 65);
}

.header-buttons-mobile {
  display: none;
}

.main-btn {
  display: inline-block;
  align-items: center;
  justify-content: center;
  padding: 5px;
  outline: none;
  background: transparent;
  border: 2px solid #fff;
  outline: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.5em;

  transition: .5s;
  text-decoration: none;
}

.main-btn:hover {
  background-color: #000;
  color: rgb(48, 56, 65);
}

.icon-menu {
  display: none;
}

.wrapper {
  position: relative;
  width: 400px;
  height: 500px;
  background: #fff;
  border: 2px solid #30363d;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transform: scale(0);
  transition: transform .5s ease, height .2s ease;
}

.wrapper.active-pop {
  transform: scale(1);
}

.wrapper.active {
  height: 650px;
}

.wrapper .form-box {
  width: 100%;
  padding: 40px;
}

.wrapper .form-box.login {
  transition: transform .18s ease;
  transform: translateX(0);
}

.wrapper.active .form-box.login {
  transition: none;
  transform: translateX(-400px);
}

.wrapper .form-box.register {
  position: absolute;
  transition: none;
  transform: translateX(400px);
}

.wrapper.active .form-box.register {
  transition: transform .18s ease;
  transform: translateX(0);
}

.wrapper .icon-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 45px;
  background: #303841;
  font-size: 2em;

  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom-left-radius: 20px;
  cursor: pointer;
  z-index: 1;
}

.form-box h2 {
  font-size: 2em;
  color: #000;
  text-align: center;
}

.input-box {
  position: relative;
  width: 100%;
  height: 50px;
  border-bottom: 2px solid #ffffff;
  margin: 30px 0px 20px 0px;
}

.log-pass {
  background: url("/static/img/chat-background.png") no-repeat right center;
  padding-right: 20px;
}

.auth-error {
  width: 100%;
  text-align: left;
  margin-bottom: 30px;
  color: red;
}

.input-box label {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  font-size: 1em;
  color: #000;
  font-weight: 500;
  pointer-events: none;
  transition: .5s;
}

.input-box input:focus~label,
.input-box input:valid~label {
  top: -5px;
}

.input-box input {
  width: 100%;
  height: 100%;
  border: 2px solid #f3f3f3;
  border-radius: 8px;
  outline: none;
  font-size: 1em;
  color: #000;
  font-weight: 600;
  padding: 0 35px 0 5px;
}

.input-box .icon {
  position: absolute;
  right: 8px;
  font-size: 1.2em;
  color: #ffffff;
  line-height: 57px;
}

.remember-forgot {
  font-size: .9em;
  color: #ffffff;
  font-weight: 500;
  margin: -15px 0 15px;
  display: flex;
  justify-content: space-between;
}

.remember-forgot label input {
  accent-color: #ffffff;
  margin-right: 3px;
}

.remember-forgot a {
  color: #ffffff;
  text-decoration: none;
}

.remember-forgot a:hover {
  text-decoration: underline;
}

.invisible_info {
  display: none;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 45px;
  background: #FF4267;
  border: none;
  outline: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2em;
  color: #fff;
  font-weight: 500;
}

.box {
  position: relative; 
  width: 100%;
  height: 100%;
  margin: 50px 50px 50px 50px;
  padding: 0px 0px 50px 50px;
  border-radius: 20px;
  border: 2px solid #30363d;
}

@keyframes dropDownBtnIn {
  from {
    scale: 0;
    transform: rotate(360deg);
    opacity: 0;
    margin-top: 30px;
  }
  to {
    scale: 1;
    transform: rotate(0deg);
    opacity: 100;
    margin-top: 0px;
  }
}

@keyframes dropDownBtnOut {
  from {
    scale: 1;
    transform: rotate(0deg);
  }
  to {
    scale: 0;
    transform: rotate(360deg);
    opacity: 0;
    margin-top: 30px;
  }
}

/* ---------------- Activity ---------------- */

.activity-box {
  width: 30%;
  height: 100%;
  margin: 50px 50px 50px 50px;
  padding: 50px;
  border-radius: 20px;
  border: 2px solid #30363d;
  overflow: hidden;
}

.activity-box h2 {
  margin-bottom: 20px;
}

.activity-main {
  width: 100%;
  display: flex;
  align-items: center;
  background-color: #4671ea;
}

.activity-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 5px;
  border-radius: 15px;
  padding: 10px;
  transition: 0.7s;

  border: 2px solid #30363d;
}

.act-item-notseen {
  background-color: rgba(47, 47, 47, 0.3);
}

.activity-remove-btn {
  padding: 5px;
  border-radius: 5px;

  transition: 1s;
}

.activity-item-main {
  display: flex;
  width: 100%;
  justify-content: space-between;
  cursor: pointer;

}

.activity-item-start {
  width: 100%;
  order: 2;
}

.activity-item-type {
  width: 100%;
  display: flex;
  align-items: start;
  font-weight: 900;
}

.activity-item-end {
  display: flex;
  justify-content: end;
  align-items: end;
  flex-direction: column;
  color: #000 ;
}

.activity-remove-btn:hover {
  scale: 1.1;
}

.activity-item-date {
  font-size: 15px;
}

/* ---------------- Media Style ---------------- */

@media screen and (max-width: 1620px) {
  .logo {
    font-size: 1.7em;
  }

  nav a {
    font-size: 1.5em;
    font-weight: 400;
  }
}

@media screen and (max-width: 1540px) {
  nav a {
    font-size: 1.3em;
    font-weight: 400;
  }
}

@media screen and (max-width: 1480px) {
  nav a {
    font-size: 1.3em;
    font-weight: 400;
  }
}

@media screen and (max-width: 1360px) {
  nav a {
    font-size: 1.2em;
    font-weight: 400;
  }
}
@media screen and (max-width: 1285px) {

  nav a {
    font-size: 1em;
    font-weight: 400;
  }

  .header-buttons .btnLogin {
    width: 80px;
    height: 40px;
    font-size: 1.1em;
    font-weight: 500;
  }
}

/* SUPPORT */

.chat-container {
  width: 100%;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.chat-list {
  width: 25%;
  background-color: #1F2123;
  overflow-y: auto;
}

.chat-list-header {
  padding: 20px;
  gap: 20px;
  display: flex;
  align-items: center;
  height: 100px;
  border-bottom: 1px solid #9b9b9b;
}

.back-button {
  color: #007bff;
}

.telegram-search-wrapper {
  display: flex;
  align-items: center;
  height: 40px;
  background-color: #171717;
  border: 1px solid #343333;
  color: #fff;
  border-radius: 20px;
  padding-left: 14px;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 300px;
  transition: box-shadow 0.2s;
}

.telegram-search-wrapper:focus-within {
  box-shadow: inset 0 0 0 1.5px #1a73e8;
}

.telegram-search-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 15px;
  color: #fff;
}

.chat-item {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.chat-item-wrapper {
  padding: 0px 10px 0px 10px;
}

.chat-list-wrapper {
  padding-top: 10px;
}

.chat-item-back {
  overflow: hidden;
  box-sizing: border-box;
  background-color: #1F2123;
  display: flex;
  gap: 10px;
  padding: 15px;
  cursor: pointer;
  border-radius: 15px;
  transition: background 0.3s;
}

.chat-item-back-selected {
  overflow: hidden;
  box-sizing: border-box;
  background-color: #2c1b72;
  border-radius: 15px;
  display: flex;
  gap: 10px;
  padding: 15px;
  cursor: pointer;
  transition: background 0.3s;
}

/* .chat-item {
  
} */

.chat-item-header-text {
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.chat-item-user-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-item-user-type {
  font-size: 12px;
  color: #017a25;
}

.chat-item-back:hover {
  background-color: #3e3e3e;
}

.chat-user {
  font-weight: normal;
  color: #fff;
}

.chat-last-message-back {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.chat-last-message {
  font-size: 0.9em;
  color: #cecdcd;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.unseen-cnt {
  min-width: 20px;
  height: 20px;
  aspect-ratio: 1 / 1; /* всегда делает элемент квадратным */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* идеально круглый */
  box-sizing: border-box;
  padding: 2px; /* чуть больше для воздуха */
  font-size: 12px;
  color: #fff;
  background-color: #2c1b72;
}

.chat-window {
  width: 75%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chat-header {
  border-left: 1px solid #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background-color: #1F2123;
}

.chat-header-user {
  display: flex;
  gap: 20px;
  align-items: center;
}

.chat-header-info {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.end-chat-button {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ff4d4f;
  color: #ff4d4f;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.5s;
}

.end-chat-button:hover {
  background-color: #e33e3e;
  color: #fff;
}

.chat-message-user-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-message {
  margin-bottom: 8px;
}

.chat-messages {
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 20%;
  padding-right: 20%;
  height: 81vh;
  overflow-y: auto;
}

.chat-messages-back-image {
  /* padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 20%;
  padding-right: 20%; */
  height: 100%;
  overflow-y: auto;

  background-image: url('../../static/img/chat-back.png'); /* замени на фактическое имя файла */
  background-size: cover;      /* сохраняет пропорции, заполняя блок */
  background-position: center; /* центрирует изображение */
  background-repeat: no-repeat;
}

.no-chat-window {
  width: 100%;
  height: 100%;
  overflow-y: auto;

  background-image: url('../../static/img/chat-back.png'); /* замени на фактическое имя файла */
  background-size: cover;      /* сохраняет пропорции, заполняя блок */
  background-position: center; /* центрирует изображение */
  background-repeat: no-repeat;
}

.message-form-back {
  padding-left: 20%;
  padding-right: 20%;
}

.message {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  max-width: 60%;
}

.message.user {
  background-color: #e0f7fa;
  align-self: flex-start;
}

.message.admin {
  background-color: #c8e6c9;
  align-self: flex-end;
}

.chat-input {
  display: flex;
  border-top: 1px solid #ccc;
  padding: 10px;
  background: #fff;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-right: 10px;
}

.chat-input button {
  padding: 10px 20px;
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.chat-input button:hover {
  background-color: #0097a7;
}

.empty-text {
  color: #aaa;
  text-align: center;
  margin-top: 50px;
}

.message-form {
  display: flex;
  align-items: center;
  /* padding: 12px; */
}

.message-input {
  padding: 12px 15px 0px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 20px;
  background-color: #1F2123;
  color: #fff;
  border: none;
  outline: none;
  text-decoration: none;
  margin-right: 10px;
  transition: border-color 0.2s;

  resize: none;
  height: 50px;
  /* max-height: 150px; */
    overflow-y: auto;
    box-sizing: border-box;
  width: 95%;
}

.chat-layout {
  flex: 1;
  display: flex;
  flex-direction: column-reverse; /* textarea будет внизу, и рост будет вверх */
  overflow: hidden;
}

.message-input:focus {
  border-color: #1d9bf0;
}

.message-send-button {
  overflow-y: auto;

  background-color: transparent;
  border: none;

  background-image: url('../../static/img/send.png'); /* замени на фактическое имя файла */
  background-size: cover;      /* сохраняет пропорции, заполняя блок */
  background-position: center; /* центрирует изображение */
  background-repeat: no-repeat;

  width: 40px;
  height: 40px;
  
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.5s;
}

.message-send-button:hover {
  transform: scale(1.1);
}

.support-msg-left {
  display: flex;
  justify-content: start;
  width: 100%;
}

.support-msg-right {
  display: flex;
  justify-content: end;
  width: 100%;
}

.support-msg-box-left {
  max-width: 70%;
  background-color: #1F2123;
  color: #fff;
  display: flex;
  align-items: start;
  flex-direction: column;
  border-radius: 8px;
  padding: 10px;
  word-break: break-word; /* добавлено */
  overflow-wrap: anywhere; /* дополнительная защита */
  hyphens: auto;
}

.support-msg-box-right {
  max-width: 70%;
  background-color: #2c1b72;
  color: #fff;
  display: flex;
  align-items: end;
  flex-direction: column;
  border-radius: 8px;
  padding: 10px;
  word-break: break-word; /* добавлено */
  overflow-wrap: anywhere; /* дополнительная защита */
  hyphens: auto;
}

.message-time {
  color: #cecdcd;
  font-size: 12px;
}

/* ORDER CHAT */

.order-chat-container {
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  font-family: 'Segoe UI', sans-serif;
}

.order-chat-box {
  width: 100%;
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  max-height: 600px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.message {
  display: flex;
  margin-bottom: 12px;
}

.message-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 16px;
  position: relative;
  font-size: 15px;
  line-height: 1.4;
}

.message-time {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
  text-align: right;
}

.from-client {
  justify-content: flex-start;
}

.from-client .message-bubble {
  background-color: #e1f5fe;
  color: #000;
  border-top-left-radius: 0;
}

.from-lawyer {
  justify-content: flex-end;
}

.from-lawyer .message-bubble {
  background-color: #c8e6c9;
  color: #000;
  border-top-right-radius: 0;
}


@media screen and (max-width: 1170px) {
  .nav-back-mobile {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 98;
    filter: blur(20px);
  }
  .navigation {
    top: 100px;
    right: 20px;
    position: absolute;
    background-color: #010409;
    width: 40vh;
    height: 80vh;
    display: none;
    border-radius: 20px;
    border: 2px solid #30363d;
  }

  .header-buttons-mobile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .header-buttons-mobile .btnLogin {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 80%;
    padding: 0;
    margin-top: 10px;
  }

  .header-buttons {
    display: none;
  }

  nav.mob-menu {
    display: block;
  }

  nav a {
    display: flex;
    margin: 0 auto;
    margin-top: 10px;
    font-size: 1.3em;
    font-weight: bold;
  }

  .icon-menu {
    display: flex;
    cursor: pointer;
    font-size: 3.1em;
    color: #ffffff;
    transition: .5s;
  }

  /* ------------------------- */
  body {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 0px;
    margin: 50px 20px 0px 20px;
  }

  /* HOME PAGE */
  .box {
    width: 100%;
    height: 100%;
    margin: 50px 0px 50px 0px;
    padding: 0px 0px 10px 0px;
    border-radius: 10px;
    border: 2px solid #30363d;
  }
  .category-slider {
    margin-left: -0px;
  }
  .filter_new_back {
    margin: 0 auto;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    gap: 1vh;
    align-items: center;
    font-size: 0.7em;
    font-weight: bold;
    border-radius: 10px;
  }
  .post_table {
    padding: 0px 10px 0px 10px;
    margin-right: 0px;
    font-size: 1vh;
  }
  .posts-back {
    margin: 0 auto;
    width: 100%;
    border-radius: 15px;
    border: 2px solid #30363d;
    margin-top: 10px;
    padding: 10px;
  }
  .posts_item_category {
    font-size: 1.5vh;
  }
  .post_item-date {
    font-size: 1vh;
  }

  /* VIEW PAGE */
  .post_main {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .view-page {
    width: 100%;
    margin: 50px 0px 0px 0px;
    padding: 20px;
    border: 2px solid #30363d;
    border-radius: 20px;
  }

  .post {
    width: 100%;
  }

  .post-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2vh;
    margin-bottom: 10px;
  }
  
  .view_image_back {
    margin-bottom: 10px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .view_image_inner_back {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.1);
  }
  .username-photo-post {
    margin-bottom: 10px;
  }
  .username-photo-post h2 {
    font-size: 2vh;
  }
  .post-img {
    width: 90%;
    border-radius: 15px;
  }
  /* ----------------CREATE----------------- */
  
  .create {
    width: 100%;
    margin: 50px 0px 50px 0px;
    background: transparent;
    border: 2px solid #30363d;
    border-radius: 20px;
    padding: 40px;
    position: relative;
  }
  
  .create h2 {
    color: rgb(255, 255, 255);
    font-size: 28px;
    text-align: center;
    margin-bottom: 25px;
  }
  
  .create textarea {
    width: 100%;
    resize: none;
    height: 59px;
    outline: none;
    padding: 15px;
    font-size: 16px;
    margin-top: 20px;
    border-radius: 5px;
    max-height: 330px;
    border: 1px solid #bfbfbf;
    background-color: #000;
  
  }
  
  .create .container {
    width: 100%;
    margin-top: 20px;
  }
  
  ul.ks-cboxtags {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  ul.ks-cboxtags li {
    width: 100%;
  }

  .create-types-btn {
    display: flex;
  }

  .create-types-container {
    display: none;
  }

  .drop-area {
    border: 2px dashed #ccc;
  }
  
  .image-file-upload {
    height: 20px;
  }

  .create_btn {
    width: 100%;
  }

  /* -----------PROFILE----------- */

  .profile-box {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 50px 0px 50px 0px;
    padding: 10px;
    border-radius: 20px;
    border: 2px solid #30363d;
  }
  
  .profile-user-in {
    width: 100%;
    padding: 0px 10px;
    border-radius: 15px;
    border: 2px solid #30363d;
    padding-bottom: 20px;
  }
  
  .profile-title {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 10px 0px 10px 0px;
  }
  
  .profile-email {
    margin-bottom: 20px;
  }
  
  .profile-logout-btn {
    width: 100%;
    padding: 5px;
    font-size: 1em;
    margin-bottom: 20px;
  }
  
  .profile-box .btnLogin:hover {
    background: #fff;
    color: rgb(48, 56, 65);
  }
  
  .change-profile-photo {
    margin-bottom: 20px;
    width: 100%;
    display: none;
  }
  
  .profile_photo_btn {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
  }

  .profile_info_text {
    width: 100%;
    font-size: 1.2vh;
  }

  .profile-photo-back {
    width: 220px;
    height: 150px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    margin: 0px 0px 0px 0px;
  }
  
  .profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 15px;
  }

  .profile_photo_btn {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .profile_photo_btn .simple-btn {
    margin: 0px 0px 20px 0px;
  }

  /* -----------ACTIVITY--------- */

  .activity-box {
    width: 100%;
    height: 100%;
    margin: 50px 0px 50px 0px;
    padding: 10px;
    border-radius: 20px;
    border: 2px solid #30363d;
    overflow: hidden;
  }
  
  .activity-box h2 {
    margin: 10px 0px 10px 0px;
  }
  
  .activity-main {
    width: 100%;
    display: flex;
    align-items: center;
    background-color: #4671ea;
  }
  
  .activity-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
    border-radius: 15px;
    padding: 10px;
    transition: 0.7s;
  
    border: 2px solid #30363d;
  }
  
  .activity-remove-btn {
    padding: 5px;
    border-radius: 5px;
  
    transition: 1s;
  }
  
  .activity-item-main {
    display: flex;
    width: 100%;
    justify-content: space-between;
    cursor: pointer;
  
  }
  
  .activity-item-start {
    width: 100%;
    order: 2;
  }
  
  .activity-item-type {
    width: 100%;
    display: flex;
    align-items: start;
    font-weight: 900;
  }
  
  .activity-item-end {
    display: flex;
    justify-content: end;
    align-items: end;
    flex-direction: column;
    color: #000 ;
  }
  
  .activity-remove-btn:hover {
    scale: 1.1;
  }
  
  .activity-item-date {
    font-size: 15px;
  }

  /* -----------MESSAGES-------- */

  .messages-box {
    width: 100%;
    height: 100%;
    margin: 50px 0px 50px 0px;
    padding: 10px;
    border-radius: 20px;
    border: 2px solid #30363d;
  }

  .messages-box-back {
    gap: 10px;
  }
  
  .messages-box h2 {
    margin-bottom: 10px;
    font-size: 2vh;
  }

  .user-row {
    width: 100%;
    margin-bottom: 5px;
    border-radius: 15px;
    border: 2px solid #30363d;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5vh;
  }
  
  .user-row-left {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
  }
  
  .users-name {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ----------CHAT--------- */

  /* .messages-chat-window {
    width: 100%;
    height: 350px;
  } */

  .input-main-back {
    width: 100%;
  }

  .chat-user-info h1 {
    font-size: 2vh;
  }

  .every-message-left {
    display: flex;
    justify-content: end;
    margin-bottom: 5px;
    padding-right: 10px;
  }

  .own-message {
    display: flex;
    padding: 5px;
    border-radius: 5px;
  }

  .chats-switcher h3 {
    font-size: 1em;
  }


  /* ----------LOGIN---------- */

  .wrapper {
    margin: 0px 10px 0px 10px;
  }

  .send-button {
    width: 40px;
    height: 40px;
  }

  /* ----------ERROR---------- */
  .error_info_box {
    text-align: center;
  }
  
  .error-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0px 0px 0px;
    padding: 10px;
  }
  .error-status {
    margin: 0 auto;
    font-size: 3vh;
  }
  .error-text {
    margin: 0 auto;
    font-size: 2vh;
  }
  
  .error-img-back {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    margin-right: 20px;
  }
  
  .error-img {
    width: 150px;
    border-radius: 20px;
  }

  .error_info_box .main-btn {
    margin-top: 10px;
    font-size: 1em;
  }

  ul.ks-cboxtags li label {
    width: 30%;
  }

  /* --------------------- MESSAGES ------------------ */

  .messages-chat-with-photo {
    width: 40px;
    height: 40px;
  }
  
  .user-messages-photo {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background-color: #3b3b3b;
    object-fit: cover;
  }
  
  .messages-box-back {
    margin: 50px 0px 0px 0px;
    height: 85vh;
    width: 100%;
    display: flex;
    border-radius: 20px;
    border: 2px solid #30363d;
  }
  
  .my-chats-box {
    width: 100%;
    z-index: 20;
    padding: 20px;
    overflow: hidden;
  }

  .chat-message-box {
    display: none;
    width: 100%;
    padding: 0px;
  }
  
  .my-chats-box-inner {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.3);
    padding: 0px 20px 0px 20px;
    text-align: left;
    overflow: hidden;
  }

  .chat-image-right {
    width: 15vh;
  }
  .chat-image-left {
    width: 15vh;
  }
  
  .my-chats-box-inner h3 {
    margin-left: 10px;
  }
  
  .chat-message-box-inner {
    width: 100%;
    height: 100%;
    padding: 5px 0px 0px 0px;
  }
  
  .messages-chat-window {
    width: 100%;
    height: 60vh;
    padding: 10px 0px 5px 0px;
  }

  .chat-arrow-back-btn-back {
    display: flex;
  }

  .all-exist-chats-container.active .chats-wrapper.started-chats-box-inner {
    transition: none;
    transform: translateX(-1200px);
  }
  
  .all-exist-chats-container .chats-wrapper.all-users-box-inner {
    position: absolute;
    transition: none;
    transform: translateX(1200px);
  }
}