@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Commissioner", sans-serif;
    background: #f5f6fa;
}
.hidden {
    display: none !important;
  }
.auth-page {
    padding: 15px 0;
}
.auth-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.auth-form {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.auth-form h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}
.auth-form input {
    display: block;
    margin-bottom: 16px;
    font-family: inherit;
    font-size: 16px;
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    outline: none;
    border: 1px solid #ccc;
    width: 100%;
}
.auth-form button {
    width: 100%;
    padding: 10px;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
}
.auth-result {
    margin-bottom: 8px;
    color: red;
    font-size: 16px;
    display: none;
}

.logading-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000069;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: all .30s;
    z-index: 9999;
}
.loading-box__wrapper {
    height: 100px;
    width: 100px;
}
.loading-box__wrapper svg {
    width: 100%;
    height: 100%;
}

.logading-box__active {
    visibility: visible;
    opacity: 1;
    transition: all .30s;
}


.chat-page {
    padding: 15px 0;
}
.chat-page__wrapper {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    height: calc(100vh - 30px);
}
.chat-list {
    width: 360px;
    width: 100%;
    flex: 1 1 360px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0.25rem 1.875rem rgba(46, 45, 116, 0.05);
    padding: 15px 0;
}
.chat-list__search {
    padding: 0 15px;
}
.chat-list__search input {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    outline: none;
    border: 1px solid #ccc;

}
.chat-list__customers {
    margin-top: 16px;
}
.chat-list__customers .item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: all .3s;
    cursor: pointer;
}
.chat-list__customers .item:hover {
    background: #f0f0f0;
    transition: all .3s;
}
.chat-list__customers .item.active {
    background: #e2f0ff;
}
.chat-list__customers .item .item__avatar {}
.chat-list__customers .item .item__avatar img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;;
}
.chat-list__customers .item .item__content {
    margin-right: auto;
}
.chat-list__customers .item .item__content .name {
    font-weight: 500;
    color: #000;
    font-size: 16px;
    display: flex;
    align-items: center;
}
.chat-list__customers .item .item__content .name img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-left: 4px;
}
.chat-list__customers .item .item__content .message {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    width: 200px;       
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 6px;
}
.chat-list__customers .item .item__additional {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.chat-list__customers .item .item__additional .time {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}
.chat-list__customers .item .item__additional .messages {
    font-size: 10px;
    background: #ff9f29;
    border-radius: 50%;
    color: #fff;
    height: 18px;
    width: 18px;
    margin-top: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}
 









.chat-list__messages {
    max-width: 740px;
    width: 100%;
    flex: 1 1 740px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0.25rem 1.875rem rgba(46, 45, 116, 0.05);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.chat-list__messages .head {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.chat-list__messages .head .head__avatar {}
.chat-list__messages .head .head__avatar img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}
.chat-list__messages .head .data {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.chat-list__messages .head .data h2 {
    font-size: 20px;
    font-weight: 500;
    color: #000;
}
.chat-list__messages .head .data .buttons {
    display: flex;
    gap: 8px;
}
.chat-list__messages .head .data .buttons button {
    display: block;
    padding: 0;
    background: #fff;
    border: none;
    outline: none;
    cursor: pointer;
}
.chat-list__messages .head .data .buttons button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.chat-list__messages .list {
    margin-top: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.chat-list__messages .list .message {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #f5f6fa;
    max-width: 70%;
    width: 100%;
}
.chat-list__messages .list .message h3 {
    font-size: 20px;
    font-weight: 500;
    color: #000;
}
.chat-list__messages .list .message p {
    margin-top: 8px;
    font-size: 16px;
    color: #252525;
    line-height: 150%;
}
.chat-list__messages .list .message img {
    margin-top: 12px;
}
.chat-list__messages .list .message a {
    word-break: break-all;
overflow-wrap: break-word;
}
.chat-list__messages .list .message .time {
    margin-top: 12px;
    text-align: right;
    color: #252525;
    font-size: 14px;
}
.chat-list__messages .list .message.manager {
    background: #e2f0ff;
    align-self: flex-end;
}
.chat-list__messages .list .message.bot {
    background: #c4ffd8;
    align-self: flex-end;
}

.chat-list__messages .list .message.system {
    background: #f89b9b;
    width: 100%;
    max-width: 100%;
}
.chat-list__messages .list {}
.chat-list__messages .list {}
.chat-list__messages .list {}
.chat-list__messages .message-form {
    padding-top: 15px;
    
}
.chat-list__messages .message-form form {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-direction: column;
}
.chat-list__messages .message-form form textarea {
    border: 1px solid #f0f0f0;
    outline: none;
    resize: none;
    height: 100px;
    font-family: inherit;
    font-size: 16px;
    color: #000;
    width: 100%;
    display: block;
    padding: 8px 12px;
}
.chat-list__messages .message-form form button {
    padding: 10px;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    max-width: 160px;
}
.chat-list__messages .message-form form {}
.chat-list__messages {}
.chat-list__messages {}

