funcional

This commit is contained in:
lizandrogd
2026-01-12 15:54:04 -05:00
parent 4b7bcb6924
commit 50fc690b1b
17 changed files with 2089 additions and 130 deletions
+300
View File
@@ -782,4 +782,304 @@ body {
box-shadow: none;
border: 1px solid #ddd;
}
}
/* =================================
CHAT STYLES
================================= */
.chat-container {
background: linear-gradient(135deg, #e5ddd5 0%, #d4c5b9 100%);
}
.conversation-row:hover {
background-color: #f8f9fa !important;
cursor: pointer;
}
.message-bubble {
position: relative;
word-wrap: break-word;
border: none;
}
.message-bubble.outgoing {
margin-left: auto;
}
.message-bubble.incoming {
margin-right: auto;
}
.message-time {
text-align: right;
margin-top: 4px;
font-size: 0.7rem;
}
.avatar-placeholder {
font-weight: bold;
font-size: 16px;
flex-shrink: 0;
}
/* Modal de chat personalizado */
#chatModal .modal-content {
border: none;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
#chatModal .modal-header {
border-radius: 12px 12px 0 0;
border-bottom: 1px solid rgba(255,255,255,0.2);
}
#chatModal .modal-body {
padding: 0;
}
.message-bubble.bg-success {
background: linear-gradient(135deg, #25d366, #20b358) !important;
}
.message-bubble.bg-white {
background: #ffffff !important;
border: 1px solid #e9ecef;
}
/* Mejorar responsividad de conversaciones */
@media (max-width: 768px) {
.conversation-row .btn-group .btn {
padding: 0.25rem 0.5rem;
font-size: 0.75rem;
}
.message-bubble {
max-width: 85% !important;
}
#chatModal .modal-dialog {
max-width: 95%;
margin: 1rem auto;
}
}
/* Animaciones para mensajes */
.message-bubble {
animation: messageAppear 0.3s ease-out;
}
@keyframes messageAppear {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Estilos mejorados para lista de conversaciones */
.conversation-card {
border: none;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
border-radius: 20px;
overflow: hidden;
}
.conversation-card .card-header {
border: none;
background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
padding: 1.5rem;
}
.conversation-list {
max-height: 600px;
overflow-y: auto;
}
.conversation-item {
display: flex;
align-items: center;
padding: 15px 20px;
border-bottom: 1px solid #f0f0f0;
cursor: pointer;
transition: all 0.2s ease;
position: relative;
background: white;
}
.conversation-item:hover {
background: #f8f9fa;
transform: translateX(5px);
}
.conversation-item:last-child {
border-bottom: none;
}
.conversation-avatar {
width: 55px;
height: 55px;
background: linear-gradient(135deg, #25d366, #128c7e);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
font-size: 1.4rem;
margin-right: 15px;
box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
position: relative;
}
.conversation-avatar.online::after {
content: '';
position: absolute;
bottom: 2px;
right: 2px;
width: 14px;
height: 14px;
background: #4ade80;
border: 2px solid white;
border-radius: 50%;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.conversation-details {
flex: 1;
min-width: 0;
}
.conversation-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 5px;
}
.conversation-name {
font-weight: 600;
font-size: 1.1rem;
color: #1f2937;
display: flex;
align-items: center;
gap: 8px;
}
.conversation-time {
font-size: 0.8rem;
color: #9ca3af;
white-space: nowrap;
}
.conversation-preview {
display: flex;
align-items: center;
gap: 8px;
}
.conversation-last-message {
color: #6b7280;
font-size: 0.9rem;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
line-height: 1.3;
}
.conversation-meta {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 5px;
}
.conversation-unread {
background: #25d366;
color: white;
border-radius: 50%;
padding: 4px 8px;
font-size: 0.75rem;
font-weight: bold;
min-width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
}
.conversation-status-icon {
font-size: 0.8rem;
}
.conversation-status-icon.outgoing {
color: #25d366;
}
.conversation-status-icon.incoming {
color: #3b82f6;
}
.conversation-actions {
display: flex;
gap: 8px;
opacity: 0;
transition: opacity 0.2s ease;
}
.conversation-item:hover .conversation-actions {
opacity: 1;
}
.conversation-actions .btn {
padding: 6px 10px;
font-size: 0.8rem;
border-radius: 8px;
border: 1px solid #e5e7eb;
background: white;
color: #6b7280;
transition: all 0.2s ease;
}
.conversation-actions .btn:hover {
background: #25d366;
color: white;
border-color: #25d366;
transform: translateY(-1px);
}
.conversation-empty {
text-align: center;
padding: 60px 20px;
color: #9ca3af;
}
.conversation-empty .empty-icon {
font-size: 4rem;
color: #d1d5db;
margin-bottom: 20px;
}
.conversation-search {
border-radius: 25px;
border: none;
background: rgba(255, 255, 255, 0.2);
color: white;
padding: 8px 20px;
}
.conversation-search::placeholder {
color: rgba(255, 255, 255, 0.7);
}
.conversation-search:focus {
background: rgba(255, 255, 255, 0.3);
color: white;
box-shadow: none;
border: 1px solid rgba(255, 255, 255, 0.5);
}