body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f1f3f4;
    font-family: 'Geologica', sans-serif;
}

#showImage {
    display: none;
    position: fixed;
    z-index: 99;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

/* .img-thumbnail {
    transition: 0.3s;
}

.img-thumbnail:hover {
    cursor: zoom-in;
    opacity: 0.8;
} */
.img-overload:hover {
    cursor: zoom-in;
    opacity: 0.8;
}

.img-overload {
    padding: .25rem;
    /* background-color: #fff; */
    /* border: 1px solid #dee2e6; */
    border-radius: 20px;
    max-width: 200px;
    max-height: 300px;
    filter: brightness(0.8);
}

/* Modal Content (image) */
#img01 {
    margin: auto;
    display: block;
    width: auto;
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(1)
    }

    to {
        -webkit-transform: scale(2)
    }
}

@keyframes zoom {
    from {
        transform: scale(0.4)
    }

    to {
        transform: scale(1)
    }
}

@-webkit-keyframes zoom-out {
    from {
        transform: scale(1)
    }

    to {
        transform: scale(0)
    }
}

@keyframes zoom-out {
    from {
        transform: scale(1)
    }

    to {
        transform: scale(0)
    }
}

/* Add Animation */
.in {
    opacity: 1;
    cursor: zoom-out;
    animation: zoom 0.5s ease forwards;
}

.out {
    animation-name: zoom-out;
    animation-duration: 0.5s;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
    #img01 {
        width: 100%;
    }
}

.btn-load-more {
    left: 50%;
    /* Đặt div con ở giữa theo chiều ngang */
}

.container,
.container-fluid {
    height: 100vh;
    display: flex;
    flex-direction: row;
    overflow-wrap: anywhere;
}

.chat-container {
    display: flex;
    flex: 1;
}

#chat-column {
    flex: 8;
    display: flex;
    margin: 10px;
    flex-direction: column;
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    min-width: 300px;
}

#control-column {
    flex: 2;
    /* This makes control-column take up 80% of the space */
    padding: 10px;
    margin: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* For screens larger than 768px, set chat-column to 20% and control-column to 80% */
@media (min-width: 769px) {
    .flex-container {
        display: flex;
        flex-wrap: wrap;
    }

    #chat-column {
        flex: 7;
        /* Takes 20% of the width */
    }

    #control-column {
        flex: 3;
        /* Takes 80% of the width */
    }
}

@media (min-width: 960px) {
    .flex-container {
        display: flex;
        flex-wrap: wrap;
    }

    #chat-column {
        flex: 8;
        /* Takes 20% of the width */
    }

    #control-column {
        flex: 2;
        /* Takes 80% of the width */
    }
}

.info {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    background-color: hsl(204.23deg 100% 93.27%);
}


#chat {
    flex: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 0px 10px 30px 10px;
    word-break: break-word;
}

.message {
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 75%;
}

.member {
    cursor: pointer;
}

.self {
    margin-left: auto;
    text-align: right;
}

.self .content {
    background-color: #d8f7fe;
    padding: 10px;
    border-radius: 10px 5px 0 10px;
    display: inline-block;
    text-align: left;
}

.other .content {
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 0 10px 10px 10px;
    display: inline-block;
}

/* Cấu trúc cho nút khuôn mặt */
.other .reaction-button {
    position: absolute;
    /* Đảm bảo nút là container cho menu */
    top: 0;
    color: #b6b6b6;
    right: -30px;
    display: inline-block;
}

.self .reaction-button {
    position: absolute;
    /* Đảm bảo nút là container cho menu */
    top: 0;
    color: #b6b6b6;
    left: -30px;
    display: inline-block;
}

/* Kết quả reaction */
/* .reaction-result{
    position: absolute;
    bottom: -20px;
    left: 30px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    background-color: white;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
} */
.reaction-container {
    position: absolute;
    left: 20px;
    bottom: -25px;
    display: flex;
}

