@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap");
:root {
  --dark-color-a: #2b2626;
  --dark-color-b: #2a1c00;
  --light-color: #d7dbd7;
  --success-color: #5cb85c;
  --error-color: #d9534f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  background: #fff1d5;
  margin: 0;
}
body.lock {
  overflow: hidden;
}
.app {
  position: absolute;
  padding: 1em 0;
  max-height: 800px;
  height: 100%;
  width: 100%;
}
.app::before {
  content: "";
  position: absolute;
  top: 0;
  background: #eab756;
  width: 100%;
  height: 127px;
}
.chatAppMessages {
  height: 100%;
  position: relative;
  width: 100%;
  max-height: 710px;
}

.ph-item {
  padding: 1em 0 0;
  margin: 0;
  border-bottom: 0;
  background: rgb(255 255 255 / 64%);
}
.ph-item:last-child {
  border: 1px solid #e6e6e6;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 25px;
  margin: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.2s;
  transition: 0.2s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 17px;
  width: 17px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.2s;
  transition: 0.2s;
}

input:checked + .slider {
  background-color: #e3a445;
}

input:focus + .slider {
  box-shadow: 0 0 1px #e3a445;
}

input:checked + .slider:before {
  -webkit-transform: translateX(35px);
  -ms-transform: translateX(35px);
  transform: translateX(35px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

#startup {
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: #fff1d5;
  -moz-user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
}
#loadingMessage {
  position: absolute;
  -moz-user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgb(255 255 255 / 72%);
}
#startup button {
  background: gold;
  padding: 0.5em 2em;
  font-size: 13px;
  font-weight: 500;
  margin: auto;
  display: list-item;
  outline: none;
  border-radius: 3px;
  border: 1px solid #ebc600;
  cursor: pointer;
}

.spinner-container {
  animation: rotate 2s linear infinite;
  -webkit-animation: rotate 2s linear infinite;
}

.spinner-container .path {
  stroke-dasharray: 1, 150;
  /* 1%, 101% circumference */
  stroke-dashoffset: 0;
  stroke: #eab756;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
  -webkit-animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    /* 1%, 101% circumference */
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    /* 70%, 101% circumference */
    stroke-dashoffset: -35;
    /* 25% circumference */
  }
  100% {
    stroke-dasharray: 90, 150;
    /* 70%, 101% circumference */
    stroke-dashoffset: -124;
    /* -99% circumference */
  }
}

@-webkit-keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    /* 1%, 101% circumference */
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    /* 70%, 101% circumference */
    stroke-dashoffset: -35;
    /* 25% circumference */
  }
  100% {
    stroke-dasharray: 90, 150;
    /* 70%, 101% circumference */
    stroke-dashoffset: -124;
    /* -99% circumference */
  }
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

.btn {
  cursor: pointer;
  padding: 5px 15px;
  background: var(--light-color);
  color: var(--dark-color-a);
  border: 0;
  font-size: 17px;
}

/* Chat Page */

.chat-container {
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  height: 100%;
  position: relative;
  border-radius: 0 0 10px 0;
  box-shadow: 0px 9px 30px 0px rgb(0 0 0 / 15%);
}

.chat-header {
  background: var(--dark-color-a);
  color: #fff;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  padding: 15px;
  height: 111px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 25;
  overflow: hidden;
  position: relative;
}
.chat-header-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: #f1f1f1;
  z-index: 45;
  border-bottom: 1px solid #ccc;
  padding: 0em 1em;
}
.ch-part {
  position: relative;
  padding: 0.5em 0;
}
.ch-part .logo_name {
  position: relative;
}
.ch-part .logo_name img {
  margin-right: 0.5em;
  max-width: 30px;
  border-radius: 30px;
  height: 100%;
}
.ch-part .logo_name h5 {
  font-size: 0.9em;
  font-weight: 600;
  margin: 0;
}
.ch-Button {
  display: inline-block;
  cursor: pointer;
}
.ch-part .ch-Button > button {
  background: transparent;
  border: none;
  outline: none;
  width: 30px;
  height: 100%;
  font-size: 20px;
  line-height: normal;
  color: #333;
  cursor: pointer;
  position: relative;
  margin: 0 2px;
}
.ch-part .ch-Button svg path {
  fill: #808080;
}
.ch-part .ch-Menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #f1f1f1;
  border: 1px solid #ccc;
  width: 200px;
  border-top: 0;
  padding: 0.5em 0;
}
.chat-main {
  height: calc(100% - 108px);
  height: -moz-calc(100% - 108px);
  height: -webkit-calc(100% - 108px);
  display: grid;
  grid-template-columns: 1.2fr 3fr;
  max-height: 600px;
  position: relative;
}

