.message-content {
    display: block;
    flex-direction: column;
    align-items: flex-start; /* biar isi tetap mulai dari kiri */
    width: 100%;
    background-color: #f5f5f5;
    margin-top: 59px;
}

.message-content .container {
    /* background-color: #f5f5f5; */
    height: auto;
    /* border: 1px solid black; */
    margin: 0;
    padding: 0;
}

.search-sticky {
    z-index: 10;
}

.search-bar {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 1rem;
    background-color: white;
    width: 100%;
    /* border: 1px solid rgba(0, 0, 0, 0.033); */
    height: auto;

    /* shadow */
    -webkit-box-shadow: 0px 20px 10px -21px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 20px 10px -21px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 20px 10px -21px rgba(0, 0, 0, 0.1);
}

.search-bar a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-chat {
    margin-top: 15px;
    background-color: white;
    width: 100%;
    /* border: 1px solid rgba(0, 0, 0, 0.033); */
    /* border: 1px solid red; */
    height: auto;
    padding: 0rem 0 5.5rem 0;
    display: flex;
    flex-direction: column;
    /* gap: 0.5rem; */
}

.chat-filter {
    padding: 1rem;
    /* border: 1px solid black; */
    height: auto;
    max-width: 480px;
    display: flex;
    flex-direction: row;
    cursor: pointer;
}

.nav-tabs-category {
    background-color: white;
    border-width: none !important;
    border-bottom: none;
    /* -webkit-justify-content: center; */
}

.filter-category {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0.4rem;
    list-style: none;
    /* border: 1px solid green; */
}

.category-item {
    width: fit-content !important;
    border-radius: 99px;
    /* background-color: #f5f5f5; */
    /* border: 1px solid red; */
}

.category-item a {
    border-radius: 99px;
    width: 100%;
    display: inline-block;
    background-color: #f5f5f5;
    user-select: none;
    white-space: nowrap;
    /* border: 1px solid green; */
    padding: 0.3rem 1rem;
    text-decoration: none;
}

.nav-link-menu.active {
    color: #20b1d3 !important;
    border-radius: 99px;
    background-color: #20b2d31e !important;
    border-color: transparent !important;
    /* border: 1px solid black; */
}

.menu-field-pesan {
    padding: 1rem 0 !important;
    display: flex;
    flex-direction: column;
}

.chat-title {
    padding: 1rem 1rem 0 1rem;
    height: auto;
    /* border: 1px solid red; */
}

.chat-popup {
    width: 100%;
    text-decoration: none;
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.006);
    border-bottom: 1px solid rgba(0, 0, 0, 0.006);
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.chat-popup .chat-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
}

.unread-notify {
    border-radius: 99px;
    font-size: 11px;
    font-weight: 500;
    color: white;
    width: 8px;
    height: 8px;
    background-color: #1daac5;
    text-align: center;
}

.unread {
    background-color: #1da9c50e;
}

.popup-photo {
    padding: 0;
    margin: 0;
    border-radius: 99px;
    background-color: #f5f5f5;
    /* border: 1px solid black; */
    width: 50px;
    height: 50px;
    display: inline-block;
}

.popup-photo img {
    object-fit: cover;
    aspect-ratio: 1/1;
    display: inline-block;
    padding: 0;
    margin: 0;
    clip-path: circle(50%);
    width: 100%;
}

