
.whatsapp-chat-container {
    display: flex;
    height: calc(100vh - 250px);
    min-height: 600px;
    background: var(--smoke-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.chat-sidebar {
    width: 100%;
    max-width: 420px;
    background: var(--white-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.chat-sidebar-header {
    background: var(--theme-color);
    color: var(--white-color);
}

.user-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--yellow-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.search-wrapper .form-control {
    background: var(--smoke-color);
    border: none;
    border-radius: 20px;
    padding-left: 40px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
}

.chats-list {
    flex: 1;
    overflow-y: auto;
}

.chat-conversation-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.chat-conversation-item:hover, .chat-conversation-item.active {
    background: var(--smoke-color);
}

.chat-conversation-item .d-flex {
    align-items: center;
}

.chat-conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--theme-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.chat-conversation-info h6 {
    margin: 0;
    font-size: 15px;
    color: var(--title-color);
}

.chat-conversation-info small {
    color: var(--text-color);
    font-size: 13px;
}

.chat-conversation-time {
    font-size: 12px;
    color: var(--text-color);
}

.unread-count {
    background: var(--theme-color);
    color: var(--white-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: url('assets/img/bg/chat-bg.png') repeat;
    background-size: 400px;
}

.chat-header {
    background: var(--theme-color);
    color: var(--white-color);
    padding: 12px 20px;
    display: flex;
    align-items: center;
}

.back-btn {
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 24px;
    margin-right: 15px;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--yellow-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-bubble {
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
}

.message-sent {
    align-self: flex-end;
    background: #dcf8c6;
    border-bottom-right-radius: 4px;
}

.message-received {
    align-self: flex-start;
    background: var(--white-color);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: var(--text-color);
    margin-top: 4px;
    text-align: right;
}

.input-area {
    background: var(--smoke-color);
    padding: 10px 20px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--white-color);
    border-radius: 25px;
    padding: 8px 15px;
}

.emoji-btn, .send-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-color);
    cursor: pointer;
}

.message-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 10px;
    font-size: 15px;
}

.empty-chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-color);
}

.empty-chat-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .whatsapp-chat-container {
        flex-direction: column;
    }
    .chat-sidebar {
        max-width: 100%;
        width: 100%;
        height: 100%;
    }
    .chat-main {
        display: none;
    }
    .chat-main.active {
        display: flex;
    }
    .chat-sidebar.hidden {
        display: none;
    }
}