.dropdownMenu {
  background: transparent;
  border: none;
}
.ch-Menu ul {
  margin: 0;
  padding: 0;
}
.ch-Menu ul li {
  list-style: none;
  display: block;
}
.ch-Menu ul li button {
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0 1em;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  color: #555;
  outline: none;
  cursor: pointer;
}
.ch-Menu ul li button:hover {
  color: #000;
}
.ch-Menu ul li button:hover svg path {
  fill: #000;
}
.new_chat_side {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 25;
  left: 100%;
  background: #eeeeee;
  width: 100%;
  transition: left 0.2s ease-in-out;
}
.new_chat_side.active {
  left: 0;
}
.side_header {
  padding: 1em;
  background: #eab756;
  color: #fff;
}
.side_header button {
  outline: none;
  border: none;
  background: transparent;
  cursor: pointer;
}
.side_header h5 {
  font-size: 1.15em;
  margin: 0;
}
.chat-sidebar {
  background: #fff;
  color: #333;
  overflow: hidden;
  padding: 0 0 1em 0;
  border-radius: 0 0 0 8px;
  position: relative;
  box-shadow: 7px 0px 10px 0px rgb(0 0 0 / 36%);
  border-right: 1px solid #d1d1d1;
}

.chat-sidebar h2 {
  font-size: 20px;
  background: rgba(0, 0, 0, 0.1);
  padding: 10px;
  margin-bottom: 20px;
  font-weight: 400;
}

.chat-sidebar h3 {
  margin-bottom: 15px;
}

.chat-sidebar ul li {
  cursor: pointer;
  padding: 1em 0.5em;
  font-weight: 500;
  font-size: 14px;
  margin: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.chat-sidebar ul li .mediaContent {
  width: calc(100% - 55px);
}
.chat-sidebar ul li:hover {
  background: #f9f9f9;
}
.chat-sidebar ul li.active {
  background: #eee;
}
.chat-sidebar ul li img {
  max-width: 50px;
  height: 50px;
  margin: 0 1em 0 0em;
  border-radius: 100px;
}
.chat-sidebar ul li h5 {
  font-size: 14px;
  height: auto;
  text-transform: capitalize;
  margin: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: calc(100% - 80px);
  white-space: nowrap;
}

.chat-sidebar ul li .last_message_time {
  font-size: 13px;
  color: #777;
  width: 70px;
}

.chat-sidebar-header {
  background: #f1f1f1;
  padding: 0.5em;
}
.chat-sidebar-header button {
  background: transparent;
  outline: none;
  cursor: pointer;
  border: none;
}

.start_to_new_chat {
  font-size: 13px;
  color: #9f9f9f;
  font-weight: 600;
  height: 20px;
}
.start_to_new_chat.active svg path {
  fill: #00c900;
}

.user_image {
  position: relative;
}
.user_image img {
  border-radius: 100%;
  max-width: 50px;
}

a#leave-btn {
  background: transparent;
  color: #fff;
  font-size: 25px;
}

#chat_tabs {
  height: calc(100% - 75px);
  height: -moz-calc(100% - 75px);
  height: -webkit-calc(100% - 75px);
  position: relative;
}
#chat_tabs .chat_tab {
  display: none;
  height: 100%;
}
#chat_tabs .chat_tab.active {
  display: block;
}
.chat_wrapper {
  position: relative;
  width: 100%;
  min-height: 400px;
  background: #fff1d5;
}
.chat-messages {
  padding: 3em 1em;
  height: 100%;
  overflow-y: scroll;
  position: relative;
  z-index: 35;
  display: block;
  max-height: 530px;
}
.chat-messages::-webkit-scrollbar {
  transition: all 0.5s;
  width: 5px;
  height: 1px;
  z-index: 10;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: #b3ada7;
}
.chat-messages ::-webkit-scrollbar-track {
  background: transparent;
}
.chat_wrapper::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.1;
  background-image: url("../../bg.png");
  background-repeat: repeat;
  background-position: center;
  background-size: 50%;
}

.chat-messages .message {
  color: #000;
  clear: both;
  line-height: 18px;
  font-size: 15px;
  padding: 8px;
  position: relative;
  margin: 8px 0;
  max-width: 85%;
  word-wrap: break-word;
  background: #fff;
  position: relative;
  z-index: 2;
  border-radius: 0px 5px 5px 5px;
  float: left;
  border: 1px solid #eee;
  box-shadow: 0 1px 0.5px rgb(0 0 0 / 13%);
}

.chat-messages .message.me {
  background: #fff2b8;
  border-radius: 5px 0px 5px 5px;
  float: right;
  text-align: right;
  border: 1px solid #ffe988;
}
.chat-messages .message .image_preview {
  max-width: 250px;
  position: relative;
  border: 2px solid #eab756;
  border-radius: 4px;
  margin: 0.5em auto;
}
.chat-messages .message .image_preview .preview_overlay_wrapper {
  width: 100%;
  height: 250px;
  min-width: 240px;
  background-repeat: no-repeat;
  background-color: #fff;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}
.chat-messages .message .image_preview .preview_overlay_wrapper svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  background: rgb(255 255 255 / 76%);
  padding: 7em;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
}
.chat-messages .message .image_preview .preview_overlay_wrapper:hover svg {
  opacity: 1;
  visibility: visible;
}
.chat-messages .message .image_preview .preview_overlay_wrapper svg path {
  fill: #555;
}

