﻿.chat-app {
    display: flex;
    height: 100vh;
    background: #f5f5f5;
}

/* SIDEBAR */
.chat-sidebar {
    width: 30%;
    max-width: 350px;
    background: #fff;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.btn-add {
    font-size: 22px;
    text-decoration: none;
}

/* SEARCH */
.chat-search input {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 1px solid #eee;
}

/* FILTERS */
.chat-filters {
    display: flex;
    gap: 10px;
    padding: 10px;
}

    .chat-filters button {
        border: none;
        padding: 5px 10px;
        border-radius: 20px;
        background: #eee;
    }

    .chat-filters .active {
        background: #0d6efd;
        color: white;
    }

/* CHAT LIST */
.chat-list {
    overflow-y: auto;
}

.chat-item {
    display: flex;
    padding: 12px;
    text-decoration: none;
    color: black;
    border-bottom: 1px solid #eee;
}

    .chat-item:hover {
        background: #f0f0f0;
    }

.chat-avatar {
    width: 45px;
    height: 45px;
    background: #ccc;
    border-radius: 50%;
    margin-right: 10px;
}

.chat-info {
    flex: 1;
}

.chat-top {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.chat-preview {
    font-size: 13px;
    color: gray;
}

.chat-badge {
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    padding: 5px 8px;
    font-size: 12px;
}

/* RIGHT PANEL */
.chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* EMPTY STATE */
.empty-state {
    margin: auto;
    text-align: center;
}

/* MESSAGES */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    max-width: 60%;
    margin-bottom: 10px;
}

    .message.sent {
        margin-left: auto;
        background: #d1e7dd;
        padding: 10px;
        border-radius: 10px;
    }

    .message.received {
        background: #fff;
        padding: 10px;
        border-radius: 10px;
    }

/* INPUT */
.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

    .chat-input input {
        flex: 1;
        padding: 10px;
    }

    .chat-input button {
        padding: 10px;
    }
@media (max-width: 768px) {
    .chat-app {
        flex-direction: column;
    }

    .chat-sidebar {
        width: 100%;
        max-width: none;
    }

    .chat-content {
        display: none;
    }
}
@media (max-width: 768px) {
    .chat-sidebar {
        display: none;
    }

    .chat-content {
        display: flex;
    }
}