/* Fichier : style.css */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#chat-box {
    width: 75%;
    height: 500px;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
    border-right: 2px solid #ddd;
    display: flex;
    flex-direction: column;
}

#user-list {
    width: 25%;
    background: #fff;
    padding: 15px;
    border-left: 2px solid #ddd;
    font-size: 14px;
}

.user-item {
    cursor: pointer;
    padding: 5px;
    border-bottom: 1px solid #ddd;
}
.user-item:hover {
    background-color: #f0f0f0;
}

.message {
    font-size: 14px;
    padding: 5px;
    border-radius: 6px;
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.2;
    margin-bottom: 5px;
}

.sent {
    background: #dcf8c6;
    text-align: right;
    margin-left: auto;
}
.received {
    background: #fff;
    text-align: left;
    margin-right: auto;
}
.private {
    background: #f8d7da;
    border-left: 4px solid #721c24;
}

.form-container {
    display: flex;
    padding: 10px;
    background: #fff;
    border-top: 2px solid #ddd;
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
}

input, button, select {
    padding: 8px;
    margin: 3px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.chat-image {
    max-width: 200px;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.chat-image:hover {
    transform: scale(1.5);
}

@media screen and (max-width: 768px) {
    #chat-box {
        height: 400px;
    }
    #user-list {
        width: 100%;
        border-left: none;
    }
}
