/* Configurações gerais */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* Layout do Chat */
#chat-layout {
    display: flex;
    height: 100vh;
    background-color: #f9f9f9;
}

#client-sidebar {
    width: 25%;
    padding: 16px;
    background-color: #ffffff;
    border-right: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

#client-sidebar h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    color: #333;
}

#client-sidebar label {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    display: block;
}

#client-sidebar p {
    font-size: 14px;
    margin: 8px 0;
    color: #333;
}

#client-sidebar input[type="text"],
#client-sidebar input[type="datetime-local"],
#client-sidebar select {
    width: 100%;
    padding: 8px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#client-sidebar input[type="checkbox"] {
    margin-right: 8px;
}

#client-sidebar button {
    background-color: #4caf50;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#client-sidebar button:hover {
    background-color: #45a049;
}

#chat-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 60%;
    word-wrap: break-word;
}

/* Alinhamento das mensagens */
.message.sent {
    align-self: flex-start;
}

.message.received {
    align-self: flex-end;
}

.message-content {
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.message.sent .message-content {
    background-color: #d0eaff;
    color: #01579b;
    text-align: left;
}

.message.received .message-content {
    background-color: #d4f8d4;
    color: #2e7d32;
    text-align: right;
}

.message-content img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    cursor: pointer;
}

.message-content a {
    color: #01579b;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.message-content a:hover {
    text-decoration: underline;
}

.message-timestamp {
    font-size: 12px;
    color: #a1a1a1;
    margin-top: 5px;
    text-align: right;
}

/* Estilo do formulário */
#message-form {
    display: flex;
    flex-shrink: 0;
    padding: 16px;
    border-top: 1px solid #ddd;
    background-color: #fff;
}

#message-form input[type="text"] {
    flex-grow: 1;
    margin-right: 8px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}

#message-form label {
    margin-right: 8px;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: #f1f1f1;
    color: #333;
    transition: background-color 0.3s;
}

#message-form label:hover {
    background-color: #ddd;
}

#message-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background-color: #4caf50;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#message-form button:hover {
    background-color: #45a049;
}
