 /* шаблон чата (с) astaarus */

@import url('https://kit-pro.fontawesome.com/releases/v6.1.2/css/pro.min.css');

.centerwrap { display: flex; justify-content: center; margin: 20px 0 !important;}

.msgwrap { width: 550px;
    border-radius: 20px;
    background: #f5f5f5;
    border: 1px solid #d8c5e242;}
.msgwrap p { padding: 0px !important;}

.msgheader {display: flex; align-items: center; padding: 15px;background: #fafafa; border-bottom: 1px solid #eee; }

.msgavatar img { width: 45px; height: 45px; border-radius: 100%; border: 2px solid #ccc; }

.msginfo { margin-left: 10px;  display: flex;  flex-direction: column; gap: 4px !important; }

.msgname p { font-weight: bold; font-size: 15px; color: #333; position: relative; padding-left: 16px; }

.msgname p::after { content: ""; width: 8px; height: 8px; background: #4caf50; border-radius: 50%; position: absolute; left: -21px; top: 50%; transform: translateY(-50%); box-shadow: 0 0 5px rgba(76, 175, 80, 0.7); animation: pulse 1.2s infinite ease-in-out; }
@keyframes pulse {
0% { transform: translateY(-50%) scale(1); opacity: 1; }
50% { transform: translateY(-50%) scale(1.5); opacity: 0.6; }
100% { transform: translateY(-50%) scale(1); opacity: 1; }
}

.msgstatus p { font-size: 10px !important; color: #888; margin-top: 4px; font-style: italic;}

.msgcontent { padding: 10px 15px; max-height: 250px; overflow-y: auto; background: #f9f9f9;}

.msgline {background: #eeeeee; padding: 12px 14px; margin-bottom: 10px !important; border-radius: 12px; font-family: 'verdana', sans-serif; font-size: 11px; line-height: 1.6; color: #434343; position: relative;}
.msgline p { font-size: 11px !important;}

.msgquote { background: #f5f5f5;  border-left: 4px solid #c8c8c8; padding: 10px 12px; margin: 10px 0 !important; font-style: italic; color: #555; border-radius: 8px; font-size: 12px; }

.msgline img { max-width: 100%; border-radius: 15px;}

.msginput { display: flex; align-items: center; padding: 10px 15px; border-top: 1px solid #eee; background: #fafafa; border-radius: 0px 0px 20px 20px;}

.msgfakeinput { width: 460px; padding: 8px 12px; background: #fff; border: 1px solid #ccc; border-radius: 10px; color: #aaa;font-size: 10px;}

.msgsendbtn {margin-left: 10px; width: 24px; height: 24px; position: relative;cursor: pointer;}

.msgsendbtn::after {content: "\f1d8"; font-family: "Font Awesome 6 Pro"; font-weight: 900; font-size: 18px; color: #7f7f7f; display: block; transition: transform 0.2s ease; position: absolute; top: 3px;     left: 13px;}

.msgsendbtn:hover::after { transform: scale(1.2);}

.msgfakeinput p {  font-size: 10px !important;  text-transform: lowercase;}

.msgcontent::-webkit-scrollbar { width: 6px;}

.msgcontent::-webkit-scrollbar-thumb { background: #151515; border-radius: 18px; }

.msgcontent::-webkit-scrollbar-track { background: #ababab; border-radius: 10px;}