.reaction-result {
    position: relative;
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 50px;
    padding: 2px 5px;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.reaction-result .reaction {
    font-size: 18px;
}

.reaction-result .count {
    font-size: 12px;
    margin-left: 5px;
}

.reaction-result {
    position: relative;
    /* Đảm bảo các phần tử con được căn chỉnh đúng */
}

.reaction-result::after {
    content: attr(data-usernames);
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
    color: white;
    border-radius: 5px;
    padding: 8px;
    max-width: 150px;
    /* font-size: 12px; */
    text-align: center;
    z-index: 999;
    white-space: pre-line;
    pointer-events: none;
    overflow: hidden;
    width: max-content;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.reaction-result:hover::after {
    opacity: 1;
}

.reaction-result::before {
    content: "";
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 10px solid black;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.reaction-result:hover::before {
    opacity: 1;
}

.reaction-button:hover {
    cursor: pointer;
}

.reaction-menu {
    display: none;
    position: absolute;
    /* Vị trí tuyệt đối để có thể điều chỉnh với các thuộc tính bottom, top, left */
    bottom: 35px;
    /* Đặt menu ngay phía dưới nút, có thể thay đổi tùy theo yêu cầu */
    left: 50%;
    /* Căn giữa menu theo chiều ngang */
    transform: translateX(-50%);
    /* Dịch chuyển menu sang trái 50% để căn giữa chính xác */
    background-color: black;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.reaction-menu::after {
    content: "";
    position: absolute;
    bottom: -10px;
    /* Đặt mũi tên cách 10px dưới menu */
    left: 50%;
    transform: translateX(-50%);
    /* Căn giữa mũi tên */
    border-left: 5px solid transparent;
    /* Mũi tên hình tam giác */
    border-right: 5px solid transparent;
    border-top: 10px solid black;
    /* Đổi màu của mũi tên (cùng màu với menu) */
}

/* Các phản ứng trong menu */
.reaction-option {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.7rem;
    padding: 5px 10px;
    border-radius: 50%;
    transition: transform 0.15s ease-in;
}

/* Khi hover vào các phản ứng, tạo hiệu ứng phóng to */
.reaction-option:hover {
    transform: scale(1.5);
}

/* Xóa outline khi chọn một nút phản ứng */
.reaction-option:focus {
    outline: none;
}

/* Khi menu có class active, nó sẽ được hiển thị */
.reaction-menu.active {
    display: flex;
    flex-direction: row;
}


.self .reply {
    border-radius:
        5px 0 5px 5px;
}

.other .reply {
    border-radius: 0 5px 5px 5px;
}

.reply {
    box-shadow: rgba(0, 0, 0, 0.2) 1px 1.5px 1px;
    background-color: #f8f9fa;
    padding: 5px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    border-left: 3px solid #40a7e3;
}

.username {
    color: #6c757d;
    font-size: 0.9rem;
}

.timestamp {
    font-size: 0.8rem;
    color: #6c757d;
}

#input-area {
    display: flex;
}

#input-area input,
#input-area textarea,
#input-area button,
#input-area label {
    margin: 5px;
    border-radius: 20px;
}

#input-area input,
#input-area textarea {
    flex: 1;
    height: 40px;
    max-height: 370px;
    /* max-height:370px; */
    resize: none;
    overflow-y: scroll;
    /* overflow-y:scroll; */
    background-color: #f1f1f1;
}

textarea::-webkit-scrollbar {
    display: none;
}

#input-area button.send-msg {
    background-color: #24A0ED;
    color: white;
    border: none;
    cursor: pointer;
}

#input-area button.send-msg:hover {
    background-color: #2489ed;
}

.reply-link {
    color: #24baff;
    cursor: pointer;
    display: inline-block;
}

.reply-link:hover {
    text-decoration: none;
    color: #007bff;
}

.resulFormDuplicated::-webkit-scrollbar,
#chat::-webkit-scrollbar {
    width: 8px;
}

/* #chat::-webkit-scrollbar-track {} */

.resulFormDuplicated::-webkit-scrollbar-thumb,
#chat::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

#chat::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

.scrollBottom {
    background-color: rgb(241, 241, 244);
    border: 1px solid rgb(229, 228, 232);
    border-radius: 30px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    position: absolute;
    cursor: pointer;
    right: 12px;
    top: -50px;
}

.scrollBottom:hover {
    background: #dcdcdc;
}

.result-option {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

/* .result-box {
    font-size: 14px;
    color: tomato;
    font-weight: 700;
} */
.dropdown-menu {
    max-height: 400px;
    max-width: 400px;
    width: 300px;
    overflow-y: auto;
    top: -45px !important;
    padding: 0;
    left: 2px !important;
}

.dropDownTime,
.dropDownName {
    color: #797979;
    font-size: 0.8rem;
}

.notification-image {
    min-width: 40px;
    /* Kích thước avatar */
    height: 40px;
    /* Kích thước avatar */
    background-color: #ccc;
    /* Màu nền cho avatar (bạn có thể thay thế bằng ảnh thật) */
    border-radius: 50%;
    /* Tạo hình tròn cho avatar */
    display: flex;
    /* Để căn giữa nội dung trong avatar */
    justify-content: center;
    /* Căn giữa nội dung trong avatar */
    align-items: center;
    /* Căn giữa nội dung trong avatar */
    margin-right: 10px;
    /* Khoảng cách giữa avatar và nội dung */
    font-size: 18px;
    /* Kích thước chữ trong avatar (hiển thị "1" trong trường hợp của bạn) */
    color: white;
    /* Màu chữ trong avatar */
}

.notification-item {
    padding: 10px;
    border-radius: 10px;
    display: flex;
}

.notification-item:hover {
    background-color: #E0FAFF;
    cursor: pointer;
    ;
}

.dropDownMessage {
    font-size: 1rem;
}

.dropdown-item.active,
.dropdown-item:active {
    text-decoration: none;
    color: #16181b;
    background-color: #f1f1f1;
}

.dropdown-item {
    transition: border 200ms;
    white-space: unset;
    word-break: break-all;
}

.dropdown-item:hover {
    cursor: pointer;
    /* border-left: 5px solid #40a7e3; */
}

.icon-box {
    display: flex;
    font-size: 14px;
    align-items: center;
    gap: 1px;
    font-weight: bold;
}

.result-box {
    font-size: 1.3rem;
    font-weight: bold;
    /* color: hsl(150.06deg 100% 24.8%); */
    color: #0062cc;
    text-decoration: none;
}

.verbal-icon-text {
    /* color: hsl(166, 100%, 37%); */
    /* color: #1A1A1A; */
    color: #479eeb;
}

.result-option-verbal {
    /* background-color: hsl(166, 100%, 95%); */
    background-color: hsl(204.23deg 100% 93.27%);
}

.glow-effect {
    box-shadow: 0px 0px 10px 1px #00c0ff;
}

.content {
    position: relative;
    transition: box-shadow 500ms ease-in-out;
}

.exit {
    border-radius: 20px;
}

.search-controls {
    display: flex;
    justify-content: center;
}

.searchform {
    transition: margin-top 500ms, opacity 500ms;
    ;
    margin-top: -55px;
    opacity: 0;
}

.searchform .input-group-append span {
    font-size: 0.9rem;
}

.searchform #searchBox:focus {
    box-shadow: none;
}

