diff --git a/admin/customer_service.php b/admin/customer_service.php index 9a71014..c035579 100644 --- a/admin/customer_service.php +++ b/admin/customer_service.php @@ -49,6 +49,28 @@ ob_start(); background: #e7f3ff; border-left: 4px solid #007bff; } + .user-card { + position: relative; + } + .delete-chat-btn { + position: absolute; + top: 35px; + right: 10px; + opacity: 0; + transition: opacity 0.2s; + z-index: 10; + padding: 5px; + border-radius: 4px; + background: rgba(255,255,255,0.9); + box-shadow: 0 2px 4px rgba(0,0,0,0.1); + } + .user-card:hover .delete-chat-btn { + opacity: 1; + } + .delete-chat-btn:hover { + background: #fff0f0; + color: #dc3545 !important; + } .chat-header { padding: 12px 20px; border-bottom: 1px solid #eee; @@ -61,38 +83,56 @@ ob_start(); overflow-y: auto; display: flex; flex-direction: column; - gap: 12px; + gap: 16px; } .msg { - max-width: 80%; - padding: 8px 14px; - border-radius: 12px; - font-size: 14px; - line-height: 1.5; + max-width: 75%; + padding: 10px 16px; + font-size: 14.5px; + line-height: 1.6; position: relative; display: flex; flex-direction: column; + box-shadow: 0 2px 5px rgba(0,0,0,0.03); + transition: transform 0.2s; + } + .msg:hover { + transform: translateY(-1px); } .msg-time { font-size: 10px; opacity: 0.7; - margin-top: 4px; + margin-top: 6px; + font-weight: 500; } .msg-admin { align-self: flex-end; - background: #007bff; + margin-left: auto; + background: linear-gradient(135deg, #007bff, #0056b3); color: #fff; - border-bottom-right-radius: 2px; + border-radius: 18px 18px 2px 18px; } .msg-admin .msg-time { text-align: right; - color: #e0e0e0; + color: rgba(255,255,255,0.8); } .msg-user { align-self: flex-start; - background: #f0f0f0; - color: #333; - border-bottom-left-radius: 2px; + margin-right: auto; + background: #f1f3f5; + color: #212529; + border-radius: 18px 18px 18px 2px; + border: 1px solid #e9ecef; + } + .msg-user::before { + content: attr(data-ip); + position: absolute; + top: -20px; + left: 4px; + font-size: 10px; + font-weight: bold; + color: #adb5bd; + white-space: nowrap; } .msg-user .msg-time { color: #888; @@ -118,13 +158,22 @@ ob_start(); background: #fcfcfc; } .status-online { - width: 8px; - height: 8px; + width: 10px; + height: 10px; background: #28a745; border-radius: 50%; display: inline-block; margin-right: 5px; } + .pulse-animation { + animation: pulse-green 2s infinite; + box-shadow: 0 0 0 rgba(40, 167, 69, 0.4); + } + @keyframes pulse-green { + 0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); } + 70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); } + 100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); } + } #remark-text { height: 150px; font-size: 13px; @@ -144,20 +193,26 @@ ob_start();
-