body,
html {
    height: 100%;
    min-width: 320px;
}

body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    background-color: black;
    max-height: none;
}

.chat-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.chat-section {
    margin-bottom: 50px;
}

.section-head {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    color: black;
}

.section-title.nowrap {
    white-space: nowrap;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

.lock {
    overflow: hidden;
}

body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.chat-main {
    width: 100%;
    padding-top: 5px;
    -webkit-box-flex: 1;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
    overflow-x: hidden;
    height: 100%;
    max-height: calc(100vh - 90px);
}

* {
    padding: 0;
    margin: 0;
    border: 0;
    font-size: 100%;
  /* font: inherit; */ /* Removed since italic not working on summernote when this was on */
    vertical-align: baseline;
}

form {
    margin: 0;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border: 0;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

html,
body {
    height: 100%;
    font-size: 100%;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
}

html.fixed,
body.fixed {
    overflow: hidden;
    -ms-touch-action: none;
    touch-action: none;
}

button,
input,
optgroup,
select,
textarea {
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    background-color: transparent;
    font: inherit;
    font-size: 100%;
    text-transform: none;
    color: inherit;
    letter-spacing: inherit;
    vertical-align: baseline;
    *vertical-align: middle;
}

button,
html input[type=button],
input[type=reset],
input[type=submit] {
    -webkit-appearance: button;
    cursor: pointer;
    *overflow: visible;
}

button[disabled],
html input[disabled] {
    cursor: default;
}

input,
button,
textarea {
    font-family: inherit;
}

input::-ms-clear {
    display: none;
}

input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration,
input[type=search]::-webkit-search-results-button,
input[type=search]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    -moz-appearance: none;
}

input[type=search] {
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

textarea {
    overflow: auto;
    vertical-align: top;
    resize: vertical;
}

button {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

button,
input {
    overflow: visible;
    line-height: normal;
}

button,
select {
    text-transform: none;
}

button:focus {
    outline: none;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

:focus {
    outline: 0;
}

input[type=checkbox],
input[type=radio] {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    height: 22px;
    width: 22px;
}

input[type=search] {
    -webkit-appearance: textfield;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration {
    -webkit-appearance: none;
}

button,
[type=button],
[type=reset],
[type=submit] {
    cursor: pointer;
    -webkit-appearance: none;
}

button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
    border: none;
    padding: 0;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
    outline: none;
}

[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
    height: auto;
}

[type=search] {
    outline: none;
}

[type=search]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file--button {
    -webkit-appearance: none;
    font: inherit;
}

textarea {
    resize: none;
    overflow-y: auto;
    overflow-x: hidden;
    vertical-align: top;
}

a {
    text-decoration: none;
}

a:focus,
a:active {
    outline: none;
}

a,
a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

img {
    vertical-align: center;
    border: 0;
    -ms-interpolation-mode: bicubic;
}

svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

p {
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

audio,
canvas,
video {
    display: inline-block;
    *display: inline;
    *zoom: 1;
    max-width: 100%;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

[hidden] {
    display: none;
}

::-webkit-input-placeholder {
    color: inherit;
    opacity: 1;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

::-moz-input-placeholder {
    color: inherit;
    opacity: 1;
    -moz-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

:-moz-placeholder {
    color: inherit;
    opacity: 1;
    -moz-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

:-ms-input-placeholder {
    color: inherit;
    opacity: 1;
    -ms-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

:focus::-webkit-input-placeholder {
    opacity: 0;
}

:focus::-moz-input-placeholder {
    opacity: 0;
}

:focus:-moz-placeholder {
    opacity: 0;
}

:focus:-ms-input-placeholder {
    opacity: 0;
}


@font-face {
  font-family: "icons";
  src: url("../files/icons-font/icons.eot?f40an5");
  src: url("../files/icons-font/icons.eot?f40an5#iefix") format("embedded-opentype"), 
       url("../files/icons-font/icons.ttf?f40an5") format("truetype"), 
       url("../files/icons-font/icons.woff?f40an5") format("woff"), 
       url("../files/icons-font/icons.svg?f40an5#icons") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

.fa-basket,
.fa-close,
.fa-flag,
.fa-forbidden,
.fa-search,
.fa-triangle,
.fa- {
  font-family: "icons" !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fa-basket:before {
  content: "\e900";
}

.fa-close:before {
  content: "\e901";
}

.fa-flag:before {
  content: "\e902";
}

.fa-forbidden:before {
  content: "\e903";
}

.fa-search:before {
  content: "\e904";
}

.fa-triangle:before {
  content: "\e905";
}

.fa-:before {
  content: "\e906";
}

.drop-menu {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: end;
}

.drop-menu__select {
    position: relative;
    padding: 7px 0px;
    border-radius: 5px;
    cursor: pointer;
    -webkit-transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    -o-transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    color: white;
    display: -ms-grid;
    display: grid;
    grid-auto-flow: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    grid-gap: 10px;
    min-width: -webkit-max-content;
    min-width: -moz-max-content;
    min-width: max-content;
    width: 100%;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    min-height: 30px;
    font-size: 20px;
    font-weight: 700;
    min-width: 177px;
}

.drop-menu__select i {
    font-size: 8px;
    -webkit-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    transform: rotate(-90deg);
    -webkit-transition: -webkit-transform 0.3s ease-in-out;
    transition: -webkit-transform 0.3s ease-in-out;
    -o-transition: transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
}

.drop-menu__select i.active {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.drop-menu__select.active {
    color: #FF7D00;
    border-radius: 5px 5px 0px 0px;
}

.drop-menu__select span {
    white-space: nowrap;
}

.drop-menu__options {
    position: absolute;
    top: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    border-radius: 20px 0px 20px 20px;
    min-width: -webkit-fit-content;
    min-width: -moz-fit-content;
    min-width: fit-content;
    width: 100%;
    overflow: hidden;
    color: white;
    background-color: #1A1A1A;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    -o-transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 10;
}

.drop-menu__options.show {
    opacity: 1;
    visibility: visible;
}

.drop-menu__option {
    padding: 12px 20px;
    cursor: pointer;
    color: white;
    font-weight: 600;
    -webkit-transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    -o-transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.section-message {
    margin-bottom: 24px;
}

.section-message__text {
    padding: 5px 20px;
    text-align: center;
    background-color: #1D1D1D;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    color: white;
}

.section-message__text span {
    font-weight: 600;
}

.search-btn {
    padding: 7px 10px 7px 14px;
    color: white;
}

.search-btn .fa {
    font-size: 20px;
    -webkit-transition: color 0.2s linear;
    -o-transition: color 0.2s linear;
    transition: color 0.2s linear;
}

.chat-wrap {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.chat-list {
    /*min-width: 255px;*/
    border-right: 1px solid #2F2F2F;
    background-color: black;
    z-index: 3;
    -webkit-transition: -webkit-transform 0.3s ease-in-out;
    transition: -webkit-transform 0.3s ease-in-out;
    -o-transition: transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
}

.chat-list__head {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 15px;
}

.chat-list__head .search-form {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 40px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: black;
    -webkit-transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    -o-transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.chat-list__head .search-form.show {
    opacity: 1;
    visibility: visible;
}

.chat-list__head .search-form__wrapper {
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-radius: 5px;
    border: 1px solid #2F2F2F;
    background-color: #151515;
}

.chat-list__head .search-form__submit {
    padding: 10px;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background-color: #151515;
    border-radius: 5px;
    color: #FF7D00;
    -webkit-transition: color 0.2s linear;
    -o-transition: color 0.2s linear;
    transition: color 0.2s linear;
}

.chat-list__head .search-form__submit .fa {
    font-size: 16px;
}

.chat-list__head .search-form__input {
    padding: 10px 10px 10px 0px;
    width: 100%;
    height: 100%;
    background-color: #151515;
    border-radius: 5px;
    color: #B3B3B3;
    font-size: 14px;
}

.chat-list__head .search-form__input::-webkit-input-placeholder {
    color: #B3B3B3;
    font-size: 14px;
}

.chat-list__head .search-form__input::-moz-placeholder {
    color: #B3B3B3;
    font-size: 14px;
}

.chat-list__head .search-form__input:-ms-input-placeholder {
    color: #B3B3B3;
    font-size: 14px;
}

.chat-list__head .search-form__input::-ms-input-placeholder {
    color: #B3B3B3;
    font-size: 14px;
}

.chat-list__head .search-form__input::placeholder {
    color: #B3B3B3;
    font-size: 14px;
}

.chat-list__head .search-form__close {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin: 0 10px;
    -webkit-transition: color 0.2s linear;
    -o-transition: color 0.2s linear;
    transition: color 0.2s linear;
}

.chat-list__head .search-form__close .fa {
    font-size: 20px;
}

.chat-list__holder {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    background-color: black;
    padding-right: 10px;
    z-index: 1;
    overflow: auto;
    max-height: 960px;
    max-height: calc(100vh - 260px);
    margin-bottom: 0;
}

.chat-list__holder::-webkit-scrollbar {
    width: 3px;
    padding: 5px 0px;
}

.chat-list__holder::-webkit-scrollbar-track {
    background: black;
}

.chat-list__holder::-webkit-scrollbar-thumb {
    background: #FF7D00;
}

.chat-messages {
    padding-left: 20px;
    width: 100%;
}

.chat-messages__head {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 30px;
}

.chat-messages__head-back {
    display: none;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: #B3B3B3;
}

.chat-messages__head-back .fa {
    font-size: 8px;
    margin-right: 7px;
}

.chat-messages__head-back .text {
    font-size: 14px;
    font-weight: 600;
}

.chat-messages__head- {
    padding: 7px 25px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: white;
}

.chat-messages__head- .dialog {
    margin-right: 5px;
}

.chat-messages__head- .dialog-name {
    color: #FF7D00;
    -webkit-transition: color 0.2s linear;
    -o-transition: color 0.2s linear;
    transition: color 0.2s linear;
}

.chat-messages__head-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    z-index: 5;
    color: white;
}

.chat-messages__head-buttons .button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 5px 10px;
    background-color: #414141;
    border-radius: 5px;
    margin-left: 5px;
    white-space: nowrap;
    -webkit-transition: background-color 0.2s linear;
    -o-transition: background-color 0.2s linear;
    transition: background-color 0.2s linear;
    font-size: 14px;
}

.chat-messages__head-buttons .button:hover,
.chat-messages__head-buttons .button.done {
    background-color: #FF7D00;
}

.chat-messages__head-buttons .button:first-child {
    margin-left: 0px;
}

.chat-messages__head-buttons .button .fa {
    font-size: 16px;
    margin-right: 5px;
}

.chat-messages__head-settings {
    position: relative;
}

.chat-messages__head-dots {
    display: none;
    grid-auto-flow: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    grid-gap: 2px;
    width: 20px;
    height: 18px;
    cursor: pointer;
}

.chat-messages__head-dots span {
    height: 5px;
    width: 5px;
    background-color: #B3B3B3;
    border-radius: 50%;
    -webkit-transition: background-color 0.2s linear;
    -o-transition: background-color 0.2s linear;
    transition: background-color 0.2s linear;
}

.chat-messages__content {
    overflow: auto;
    max-height: 960px;
    max-height: calc(100vh - 365px);
    display: flex;
    flex-wrap: wrap;
    padding-top: 21px;
}

.chat-messages__content::-webkit-scrollbar {
    width: 3px;
    padding: 5px 0px;
}

.chat-messages__content::-webkit-scrollbar-track {
    background: black;
}

.chat-messages__content::-webkit-scrollbar-thumb {
    background: #FF7D00;
}

.chat-messages__content center {
    order: 0;
    width: 100%;
    margin: -21px 0 0;
    position: relative;
}

.chat-messages__content center .center_related {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 2px;
    background: #ff8800;
    padding: 0 25px;
}

.chat-messages__content center + .date-line {
    display: none !important;
}

.chat-messages__content .date-line {
    display: block;
    font-size: 15px;
    line-height: 1.2;
    order: 2;
    width: 100%;
    text-align: center;
    position: relative;
    height: 0;
    top: -25px;
}

.chat-messages__content .date-line::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: #222222;
    top: 10px;
}

.chat-messages__content .date-line span {
    position: relative;
    z-index: 2;
    font-size: 12px;
    color: #B3B3B3;
    background: #000;
    padding: 0 10px;
}

.chat-messages__content .message {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 0 10px;
    margin-bottom: 30px;
    width: 100%;
    order: 2;
}

.chat-messages__content .message:last-child {
    /* margin-bottom: 100px; */
}

.chat-messages__content .message-icon {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding-bottom: 40px;
    margin-right: 10px;
    background-color: #1D1D1D;
    border-radius: 5px;
    overflow: hidden;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.chat-messages__content .message-icon .fa {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    font-size: 20px;
    color: #8E8E8E;
    z-index: 1;
    -webkit-transition: color 0.2s linear;
    -o-transition: color 0.2s linear;
    transition: color 0.2s linear;
}

.chat-messages__content .message-icon img {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 40px;
    height: 40px;
    -o-object-fit: cover;
    object-fit: cover;
    z-index: 2;
    -webkit-transition: -webkit-transform 0.2s linear;
    transition: -webkit-transform 0.2s linear;
    -o-transition: transform 0.2s linear;
    transition: transform 0.2s linear;
    transition: transform 0.2s linear, -webkit-transform 0.2s linear;
}

.chat-messages__content .message-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 400;
}

.chat-messages__content .message-info__name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    -webkit-transition: color 0.2s linear;
    -o-transition: color 0.2s linear;
    transition: color 0.2s linear;
    color: white;
}

.chat-messages__content .message-info__text {
    padding: 15px 20px;
    max-width: 613px;
    width: 100%;
    margin-bottom: 5px;
    background-color: #414141;
    border-radius: 0 20px 20px 20px;
    font-size: 14px;
    font-weight: 400;
    color: white;
}

.chat-messages__content .message-info__date {
    font-size: 12px;
    color: #B3B3B3;
}

.chat-messages__content .message-icon-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-messages__content .message-delete-btn {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: #B3B3B3;
    font-size: 16px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease;
    z-index: 10;
    min-width: 35px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.chat-messages__content .message-delete-btn:hover {
    color: #FF4444;
    background-color: rgba(255, 68, 68, 0.2);
}

.chat-messages__content .message:hover .message-delete-btn {
    opacity: 1;
}

@media (max-width: 767px) {
    .chat-messages__content .message-delete-btn {
        font-size: 14px;
        padding: 4px 8px;
        min-width: 30px;
        top: 40px;
    }
}

/* New conversation animation */
.chat-item.new-conversation {
    animation: newConversationPulse 2s ease-in-out;
}

@keyframes newConversationPulse {
    0% {
        background-color: rgba(255, 125, 0, 0.1);
        transform: translateX(-10px);
    }
    50% {
        background-color: rgba(255, 125, 0, 0.2);
        transform: translateX(0);
    }
    100% {
        background-color: transparent;
        transform: translateX(0);
    }
}

/* Delete Message Modal Styling */
#deleteMessageModal .modal-content {
    background-color: #1D1D1D;
    border: 1px solid #2F2F2F;
    color: white;
}

#deleteMessageModal .modal-header {
    border-bottom: 1px solid #2F2F2F;
    background-color: #151515;
}

#deleteMessageModal .modal-title {
    color: white;
}

#deleteMessageModal .modal-body {
    background-color: #1D1D1D;
}

#deleteMessageModal .modal-footer {
    border-top: 1px solid #2F2F2F;
    background-color: #151515;
}

#deleteMessageModal .close {
    color: #B3B3B3;
    opacity: 0.7;
}

#deleteMessageModal .close:hover {
    color: white;
    opacity: 1;
}

#deleteMessageModal .text-muted {
    color: #B3B3B3 !important;
}

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

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

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

#deleteMessageModal .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.chat-messages__content .message.reverse {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
}

.chat-messages__content .message.reverse .message-icon {
    margin-right: 0px;
    margin-left: 10px;
}

.chat-messages__content .message.reverse .message-info {
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
}

.chat-messages__content .message.reverse .message-info__text {
    border-radius: 20px 0 20px 20px;
    background-color: #151515;
}

.chat-messages__form {
    position: relative;
    padding: 10px 132px 10px 20px;
    margin-top: 10px;
    background-color: transparent;
    background-color: #151515;
    border: 1px solid #2F2F2F;
    border-radius: 5px;
}

.chat-messages__form .form__input {
    width: 100%;
    padding: 18px 40px 18px 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: white;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.chat-messages__form .form__input::-webkit-input-placeholder {
    color: #B3B3B3;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    -webkit-transition: color 0.2s linear;
    transition: color 0.2s linear;
    font-size: 16px;
    border: none;
}

.chat-messages__form .form__input::-moz-placeholder {
    color: #B3B3B3;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    -moz-transition: color 0.2s linear;
    transition: color 0.2s linear;
    font-size: 16px;
    border: none;
}

.chat-messages__form .form__input:-ms-input-placeholder {
    color: #B3B3B3;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    -ms-transition: color 0.2s linear;
    transition: color 0.2s linear;
    font-size: 16px;
    border: none;
}

.chat-messages__form .form__input::-ms-input-placeholder {
    color: #B3B3B3;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    -ms-transition: color 0.2s linear;
    transition: color 0.2s linear;
    font-size: 16px;
    border: none;
}

.chat-messages__form .form__input::placeholder {
    color: #B3B3B3;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    -webkit-transition: color 0.2s linear;
    -o-transition: color 0.2s linear;
    transition: color 0.2s linear;
    font-size: 16px;
    border: none;
}

.chat-messages__form .form__submit {
    position: absolute;
    top: 50%;
    right: 20px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    padding: 8px 30px;
    background-color: #FF7D00;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: white;
    -webkit-transition: background-color 0.2s linear;
    -o-transition: background-color 0.2s linear;
    transition: background-color 0.2s linear;
}

.chat-item {
    margin-bottom: 10px;
}

.chat-item:last-child {
    margin-bottom: 0px;
}

.chat-item__wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 15px 10px;
    border-radius: 5px;
    background-color: black;
    cursor: pointer;
    -webkit-transition: background-color 0.2s linear, color 0.1s linear;
    -o-transition: background-color 0.2s linear, color 0.1s linear;
    transition: background-color 0.2s linear, color 0.1s linear;
}

@media (min-width: 768px) {
    .chat-item__wrapper.active,
    .chat-item__wrapper.active-mob,
    .chat-item.open .chat-item__wrapper {
        background-color: #FF7D00;
    }
    
    .chat-item__wrapper.active .chat-item__info,
    .chat-item__wrapper.active-mob .chat-item__info,
    .chat-item.open .chat-item__wrapper .chat-item__info {
        color: white;
    }
}

.chat-item__icon {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding-bottom: 40px;
    margin-right: 10px;
    background-color: #1D1D1D;
    border-radius: 5px;
    overflow: hidden;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.chat-item__icon .fa {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    font-size: 20px;
    color: #8E8E8E;
    z-index: 1;
    -webkit-transition: color 0.2s linear;
    -o-transition: color 0.2s linear;
    transition: color 0.2s linear;
}

.chat-item__icon img {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 40px;
    height: 40px;
    -o-object-fit: cover;
    object-fit: cover;
    z-index: 2;
    -webkit-transition: -webkit-transform 0.2s linear;
    transition: -webkit-transform 0.2s linear;
    -o-transition: transform 0.2s linear;
    transition: transform 0.2s linear;
    transition: transform 0.2s linear, -webkit-transform 0.2s linear;
}

.chat-item__info {
    color: #B3B3B3;
    line-height: 1.3;
    width: 100%;
}

.chat-item__head {
    margin-bottom: 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.chat-item__text {
    max-width: 233px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    font-size: 14px;
}

.chat-item__text_holder {
    max-width: 233px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

.chat-item__text_holder .fa-envelope {
    -webkit-animation: blink1 2s linear infinite;
    animation: blink1 2s linear infinite;
    margin: 0 0 0 5px;
}

@-webkit-keyframes blink1 {
    0% {
        color: #FF7D00;
    }

    50% {
        color: rgb(179, 179, 179);
    }

    100% {
        color: #FF7D00;
    }
}

@keyframes blink1 {
    0% {
        color: #FF7D00;
    }

    50% {
        color: rgb(179, 179, 179);
    }

    100% {
        color: #FF7D00;
    }
}

.chat-item:hover .chat-item__text_holder .fa-envelope {
    -webkit-animation: blink2 2s linear infinite;
    animation: blink2 2s linear infinite;
}

@-webkit-keyframes blink2 {
    0% {
        color: #fff;
    }

    50% {
        color: rgb(179, 179, 179);
    }

    100% {
        color: #fff;
    }
}

@keyframes blink2 {
    0% {
        color: #fff;
    }

    50% {
        color: rgb(179, 179, 179);
    }

    100% {
        color: #fff;
    }
}

.chat-item__date {
    font-size: 14px;
    margin-left: 10px;
    white-space: nowrap;
}

.chat-item__name {
    font-size: 14px;
    font-weight: 500;
    color: white;
    -webkit-transition: color 0.2s linear;
    -o-transition: color 0.2s linear;
    transition: color 0.2s linear;
}

@media (min-width: 768px) {
    .chat-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .chat-container {
        max-width: 960px;
    }
}

@media (min-width: 1025px) {
    .drop-menu__select:hover {
        color: #FF7D00;
    }

    .drop-menu__option:hover {
        background-color: #FF7D00;
    }

    .search-btn:hover .fa {
        color: #FF7D00;
    }

    .chat-list__head .search-form__submit:hover {
        color: white;
    }

    .chat-list__head .search-form__close:hover {
        color: #FF7D00;
    }

    .chat-messages__head- .dialog-name:hover {
        color: white;
    }

    .chat-messages__head-dots:hover span {
        background-color: #FF7D00;
    }

    .chat-messages__content .message-icon:hover .fa {
        color: white;
    }

    .chat-messages__content .message-icon:hover img {
        -webkit-transform: scale(1.1);
        -ms-transform: scale(1.1);
        transform: scale(1.1);
    }

    .chat-messages__content .message-info__name:hover {
        color: #FF7D00;
    }

    .chat-messages__form .form__input:hover::-webkit-input-placeholder {
        color: white;
    }

    .chat-messages__form .form__input:hover::-moz-placeholder {
        color: white;
    }

    .chat-messages__form .form__input:hover:-ms-input-placeholder {
        color: white;
    }

    .chat-messages__form .form__input:hover::-ms-input-placeholder {
        color: white;
    }

    .chat-messages__form .form__input:hover::placeholder {
        color: white;
    }

    .chat-messages__form .form__submit:hover {
        background-color: white;
        color: #FF7D00;
    }

    .chat-item__wrapper:hover {
        background-color: #FF7D00;
        color: white;
    }

    .chat-item__wrapper:hover .chat-item__info {
        color: white;
    }

    .chat-item__icon:hover .fa {
        color: white;
    }

    .chat-item__icon:hover img {
        -webkit-transform: scale(1.1);
        -ms-transform: scale(1.1);
        transform: scale(1.1);
    }

    .chat-item__name:hover {
        color: black;
    }
}

@media (min-width: 1200px) {
    .chat-container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .chat-container {
        max-width: 1323px;
    }
}

@media (max-width: 1500px) {
    .chat-messages__content .message:last-child {
        margin-bottom: 20px;
    }
}

@media (max-width: 1200px) {
    .chat-messages__head-buttons {
        position: absolute;
        top: calc(100% + 5px);
        right: 0px;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        border-radius: 20px 0 20px 20px;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        -webkit-transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        -o-transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    .chat-messages__head-buttons.show {
        opacity: 1;
        visibility: visible;
    }

    .chat-messages__head-buttons .button {
        border-radius: 0px;
        margin-left: 0px;
        padding: 15px 20px;
        width: 100%;
    }

    .chat-messages__head-dots {
        display: -ms-grid;
        display: grid;
    }
}

@media (max-width: 1024px) {
    .chat-item__wrapper:active {
        -webkit-transition: background-color 0.1s linear, color 0.1s linear;
        -o-transition: background-color 0.1s linear, color 0.1s linear;
        transition: background-color 0.1s linear, color 0.1s linear;
        background-color: #FF7D00;
        color: white;
    }

    .chat-item__wrapper:active .chat-item__info {
        -webkit-transition: color 0.05s linear;
        -o-transition: color 0.05s linear;
        transition: color 0.05s linear;
        color: white;
    }
}

@media (max-width: 767px) {
    .section-head {
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 18px;
        font-weight: 700;
    }

    .drop-menu__select {
        padding: 6px 10px 6px 0;
    }

    .search-btn {
        padding: 7px 0 7px 14px;
    }

    .chat.active .chat-messages {
        -webkit-transform: translateX(0);
        -ms-transform: translateX(0);
        transform: translateX(0);
    }

    .chat.active .chat-list {
        -webkit-transform: translateX(calc(-100% - 16px));
        -ms-transform: translateX(calc(-100% - 16px));
        transform: translateX(calc(-100% - 16px));
    }

    .chat-list {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        padding-right: 0px;
        border-right: none;
    }

    .chat-list__head .search-form__close {
        margin-right: 0;
    }

    .chat-list__holder {
        max-height: calc(100vh - 260px);
        padding-right: 0px;
    }

    .chat-list__holder::-webkit-scrollbar {
        width: 3px;
    }

    .chat-messages {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        padding-left: 0;
        -webkit-transform: translateX(calc(100% + 16px));
        -ms-transform: translateX(calc(100% + 16px));
        transform: translateX(calc(100% + 16px));
        -webkit-transition: -webkit-transform 0.3s ease-in-out;
        transition: -webkit-transform 0.3s ease-in-out;
        -o-transition: transform 0.3s ease-in-out;
        transition: transform 0.3s ease-in-out;
        transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
    }

    .chat-messages__head-back {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .chat-messages__content {
        max-height: calc(100vh - 350px);
    }

    .chat-messages__content .message {
        margin-bottom: 30px;
    }

    .chat-messages__form {
        margin: 10px -10px 0 -10px;
        border-radius: 0px;
        border: none;
        border-top: 1px solid #2F2F2F;
        border-bottom: 1px solid #2F2F2F;
    }

    .chat-item__text {
        max-width: none;
        white-space: normal;
        overflow: hidden;
        -o-text-overflow: ellipsis;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }
}

@media (max-width: 350px) {
    .chat-list__head .search-form__input::-webkit-input-placeholder {
        font-size: 12px;
    }

    .chat-list__head .search-form__input::-moz-placeholder {
        font-size: 12px;
    }

    .chat-list__head .search-form__input:-ms-input-placeholder {
        font-size: 12px;
    }

    .chat-list__head .search-form__input::-ms-input-placeholder {
        font-size: 12px;
    }

    .chat-list__head .search-form__input::placeholder {
        font-size: 12px;
    }
}

.dialogue-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.dialogue-empty p {
    padding: 5px 10px;
    background-color: #414141;
    border-radius: 5px;
    color: #fff;
}

/* Emoji Picker Styles */
.emoji-picker {
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 280px;
    height: 320px;
    background-color: #1D1D1D;
    border: 1px solid #2F2F2F;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    margin-bottom: 10px;
}

.emoji-picker__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #2F2F2F;
    background-color: #151515;
    border-radius: 8px 8px 0 0;
}

.emoji-picker__header span {
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.emoji-picker__close {
    background: none;
    border: none;
    color: #B3B3B3;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-picker__close:hover {
    color: white;
}

.emoji-picker__content {
    height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
}

.emoji-categories {
    display: flex;
    padding: 8px;
    border-bottom: 1px solid #2F2F2F;
    background-color: #151515;
    flex-wrap: wrap;
    gap: 2px;
}

.emoji-category {
    background: none;
    border: none;
    color: #B3B3B3;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.emoji-category:hover,
.emoji-category.active {
    background-color: #2F2F2F;
    color: white;
}

.emoji-list {
    flex: 1;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    overflow-y: auto;
    overflow-x: hidden;
}

.emoji-list::-webkit-scrollbar {
    width: 4px;
}

.emoji-list::-webkit-scrollbar-track {
    background: #151515;
    border-radius: 2px;
}

.emoji-list::-webkit-scrollbar-thumb {
    background: #FF7D00;
    border-radius: 2px;
}

.emoji-list::-webkit-scrollbar-thumb:hover {
    background: #e66d00;
}

.emoji-item {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-item:hover {
    background-color: #2F2F2F;
}

/* Responsive Emoji Picker */
@media (max-width: 768px) {
    .emoji-picker {
        width: 260px;
        height: 280px;
        right: 0;
        left: auto;
        max-width: calc(100vw - 20px);
    }
    
    .emoji-picker__header {
        padding: 6px 10px;
    }
    
    .emoji-picker__header span {
        font-size: 13px;
    }
    
    .emoji-picker__close {
        font-size: 12px;
        width: 16px;
        height: 16px;
    }
    
    .emoji-categories {
        padding: 6px;
        gap: 1px;
    }
    
    .emoji-category {
        font-size: 14px;
        padding: 3px 5px;
    }
    
    .emoji-list {
        padding: 8px;
        grid-template-columns: repeat(5, 1fr);
        gap: 3px;
    }
    
    .emoji-item {
        font-size: 18px;
        padding: 5px;
    }
}

@media (max-width: 576px) {
    .emoji-picker {
        width: calc(100vw - 20px);
        height: 250px;
        right: 0;
        left: auto;
        max-width: 280px;
    }
    
    .emoji-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 2px;
    }
    
    .emoji-item {
        font-size: 16px;
        padding: 4px;
    }
    
    .emoji-categories {
        justify-content: center;
    }
    
    .emoji-category {
        font-size: 12px;
        padding: 2px 4px;
    }
}

@media (max-width: 480px) {
    .emoji-picker {
        width: calc(100vw - 20px);
        height: 220px;
        right: 0;
        left: auto;
        max-width: 260px;
    }
    
    .emoji-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
    }
    
    .emoji-item {
        font-size: 14px;
        padding: 3px;
    }
}

/* Updated Chat Form Styles */
.form__input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.form__emoji-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: none;
    border: none;
    color: #B3B3B3;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.form__emoji-btn:hover {
    color: #FF7D00;
}