173 lines
3.2 KiB
CSS
173 lines
3.2 KiB
CSS
/* Estilo para chat com contatos à esquerda e mensagens à direita */
|
|
.chatpanel-container {
|
|
display: flex;
|
|
width: 80vw;
|
|
height: 80vh;
|
|
background: #f7f7f7;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
overflow: hidden;
|
|
border-radius: 10px;
|
|
border-color: linear-gradient(135deg, #004a99, #0077cc);
|
|
}
|
|
|
|
.chatpanel-contacts {
|
|
width: 260px;
|
|
background: #fff;
|
|
border-right: 1px solid #eee;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 12px 0;
|
|
box-shadow: 2px 0 8px rgba(0,0,0,0.03);
|
|
height: 100%;
|
|
}
|
|
|
|
.contacts-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
max-height: 70vh;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.contacts-search {
|
|
margin: 0 12px 10px;
|
|
padding: 8px 12px;
|
|
border-radius: 20px;
|
|
border: 1px solid #ccc;
|
|
font-size: 1rem;
|
|
outline: none;
|
|
}
|
|
|
|
.chatpanel-contact {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 12px 22px;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
font-size: 1.08rem;
|
|
border-radius: 8px;
|
|
transition: background 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.chatpanel-contact:hover {
|
|
background: #e6f3ff;
|
|
box-shadow: 0 2px 8px rgba(0,123,255,0.08);
|
|
}
|
|
|
|
.chatpanel-contact.selected {
|
|
background: linear-gradient(135deg, #004a99, #0077cc);
|
|
color: #fff;
|
|
font-weight: bold;
|
|
box-shadow: 0 2px 8px rgba(0,123,255,0.12);
|
|
}
|
|
|
|
.chatpanel-contact-avatar {
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius: 50%;
|
|
background: #e6f3ff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.2rem;
|
|
font-weight: bold;
|
|
color: #004a99;
|
|
box-shadow: 0 1px 4px rgba(0,0,0,0.07);
|
|
}
|
|
|
|
.chatpanel-chat {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: #f0f0f0;
|
|
}
|
|
|
|
.chatpanel-header {
|
|
background: linear-gradient(135deg, #004a99, #0077cc);
|
|
color: #fff;
|
|
padding: 16px;
|
|
font-size: 1.2rem;
|
|
border-top-right-radius: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 18px;
|
|
}
|
|
|
|
.search {
|
|
margin-bottom: 0;
|
|
padding: 8px 12px;
|
|
margin-left: auto;
|
|
border-radius: 20px;
|
|
border: 1px solid #ccc;
|
|
font-size: 1rem;
|
|
outline: none;
|
|
background: #fff;
|
|
color: #004a99;
|
|
}
|
|
|
|
|
|
.chatpanel-messages {
|
|
flex: 1;
|
|
padding: 18px;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.chatpanel-bubble {
|
|
max-width: 65%;
|
|
padding: 10px 16px;
|
|
border-radius: 18px;
|
|
font-size: 1rem;
|
|
word-break: break-word;
|
|
margin-bottom: 2px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.chatpanel-bubble.me {
|
|
background: linear-gradient(135deg, #004a99, #0077cc);
|
|
color: white;
|
|
align-self: flex-end;
|
|
border-bottom-right-radius: 4px;
|
|
}
|
|
|
|
.chatpanel-bubble.other {
|
|
background: #fff;
|
|
align-self: flex-start;
|
|
border-bottom-left-radius: 4px;
|
|
}
|
|
|
|
.chatpanel-input-area {
|
|
display: flex;
|
|
padding: 14px;
|
|
background: #eee;
|
|
border-bottom-right-radius: 16px;
|
|
}
|
|
|
|
.chatpanel-input {
|
|
flex: 1;
|
|
padding: 8px 12px;
|
|
border-radius: 20px;
|
|
border: 1px solid #ccc;
|
|
font-size: 1rem;
|
|
outline: none;
|
|
}
|
|
|
|
.chatpanel-send-btn {
|
|
background: linear-gradient(135deg, #004a99, #0077cc);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 20px;
|
|
padding: 0 18px;
|
|
margin-left: 8px;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.chatpanel-send-btn:hover {
|
|
background:linear-gradient(135deg, #004a99, #0077cc);
|
|
}
|