.chat-container {
    max-width: 700px;
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background: white;
}

.chat-header {
    background: #0d6efd;
    color: white;
    padding: 15px;
    font-weight: bold;
    font-size: 18px;
}

.chat-box {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #f5f7fb;
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 70%;
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    font-size: 14px;
    position: relative;
}

.sent {
    align-self: flex-end;
    background: #0d6efd;
    color: white;
}

.received {
    align-self: flex-start;
    background: #e4e6eb;
    color: black;
}

.timestamp {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
}

.chat-input {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 10px;
    background: white;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
}

.chat-input button {
    margin-left: 10px;
    padding: 10px 18px;
    border: none;
    border-radius: 20px;
    background: #0d6efd;
    color: white;
    cursor: pointer;
}

.chat-input button:hover {
    background: #0b5ed7;
}