/* Main container styles */ body { background: #ffffff; margin: 0; padding: 0; min-height: 100vh; } /* Floating chat button */ .floating-chat-btn { position: fixed; bottom: 1rem; right: 1rem; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 1000; transition: transform 0.3s ease, box-shadow 0.3s ease; user-select: none; touch-action: none; } .floating-chat-btn:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(0,0,0,0.2); } .floating-chat-btn:active { transform: scale(1.05); } .main-container { position: fixed; width: 90%; max-width: 400px; height: 70vh; min-height: 500px; max-height: 700px; background: #ffffff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border: 1px solid #e5e7eb; transform: scale(0); transform-origin: bottom right; transition: transform 0.3s ease; z-index: 999; display: none; right: 20px; bottom: 90px; /* Ensure it stays within viewport */ max-height: calc(100vh - 120px); /* Account for button and spacing */ overflow-y: auto; } .main-container.open { transform: scale(1); } .main-container { width: 70%; max-width: 800px; height: 70vh; background: #ffffff; display: flex; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border: 1px solid #e5e7eb; /* Ensure it stays within viewport */ max-height: calc(100vh - 120px); /* Account for button and spacing */ overflow-y: auto; } /* Video container */ .video-container { flex: 1; background: #fff; position: relative; display: flex; align-items: center; justify-content: center; border: 1px solid #e5e7eb; min-width: 40%; border-radius: 16px 0 0 16px; overflow: hidden; } /* Chat container */ .chat-container { flex: 1; display: flex; flex-direction: column; background: #ffffff; border-radius: 16px; overflow: hidden; margin-left: -16px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); min-width: 40%; max-width: 400px; position: relative; z-index: 1; /* Ensure proper sizing */ height: 100%; max-height: 100%; } /* Custom scrollbar for chat */ #chat-messages::-webkit-scrollbar { width: 6px; } #chat-messages::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; } #chat-messages::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 10px; } #chat-messages::-webkit-scrollbar-thumb:hover { background: #a8a8a8; } /* Animation for new messages */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .chat-message { animation: fadeIn 0.3s ease-out; } /* Video player styling */ #msetcl-video { outline: none; max-height: 100%; max-width: 100%; background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } /* Chat header styling */ .chat-header { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%); color: white; padding: 1rem; display: flex; align-items: center; border-radius: 16px 16px 0 0; } .chat-header-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; margin-right: 1rem; } .chat-header-text h2 { font-size: 1.25rem; font-weight: 600; margin: 0; } .chat-header-text p { font-size: 0.75rem; opacity: 0.8; margin: 0; } /* Chat input area */ .chat-input-area { border-top: 1px solid #e5e7eb; padding: 1rem; background: #ffffff; border-radius: 0 0 16px 16px; } .chat-input-wrapper { display: flex; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } #chat-input { flex: 1; border: none; padding: 0.75rem 1rem; outline: none; } #send-btn { background: #2563eb; color: white; border: none; padding: 0 1.25rem; cursor: pointer; transition: background 0.2s; } #send-btn:hover { background: #1d4ed8; } .input-footer { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.75rem; color: #6b7280; }