diff --git a/modules/turnero/views/chat.php b/modules/turnero/views/chat.php index 7f67583..0ac7df7 100644 --- a/modules/turnero/views/chat.php +++ b/modules/turnero/views/chat.php @@ -167,6 +167,90 @@ html, body { height: 100%; overflow: hidden; font-family: -apple-system, BlinkMa } .typing-indicator { font-size: .75rem; color: #888; padding: 2px 8px; } +/* ── Botones extra en input ── */ +.input-extra-btn { + background: none; border: none; color: #888; font-size: 1.15rem; + cursor: pointer; padding: 6px; border-radius: 50%; transition: background .15s, color .15s; + flex-shrink: 0; +} +.input-extra-btn:hover { background: rgba(0,0,0,.06); color: #555; } + +/* ── Panel emoji ── */ +.emoji-panel { + position: absolute; bottom: 64px; left: 0; + background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; + box-shadow: 0 6px 24px rgba(0,0,0,.15); padding: 10px; + display: none; flex-wrap: wrap; gap: 2px; width: 280px; z-index: 50; +} +.emoji-panel.show { display: flex; } +.emoji-panel span { font-size: 1.3rem; cursor: pointer; padding: 4px; border-radius: 6px; } +.emoji-panel span:hover { background: #f0f2f5; } + +/* ── Reaction picker ── */ +#reaction-picker { + position: fixed; display: none; z-index: 9000; + background: #fff; border-radius: 30px; padding: 6px 10px; + box-shadow: 0 4px 20px rgba(0,0,0,.18); + gap: 4px; align-items: center; +} +#reaction-picker.show { display: flex; } +#reaction-picker span { font-size: 1.4rem; cursor: pointer; padding: 4px 6px; border-radius: 50%; transition: transform .1s; } +#reaction-picker span:hover { transform: scale(1.3); } +.msg-bubble { position: relative; } +.msg-bubble:hover .react-btn { opacity: 1; } +.react-btn { + position: absolute; top: 4px; opacity: 0; transition: opacity .15s; + background: #fff; border: 1px solid #e0e0e0; border-radius: 50%; + width: 24px; height: 24px; font-size: .75rem; cursor: pointer; + display: flex; align-items: center; justify-content: center; + box-shadow: 0 1px 4px rgba(0,0,0,.12); +} +.msg-bubble.incoming .react-btn { right: -28px; } +.msg-bubble.outgoing .react-btn { left: -28px; } +.msg-reaction { font-size: .95rem; margin-top: 2px; } + +/* ── Preview adjunto ── */ +#attach-preview { + display: none; align-items: center; gap: 8px; + padding: 8px 12px; background: #e9f5fe; + border-top: 1px solid #bee3f8; font-size: .85rem; +} +#attach-preview img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; } +#attach-preview .attach-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +#attach-preview .attach-remove { background: none; border: none; color: #e53e3e; cursor: pointer; font-size: 1rem; } + +/* ── Recording indicator ── */ +#recording-bar { + display: none; align-items: center; gap: 10px; + padding: 8px 14px; background: #fff0f0; border-top: 1px solid #fed7d7; + font-size: .85rem; color: #e53e3e; +} +#recording-bar .rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e53e3e; animation: blink 1s infinite; } +@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} } + +/* ── Modal plantilla ── */ +#template-modal { + display: none; position: fixed; inset: 0; z-index: 1000; + background: rgba(0,0,0,.4); align-items: center; justify-content: center; +} +#template-modal.show { display: flex; } +.tpl-card { background: #fff; border-radius: 14px; padding: 24px; width: 340px; box-shadow: 0 8px 32px rgba(0,0,0,.2); } +.tpl-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; } +.tpl-field { margin-bottom: 12px; } +.tpl-field label { font-size: .8rem; color: #555; font-weight: 600; display: block; margin-bottom: 4px; } +.tpl-field input { width: 100%; padding: 8px 10px; border: 1.5px solid #e0e0e0; border-radius: 8px; font-size: .9rem; outline: none; } +.tpl-field input:focus { border-color: #25d366; } +.tpl-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; } +.btn-tpl-cancel { padding: 8px 16px; background: #f5f5f5; border: none; border-radius: 8px; cursor: pointer; font-size: .88rem; } +.btn-tpl-send { padding: 8px 16px; background: #25d366; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: .88rem; font-weight: 600; } + +/* ── Media en burbuja ── */ +.msg-img { max-width: 220px; max-height: 200px; border-radius: 8px; cursor: pointer; display: block; margin-bottom: 3px; } +.msg-video { max-width: 220px; border-radius: 8px; display: block; margin-bottom: 3px; } +.msg-audio { width: 200px; margin-bottom: 3px; } +.msg-doc-link { display: flex; align-items: center; gap: 7px; font-size: .83rem; color: #1a73e8; text-decoration: none; padding: 4px 0; } +.msg-doc-link:hover { text-decoration: underline; } + .back-btn { display: none; background: none; border: none; color: #fff; font-size: 1.1rem; cursor: pointer; padding: 4px 8px; } @media (max-width: 680px) { @@ -243,9 +327,34 @@ html, body { height: 100%; overflow: hidden; font-family: -apple-system, BlinkMa -
+ +
+ + + +
+ + +
+
+ Grabando… + 0:00 + + +
+ + + +
+
+ + + + @@ -255,11 +364,43 @@ html, body { height: 100%; overflow: hidden; font-family: -apple-system, BlinkMa
+ +
+ + + +
+ + +
+
+

Enviar Plantilla

+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+