@import url(https://fonts.googleapis.com/css?family=Merriweather+Sans:300,regular,500,600,700,800,300italic,italic,500italic,600italic,700italic,800italic); 


:root {
    --black: #000;
    --white: #fff;
    --header-height: 60px;
    --sidebar-width: 400px;
    --primary: #EFF2F5;
    --secondary: red;
    --avatar-dim: 40px;
}

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

html, body {
    overflow: hidden;
    font-family: 'Merriweather Sans', sans-serif;
}

button {
    border: none;
    background: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    opacity: .5;
}

p {
    font-size: 14px;
}

.chat-header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--header-height);
    background:var(--primary);
    color: var(--black);

    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
}

.chat-header__left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 10px 15px;
    border-right: 1px solid #ccc;
    color: inherit;
}

.chat-header__left__img {
    width: var(--avatar-dim);
    border-radius: 50%;
    aspect-ratio: 1;
}

.chat-header__left__links {
    display: flex;
    align-items: center;
    gap: 25px;
    color: inherit;
}
.chat-header__left__links a {
    font-size: 18px;
    color: var(--black);
    opacity: .7;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-header__right {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    color: inherit;
}

.user-info-box {
    display: flex;
    align-items: center;
    gap: 15px;
    color: inherit;
}

.user-info-box__img {
    width: var(--avatar-dim);
    border-radius: 50%;
    aspect-ratio: 1/1;
}

.chat-header .user-info-box__text {
    line-height: 1.4;
    color: inherit;
}

.chat-header .user-info-box__text * {
    color: inherit
}
.user-info-box__text h4 {
    font-weight: semibold;
}

.user-info-box__text p {
    font-size: 12px;
    font-weight: 200;
}

.chat-header__right__moreactions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.chat-header__right__moreactions a {
    font-size: 18px;
    color: var(--black);
    opacity: .7;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

a:hover {
    opacity: 1;
}

.chat-middle {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
}

.chat-sidebar {
    position: sticky;
    top: var(--header-height);
}


.chat-sidebar__search {
    padding: 10px;
    position: sticky;
    top: var(--header-height);
    z-index: 300;
    background: var(--white);
    display: grid;
    grid-template-columns: 1fr 40px;
}

.chat-sidebar__search .input-group {
    position: sticky;
    z-index: 200;
    top: calc(var(--header-height) + 10px);
}

.input-group {
    background: var(--primary);
    display: flex;
    align-items: center;
    gap: 23px;
    height: 40px;
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    border-radius: 10px;
}

.input-group .input-group-prepend {
    display: inline-flex;
    align-items: center;
}

.input-group .form-control {
    flex: 1;
    background: none;
    height: 40px;
    line-height: 40px;
    font-size: 13px;
    font-weight: 200;
}

.input-group .form-control::placeholder {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.chat-contact-list {
    display: flex;
    flex-direction: column;
    background: var(--white);
    height: calc(100vh - 40px - var(--header-height));
    overflow-y: auto;
}

.chat-contact-list__item {
    padding: 6px 0;
    padding-left: 12px;
    cursor: pointer;
    user-select: none;
}

.chat-contact-list__item:not(:last-child) {
    border-bottom: 1px solid #f5f6f6;
}

.chat-contact-list__item.active, 
.chat-contact-list__item:hover {
    background: var(--primary);
}

.chat-wrapper {
    height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    background: #F2EDE6;
}

.chat-feed {
    height: calc(100vh - var(--header-height) * 2);
    padding: 0 70px;
    overflow-y: auto;
}

.chat-form {
    background: var(--primary);
    height: var(--header-height);
    display: grid;
    grid-template-columns: 120px 1fr 60px;
    align-items: center;
    width: calc(100vw - var(--sidebar-width) - 15px);
}

.chat-form textarea {
    padding: 0 10px;
    height: calc(var(--header-height) - 20px);
    line-height: calc(var(--header-height) - 20px);
    border-radius: 8px;
    font-weight: 200;
    border: none;
    resize: none;
}

.chat-form div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.chat-form div button {
    font-size: 18px;
    opacity: .7;
    color: var(--black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.chat-form div button:hover {
    opacity: 1;
}

.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dropdown-btn {

}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    right: 0;
    background: #fff;
    min-width: 200px;
    max-width: 300px;
    box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
    transform: scale(0);
    transform-origin: top right;
    transition: all .3s ease;
}

.dropdown-menu.active {
    transform: scale(1);
}

.dropdown-menu a {
    display: inline-block;
    padding: 10px 20px;
    color: var(--black);
    font-size: 13px;
    width: 100%;
}

.dropdown-menu a:hover {
    background: var(--primary);
}

button .material-icons {
    user-select: none;
    pointer-events: none;
}