.chat-messages .message:not(.system):after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
}

.chat-messages .message.system {
  width: 100%;
  max-width: 100%;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  background: #fff0b9;
  border-color: #ffe481;
}
.chat-messages .message.system p {
  margin: 0;
}

.chat-messages .message.received:after {
  border-width: 0px 10px 10px 0;
  border-color: transparent #eee transparent transparent;
  top: 0;
  left: -10px;
}

.chat-messages .message.me:after {
  border-width: 0px 0 10px 10px;
  border-color: transparent transparent transparent #ffe988;
  top: 0;
  right: -10px;
}
.chat-messages .message .text {
  margin-bottom: 0;
}
.chat-messages .message.me .text {
  text-align: left;
}

.chat-messages .message .meta {
  font-size: 15px;
  font-weight: bold;
  color: #ffd123;
  font-weight: 400;
  margin-bottom: 7px;
}
.chat-messages .message.readed .meta svg path {
  fill: #00f300;
}

.chat-messages .message .meta span {
  color: #a7a7a7;
  font-size: 11px;
  font-style: italic;
  padding: 0;
  font-weight: 500;
}

.chat-form-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 36;
  padding: 0.5em;
  background-color: #ededed;
}

.chat-form-container input[type="text"] {
  font-size: 14px;
  height: 50px;
  flex: 1;
  border: none;
  outline: none;
  padding: 0 1em;
  border-radius: 30px 0 30px 30px;
  max-width: calc(100% - 50px);
  margin-right: 10px;
}

/* Join Page */
.join-container {
  max-width: 500px;
  margin: 80px auto;
  color: #fff;
  position: relative;
  z-index: 2;
}

.join-header {
  text-align: center;
  padding: 20px;
  background: var(--dark-color-a);
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.join-main {
  padding: 30px 40px;
  background: var(--dark-color-b);
}

.join-main p {
  margin-bottom: 20px;
}

.join-main .form-control {
  margin-bottom: 20px;
}

.join-main label {
  display: block;
  margin-bottom: 5px;
}

.join-main input[type="text"] {
  font-size: 16px;
  padding: 5px;
  height: 40px;
  width: 100%;
}

.join-main select {
  font-size: 16px;
  padding: 5px;
  height: 40px;
  width: 100%;
}

.join-main .btn {
  margin-top: 20px;
  width: 100%;
}

.side_wrapper {
  position: relative;
  padding: 0.5em;
  background: #eee;
}
.search_factory {
  width: calc(100% - 30px);
  border-radius: 100px;
  border: none;
  outline: none;
  padding: 0.8em 1em;
  font-size: 14px;
  font-weight: 500;
  margin: auto 0 auto auto;
}

.config_list {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
}
.config_list li {
  list-style: none;
  display: block;
  background: transparent;
  padding: 0;
}
.config_list li label {
  color: #333;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.users_currentchat_wrapper {
  position: relative;
  overflow-x: hidden;
  height: calc(100% - 110px);
  height: -moz-calc(100% - 110px);
  height: -webkit-calc(100% - 110px);
}
.users_currentchat_wrapper,
.users_currentchat_wrapper ul {
  position: relative;
}

.users_newchat_wrapper {
  position: relative;
}
.users_newchat_wrapper ul {
  margin: 0;
  padding: 0;
}

.config_header {
  margin-bottom: 0.5em;
}
.config_header img {
  border-radius: 100px;
  margin-bottom: 0.5em;
  max-width: 100px;
}
.config_header h5 {
  margin: 0 0 1em;
  font-size: 1.15em;
  text-transform: capitalize;
}
.list_of_item_profile {
  font-size: 14px;
  padding: 1em 0.5em;
  margin: 0.5em 0;
  text-align: left;
  display: block;
  width: 100%;
  background: #fff;
  border-radius: 5px;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  white-space: nowrap;
}

.mobileMenu {
  position: relative;
  display: none;
}
.mobileMenu button {
  background: transparent;
  border: none;
  outline: none;
}
.mobileMenu button svg path {
  fill: #eee;
}
body.chatListActive .mobileMenu button svg path {
  fill: gold;
}

@media (max-width: 768px) {
  .app {
    padding: 0;
    height: auto;
  }
  .app::before {
    display: none;
  }
  .chat-header {
    height: 60px;
    padding: 0 15px;
  }
  .mobileMenu {
    display: block;
  }
  .chat-main {
    display: block;
    max-height: 100vh;
  }
  body .chat-sidebar {
    height: 100%;
    position: absolute;
    z-index: 99;
    width: 100%;
    visibility: hidden;
    margin-left: calc(-100% + -20px);
    transition: all 0.8s cubic-bezier(1, -0.4, 0, 1.15);
    -moz-transition: all 0.8s cubic-bezier(1, -0.4, 0, 1.15);
    -webkit-transition: all 0.8s cubic-bezier(1, -0.4, 0, 1.15);
  }
  body.chatListActive .chat-sidebar {
    margin-left: 0;
    visibility: visible;
  }
  .chat_wrapper {
    min-height: unset;
    height: calc(100vh - 60px);
    height: -moz-calc(100vh - 60px);
    height: -webkit-calc(100vh - 60px);
  }
}

.attachment_add {
  width: 50px;
  height: 50px;
  border: none;
  background: none;
  cursor: pointer;
  outline: none !important;
  padding: 10px;
}
.ActionBarsList {
  position: absolute;
  bottom: 70px;
  width: 50px;
}
.ActionBarsList ul {
  margin: 0;
  padding: 0;
}
.ActionBarsList ul li {
  list-style: none;
  display: block;
  margin: 5px 0;
}
.ActionBarsList ul li button {
  width: 50px;
  height: 50px;
  line-height: 30px;
  text-align: center;
  border-radius: 30px;
  outline: none !important;
  background: #eab756;
  padding: 10px;
  border: 2px solid #dfa22f;
  cursor: pointer;
}
.ActionBarsList ul li button:hover {
  background: #dfa22f;
}
#newChatSvg {
  font-size: 10em;
  color: #f7f7f7;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

body.dark .app::before {
  background: #543700;
}
body.dark {
  background: #1a1717;
}
body.dark .chat-sidebar {
  background: #342d2d;
}
body.dark .chat-sidebar-header {
  background-color: #3c3434;
}
body.dark .new_chat_side,
body.dark .side_wrapper {
  background-color: #483f3f;
}
body.dark .search_factory {
  background-color: #555;
  color: #fff;
}
body.dark .chat-sidebar ul li h5 {
  color: #d5d5d5;
}
body.dark .chat-sidebar ul li {
  background: #504545;
}
body.dark .config_list li label {
  color: #afafaf;
}
body.dark .chat_wrapper {
  background: #221e1e;
}
body.dark .side_header {
  background: #322b2b;
}
body.dark .chat-sidebar ul li {
  border-bottom: 1px solid #545454;
}
body.dark a#leave-btn svg path {
  fill: #858585;
}