.popup-detail {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.popup-detail p {
    margin: 0;
}

/* ROOMCHAT CSS */

.roomchat {
    background-color: #f5f5f5;
    width: 100%;
    min-height: 100vh;
    max-width: 480px;
    display: flex;
    height: auto;
    flex-direction: column;
}

.roomchat-header {
    background-color: white;
    position: fixed;
    max-width: 480px;
    width: 100%;
    top: -1px;
    /* border: 1px solid black; */
    height: auto;
    padding: 1rem;
    z-index: 10;

    /* shadow */
    -webkit-box-shadow: 0px 20px 10px -21px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 20px 10px -21px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 20px 10px -21px rgba(0, 0, 0, 0.1);
}

.roomchat-header .container {
    /* border: 1px solid green; */
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.topbar-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.topbar-roomchat {
    /* border: 1px solid red; */
    padding: 0;
}

.topbar-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(1rem, 3vw, 1.5rem);
}

.back-icon {
    width: fit-content;
}
.back-icon img {
    width: 130%;
}

.roomchat-header .container .roomchat-photo {
    width: 38px;
    height: 38px;
}

.roomchat-content {
    height: auto;
    margin-top: 5rem;
    padding-bottom: 7rem;
    /* border: 1px solid red; */
}

.roomchat-content .container {
    display: flex;
    padding: 1rem;
    height: auto;
    align-items: center;
    flex-direction: column;
    /* border: 1px solid red; */
}

.date-label {
    user-select: none;
    border-radius: 8px;
    padding: 0.3rem 0.5rem;
    background-color: white;
    width: fit-content;
    /* border: 1px solid black; */
}

.message-wrap {
    width: 100%;
    /* border: 1px solid black; */
    display: flex;
    flex-direction: row;
}
.chat-box {
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 90%; /* pastikan nggak lepas ke luar box */
}


.left {
    width: 100%;
    padding: 0 0 0 0rem;
    position: relative;
    justify-content: start !important;
}

.left .tail-left {
    bottom: 0;
    left: -7.5px;
    position: absolute;
    width: 100%;
}

.left .tail-left img {
    width: 3.5%;
    /* Shadpw */
    -webkit-box-shadow: 0px 0px 9px -7px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 9px -7px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 9px -7px rgba(0, 0, 0, 0.75);
}

/* .left-box:nth-child(even):after {
    border-left: 15px solid transparent;
    left: -15px;
} */

/* .left-box:after {
    border-left: 15px solid transparent;
    position: absolute;
    top: 13px;
    left: -10px;
    content: "";
    width: 12px;
    height: 0;
    border-top: 15px solid white;
} */

.left-box {
    display: flex;
    flex-direction: row;
    justify-content: baseline;
    max-width: 400px;
    border-radius: 12px;
    padding: 0.4rem 0.6rem;
    border: 1px solid transparent;
    /* border: 1px solid black; */
    background-color: white;
    gap: 0.5rem;

    /* Shadpw */
    -webkit-box-shadow: 0px 0px 9px -7px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 9px -7px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 9px -7px rgba(0, 0, 0, 0.75);
}

.time-left {
    user-select: none;
    display: flex;
    font-weight: 400;
    color: black;
    align-items: end;
    text-decoration: none;
}

.right {
    position: relative;
    display: flex;
    justify-content: flex-end !important;
    /* border: 1px solid blue; */
}

.right .tail-right {
    display: flex;
    justify-content: end;
    /* border: 1px solid red; */
    bottom: 3px;
    right: -7.5px;
    position: absolute;
    width: 100%;
}

.right .tail-right img {
    width: 3.5%;
    /* Shadpw */
    -webkit-box-shadow: 0px 0px 9px -7px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 9px -7px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 9px -7px rgba(0, 0, 0, 0.75);
}

/* .right-box:after {
    border-right: 15px solid transparent;
    position: absolute;
    top: 13px;
    right: -10px;
    content: "";
    width: 12px;
    height: 0;
    border-top: 15px solid #1daac5;
} */

.right-box {
    display: flex;
    flex-direction: row;
    /* justify-content: baseline; */
    max-width: 400px;
    border-radius: 12px;
    padding: 0.4rem 0.6rem;
    border: 1px solid transparent;
    /* border: 1px solid black; */
    background-color: #1daac5;
    gap: 0.5rem;
    /* Shadpw */
    -webkit-box-shadow: 0px 0px 9px -7px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 9px -7px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 9px -7px rgba(0, 0, 0, 0.75);
}

.roomchat-footer {
    bottom: 0;
    position: fixed;
    padding: 1rem;
    max-width: 480px;
    background-color: white;
    width: 100%;
    height: auto;
    /* border: 1px solid black; */
}

.roomchat-footer .container {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
}

.chat-shape {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    /* border: 1px solid black; */
}

.chat-shape img {
    opacity: 70%;
    /* border: 1px solid black; */
    width: 100%;
}

.chat-shape img.nego {
    /* border: 1px solid black; */
    width: 78% !important;
}

.message-input {
    width: 80%;
    /* border: 1px solid black; */
}

.message-input input {
    border-radius: 99px;
    padding: 0.6rem 0.8rem;
    width: 100%;
    border: 1px solid #ededed;
}

.message-input input::placeholder {
    padding-left: 0.2rem;
    font-size: clamp(0.3rem, 3vw, 0.85rem);
    font-weight: 300;
    color: rgba(0, 0, 0, 0.339);
}

.typing:focus-visible {
    outline: none;
    border: 1px solid #ededed;
}

/* END OF ROOMCHAT CSS */

/* MEDIA QUERY SCREEN */

/* END OF MEDIA SCREEN */
