.chat-content {
    .dropdown-menu-row {
        left: 0 !important;
        top: -130px !important;
    }
}

.chat-main {
    display: flex;
    height: 750px;
}

.card-chat {
    min-height: 750px;
}

.chat-sidebar {
    border-radius: 7px;
    height: 100%;
    width: 30%;
    padding: 15px;
}

.chat-header {
    border-top-right-radius: 7px;
    border-top-left-radius: 7px;
    display: flex;
    justify-content: space-between;

}

.chat-header,
.chat-input {
    background-color: white;
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    height: auto;
}

.chat-input {
    align-items: start;
}

.chat-input>div {
    gap: 10px;

}

.chat-input textarea {
    flex-grow: 1;
    width: 100%;
    line-height: 1.4;
    max-height: 150px;
    overflow-y: auto !important;
    box-sizing: border-box;
    margin-bottom: 0 !important;
    padding: 0.6rem;
}

.chat-input .button-card {
    height: 40px !important;
    width: 40px !important;
    min-width: 40px !important;
}


.chat-header img {
    border: 1px solid var(--gray-default);
    border-radius: 50%;
}

.chat-content {
    width: 400px;
    background-color: #f9f9f9;
    position: fixed;
    bottom: 0;
    right: 30px;
    /* border-left: 1px solid var(--gray-default); */
    border-top-right-radius: 7px;
    border-top-left-radius: 7px;
    box-shadow: 0 2px 18px 1px rgba(49, 53, 72, 0.1);
}


.chat-item {
    cursor: pointer;
    padding: 10px 5px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid var(--gray-default);
    transition: 0.3s;
    position: relative;
}

.chat-item img {
    border-radius: 50%;
}

.chat-list {
    max-height: 666px;
    overflow-y: auto;
}

.chat-item:hover,
.chat-item:first-child:hover {
    background-color: #fafafc;
    border-color: #fafafc;
}

.chat-item.active,
.chat-item:first-child:hover {
    background-color: #f9f9f9;
    border-color: #f9f9f9;
}

.chat-item:first-child {
    border-top: 1px solid var(--gray-default);
}

.chat-item-details {
    display: flex;
    flex-direction: column;
}

.chat-messages {
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 320px;
    background-image: url(/src/assets/img/urban-logo.png);
    background-size: 165px;
    background-position: center;
    background-repeat: no-repeat;
}

.message {
    max-width: 70%;
    width: fit-content;
    padding: 0.5rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
    position: relative;
    white-space: pre-wrap;
    padding-right: 40px;
}

.message-time {
    position: absolute;
    bottom: 3px;
    right: 8px;
    font-size: 10px;
    opacity: 0.8;
}

.message:has(img.image-preview),
.message:has(.message-file-wrapper) {
    padding-right: 0.5rem;
}

.message:has(.message-file-wrapper) {
    padding-bottom: 1.3rem;
}

.message:has(.message-file-wrapper) .message-time {
    bottom: 1px;
}

.sent {
    align-self: flex-end;
    background-color: var(--primary-color);
    border-bottom-right-radius: 0;
    color: white;
}

.received {
    align-self: flex-start;
    background-color: var(--gray-default);
    border-bottom-left-radius: 0;
}



.img-footer {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #f1f1f1;
    border-radius: 8px;
    font-size: 0.9rem;
    position: relative;
}

.file-preview i {
    color: #666;
}

.remove-file {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 2px;
}

.remove-file:hover {
    color: #333;
}

.chat-last-message {
    font-size: 11px;
}

.btn-download {
    color: #007bff;
    text-decoration: none;
}

.image-preview {
    max-width: 145px;
    border-radius: 8px;
    background-color: rgb(237, 234, 234);
}

.badge-chat {
    background: var(--primary-color);
    font-size: 0.7rem;
    border-radius: 3px;
    position: absolute;
    top: 50%;
    /* transform: translateY(-50%); */
    right: 5px;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.message-file-wrapper {
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    word-break: break-word;
}

.file-message {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.message-file-wrapper .fa-file {
    font-size: 20px;
}

.btn-download {
    color: var(--primary-color);
    font-size: 14px;
}

.drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-message {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 30px;
    border-radius: 10px;
    border: 2px dashed #fff;
}

.chat-toggle-enter-active,
.chat-toggle-leave-active {
    transition: max-height 0.3s ease;
    overflow: hidden;
}

.chat-toggle-enter-from,
.chat-toggle-leave-to {
    max-height: 0;
}

.chat-toggle-enter-to,
.chat-toggle-leave-from {
    max-height: 400px;
}

.chat-body-wrapper .chat-messages {
    height: 320px;
}

.chat-msg-enter-active {
    transition: all 0.3s ease;
}

.chat-msg-leave-active {
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(20px);
}

.chat-msg-enter-from {
    opacity: 0;
    transform: translateY(20px);
}

.chat-msg-enter-to {
    opacity: 1;
    transform: translateY(0);
}