body.dark .side_header button svg path {
  fill: #b9b9b9;
}
body.dark .side_header {
  color: #b9b9b9;
}
body.dark .chat-form-container {
  background-color: #4c4343;
}
body.dark .chat-form-container input[type="text"] {
  background: #4e4e4e;
  color: #eee;
}
body.dark .chat-messages .message.received {
  border: 1px solid #42483d;
  background: #3a3a3a;
  color: #cdcdcd;
}
body.dark .chat-messages .message.received:after {
  border-color: transparent #42483d transparent transparent;
}
body.dark .chat-messages .message.me:after {
  border-color: transparent transparent transparent #644224;
}
body.dark .chat-messages .message.me {
  background: #644224;
  border: 1px solid #644224;
  color: #cfcfcf;
}
body.dark .chat-messages .message.system {
  background: #555555;
  border-color: #626262;
  color: #bbbbbb;
}
body.dark .chat-sidebar {
  border-right-color: #3a3a3a;
}
body.dark .chat-sidebar ul li.active {
  background: #5e5454;
}

body.dark #newChatSvg {
  color: #3e3737;
}
body.dark .chat_wrapper::after {
  opacity: 0.3;
}
body.dark .chat-form-container .btn {
  background: #895937;
}
body.dark .chat-header-top {
  background: #3c3434;
  border-bottom-color: #3a3a3a;
}
body.dark .ch-part .logo_name h5 {
  color: #ced5d5;
}
body.dark .ph-item {
  background: rgb(26 23 23 / 27%);
  border: 1px solid #423b3b;
  border-bottom: none;
}
body.dark .ph-row .empty {
  background-color: hsla(0, 0%, 100%, 0);
}
body.dark .ph-item:last-child {
  border: 1px solid #423b3b;
}
body.dark .ph-avatar {
  background-color: #4e4e4e;
}
body.dark .ph-row div {
  background-color: #4e4e4e;
}

body.dark .ch-part .ch-Menu {
  background: #3c3434;
  border: 1px solid #3c3434;
}
body.dark .ch-Menu ul li button:hover {
  color: #9d9d9d;
}
body.dark .ch-Menu ul li button:hover svg path {
  fill: #9d9d9d;
}