.visible {
    margin-top: 0;
    opacity: 1;
}

.context-menu-item {
    padding: 7px 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.context-menu-item:hover {
    background-color: #f0f0f0;
}

.contentReply .small {
    max-height: 200px;
    overflow-y: scroll;
}

#context-menu {
    position: absolute;
    overflow: hidden;
    display: none;
    font-size: 0.9rem;
    background: #fff;
    font-weight: 100;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#confirm-modal {
    font-family: Arial, Helvetica, sans-serif;
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-delete-content {
    background-color: white;
    margin: 15% auto;
    width: 400px;
    border-radius: 5px;
    text-align: center;
}

.modal-delete-footer button {
    margin: 10px;
}

.text-zinc-500 {
    color: #71717a;
}

.text-gray-500 {
    color: #797979 !important;
    font-size: 0.7rem;
}

.msgFormDuplicated {
    font-size: 0.9rem;
    color: #686868;
}

.resulFormDuplicated {
    /* height:50vh; */
    flex: 1;
}

.itemFormDuplicated:hover {
    color: #16181b;
    background-color: #f8f9fa;
    cursor: pointer;
    /* border-left:5px solid #40a7e3!important; */
}

.itemFormDuplicated {
    /* transition: background-color 0.2s ease; */
    transition: border 200ms;
}

.highlight {
    background-color: #1d1d1d;
    color: #fff;
    border-radius: 3px;
}

.status-search-reply {
    font-size: 0.8rem;
    font-weight: bold;
}

.dropdown-toggle::after {
    display: none;
}

.dropdownAdmin {
    /* white-space: nowrap; */
    width: fit-content;
    /* cursor: pointer; */
    /* top: -10px !important; */
}

ul.listGroup li {
    transition: background-color 50ms ease-in;
    padding: 5px 10px;
    border-radius: 10px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

ul.listGroup li:hover,
ul.listGroup li.active {
    background: #E0FAFF;
    cursor: pointer;
}

ul.listGroup img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Loading Spinner */
.loading-spinner {
    padding-top: 10px;
    display: none;
    margin: 0 auto;
}

.spinner {
    border: 4px solid #f3f3f3;
    /* Light grey */
    border-top: 4px solid #3498db;
    /* Blue color */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Thumbnail styles for previews */
.thumbnail-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.thumbnail:hover {
    transform: scale(1.1);
}

.modal-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.self .image-stack {
    position: relative;
    margin-left: auto;
    margin-bottom: 15px;
}

.other .image-stack {
    position: relative;
    margin-bottom: 15px;
}

.image-stack img {
    filter: brightness(0.8);
    /* width: 100px; */
    border: 2px solid #fff;
    /* height: 100px; */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: absolute;
    cursor: pointer;
    transition: 50ms;
}

.image-stack img:nth-child(1) {
    top: 0;
    left: 0;
    z-index: 1;
}

.image-stack img:nth-child(2) {
    top: 30px;
    left: 35px;
    z-index: 2;
}

.image-stack img:nth-child(3) {
    top: 15px;
    left: 70px;
    z-index: 3;
}

.image-stack img:nth-child(4) {
    top: 45px;
    left: 105px;
    z-index: 4;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    width: auto;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal.active {
    display: flex;
}

.swiper-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    width: 40px;
    height: 40px;
    background-size: cover;
    border-radius: 4px;
    border: 2px solid transparent;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
}

.swiper-pagination-bullet-active {
    border: 2px solid #fff;
}