body {
    background-color: #f5f5f5;
    font-family: sans-serif;
    margin: 0;
}

.chat-title{
    text-align: center;
    margin: 10px;
}

.chat-form {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
    height: 55vh;
    overflow-y: auto;
}

.chat-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
    background-color: #eee;

}

.sender-name {
    font-weight: bold;
    margin-right: 10px;
    color: #333;
}

.message-time {
    font-size: 12px;
    color: #888;
}

.chat-message {

}


.chat-input {
    display: flex;
    flex-direction: column;
    min-width: 50%;
    align-items: center;
    margin: 20px auto;
    width: 10rem;
}

.chat-input textarea {
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 50px;
}

.chat-input button {

    padding: 15px 20px;
    background-color: #0095ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 0;
}



.chat-input input{
    height: 50px;
    border-radius: 5px;
    border: none;
}

.chat-input input,
.chat-input textarea,
.chat-input button {
    width: 100%;
    margin: 5px;
}



/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .chat-input{
        width: 98%;
    }
    .chat-form {
        width: 90%;  /* Adjust width for smaller screens */
    }
    .chat-input input {
        font-size: 14px;  /* Adjust font size for better readability */
    }

    .chat-input textarea{
        width: 100vw;
    }
}

@media (max-width: 480px) {
    .chat-input{
        width: 98%;
    }

    .chat-sender {
        flex-direction: column;  /* Stack sender name and time on smaller screens */
        align-items: flex-start;
    }
    .message-time {
        margin-top: 5px;  /* Add some space between sender name and time */
    }

    .chat-input textarea{
        width: 100vw;
    }

}