body { font-family: Arial, sans-serif; margin: 0; padding: 0; background: #f4f6f9; display: flex; flex-direction: column; min-height: 100vh; } header { background: #333; color: #fff; padding: 20px; text-align: center; font-size: 1.5rem; font-weight: bold; } .content-container { flex: 1; padding: 20px; display: flex; justify-content: center; align-items: center; } #map-container { width: 100%; max-width: 1000px; height: 500px; background: #e0e0e0; border-radius: 8px; display: flex; justify-content: center; align-items: center; color: #666; font-size: 1.2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); } #chat-toggle-btn { position: fixed; bottom: 10px; right: 10px; width: 60px; height: 60px; background: #007bff; color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 24px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 9999; border: none; transition: transform 0.2s; } #chat-toggle-btn:hover { transform: scale(1.05); } .chat-popup-container { position: fixed; bottom: 90px; right: 20px; width: 100%; max-width: 360px; height: 500px; background: #fff; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); display: none; flex-direction: column; overflow: hidden; z-index: 9999; } .chat-card { width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; } .header { background: #007bff; color: #fff; padding: 12px 15px; text-align: center; font-weight: bold; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; } .header-close { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; } .config-bar { background: #eef2f7; padding: 10px; border-bottom: 1px solid #dcdcdc; display: flex; flex-direction: column; gap: 8px; } .config-row { display: flex; align-items: center; gap: 8px; } .config-row label { width: 75px; font-size: 0.8rem; font-weight: bold; color: #444; user-select: none; } .config-row input { max-width: 100px; flex: 1; padding: 6px 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.85rem; } #myId { background-color: #e9ecef; cursor: not-allowed; width: 80px; } #savedStatus { color: #28a745; font-size: 11px; opacity: 0; transition: opacity 0.3s; font-weight: bold; } .chat-box { flex: 1; padding: 12px; overflow-y: auto; background: #fafafa; display: flex; flex-direction: column; gap: 8px; } .message-bubble { max-width: 80%; padding: 8px 10px; border-radius: 10px; font-size: 0.9rem; line-height: 1.3; word-wrap: break-word; display: flex; flex-direction: column; } .message-me { align-self: flex-end; background: #007bff; color: #fff; border-bottom-right-radius: 2px; } .message-peer { align-self: flex-start; background: #e9ecef; color: #333; border-bottom-left-radius: 2px; } .msg-meta { font-size: 0.7rem; font-weight: bold; margin-bottom: 2px; display: flex; justify-content: space-between; gap: 8px; } .message-me .msg-meta { color: #e0e0e0; } .message-peer .msg-meta { color: #007bff; } .input-bar { padding: 10px; background: #fff; border-top: 1px solid #ddd; display: flex; gap: 6px; } .input-bar input { flex: 1; padding: 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9rem; } .input-bar button { padding: 8px 14px; background: #28a745; color: #fff; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; } .input-bar button:hover { background: #218838; }