Spaces:
Paused
Paused
| /* General Styles */ | |
| * { | |
| box-sizing: border-box; | |
| } | |
| /* Recording indicator */ | |
| .recording-dot { | |
| animation: pulse 1s infinite; | |
| } | |
| @keyframes pulse { | |
| 0% { opacity: 1; } | |
| 50% { opacity: 0.3; } | |
| 100% { opacity: 1; } | |
| } | |
| /* File message styles */ | |
| .message-file { | |
| display: flex; | |
| align-items: center; | |
| padding: 10px; | |
| background-color: rgba(255, 255, 255, 0.9); | |
| border-radius: 8px; | |
| max-width: 300px; | |
| } | |
| .file-icon { | |
| font-size: 24px; | |
| margin-right: 10px; | |
| } | |
| .file-info { | |
| flex-grow: 1; | |
| overflow: hidden; | |
| } | |
| .file-name { | |
| font-weight: bold; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .file-size { | |
| font-size: 12px; | |
| color: #666; | |
| } | |
| .download-button { | |
| margin-left: 10px; | |
| color: #075e54; | |
| cursor: pointer; | |
| } | |
| /* Audio player styles */ | |
| .audio-message { | |
| display: flex; | |
| align-items: center; | |
| padding: 10px; | |
| background-color: rgba(255, 255, 255, 0.9); | |
| border-radius: 8px; | |
| max-width: 300px; | |
| } | |
| .audio-controls { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| .audio-duration { | |
| font-size: 12px; | |
| color: #666; | |
| min-width: 40px; | |
| } | |
| .audio-progress { | |
| flex-grow: 1; | |
| height: 4px; | |
| background-color: #ddd; | |
| border-radius: 2px; | |
| cursor: pointer; | |
| } | |
| .audio-progress-bar { | |
| height: 100%; | |
| background-color: #075e54; | |
| border-radius: 2px; | |
| width: 0%; | |
| } | |
| body { | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| background-color: #f0f2f5; | |
| margin: 0; | |
| padding: 0; | |
| height: 100vh; | |
| overflow: hidden; | |
| } | |
| .h-100 { | |
| height: 100vh ; | |
| } | |
| /* Chat Page Layout */ | |
| .chat-page { | |
| height: 100vh; | |
| overflow: hidden; | |
| } | |
| .chat-page .container-fluid { | |
| height: 100vh; | |
| max-height: 100vh; | |
| } | |
| .chat-page .row { | |
| height: 100vh; | |
| max-height: 100vh; | |
| } | |
| .sidebar { | |
| background: white; | |
| border-right: 1px solid #e9ecef; | |
| height: 100vh; | |
| overflow-y: auto; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| /* Fix for all screen sizes 769px and above */ | |
| @media (min-width: 769px) { | |
| .chat-page .sidebar { | |
| display: flex ; | |
| position: relative ; | |
| height: 100vh ; | |
| max-height: 100vh ; | |
| width: 33.33333% ; | |
| flex: 0 0 auto ; | |
| } | |
| .chat-page .chat-area { | |
| display: block ; | |
| height: 100vh ; | |
| max-height: 100vh ; | |
| width: 66.66667% ; | |
| flex: 0 0 auto ; | |
| } | |
| .chat-page .col-md-4 { | |
| width: 33.33333% ; | |
| flex: 0 0 33.33333% ; | |
| } | |
| .chat-page .col-md-8 { | |
| width: 66.66667% ; | |
| flex: 0 0 66.66667% ; | |
| } | |
| } | |
| /* Also fix the md-4 and md-8 at exactly 768px */ | |
| @media (min-width: 768px) and (max-width: 768px) { | |
| .chat-page .sidebar { | |
| display: flex ; | |
| position: relative ; | |
| height: 100vh ; | |
| } | |
| .chat-page .chat-area { | |
| display: block ; | |
| height: 100vh ; | |
| } | |
| } | |
| .sidebar-header { | |
| background: #25d366; | |
| color: white; | |
| padding: 1rem; | |
| flex-shrink: 0; | |
| } | |
| .search-box { | |
| padding: 0.5rem; | |
| flex-shrink: 0; | |
| background: #f0f2f5; | |
| } | |
| .new-chat-btn { | |
| padding: 0.5rem; | |
| flex-shrink: 0; | |
| background: #f0f2f5; | |
| } | |
| .conversations-list { | |
| flex: 1; | |
| overflow-y: auto; | |
| } | |
| /* Mobile First Approach */ | |
| html { | |
| font-size: 16px; | |
| } | |
| @media (max-width: 768px) { | |
| html { | |
| font-size: 14px; | |
| } | |
| } | |
| /* Landing Page */ | |
| .landing-page { | |
| background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); | |
| color: white; | |
| overflow: auto; | |
| min-height: 100vh; | |
| } | |
| .landing-content { | |
| max-width: 500px; | |
| padding: 1rem; | |
| } | |
| .logo { | |
| width: 120px; | |
| height: 120px; | |
| filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); | |
| } | |
| .logo-small { | |
| width: 60px; | |
| height: 60px; | |
| } | |
| .feature-item { | |
| justify-content: flex-start; | |
| text-align: left; | |
| font-size: 1.1rem; | |
| } | |
| .phone-mockup { | |
| width: 300px; | |
| height: 600px; | |
| background: #000; | |
| border-radius: 30px; | |
| padding: 20px; | |
| box-shadow: 0 20px 40px rgba(0,0,0,0.3); | |
| } | |
| .phone-screen { | |
| width: 100%; | |
| height: 100%; | |
| background: white; | |
| border-radius: 20px; | |
| overflow: hidden; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .chat-header { | |
| background: #25d366; | |
| color: white; | |
| padding: 15px; | |
| flex-shrink: 0; | |
| } | |
| .chat-messages { | |
| flex: 1; | |
| padding: 20px; | |
| overflow-y: auto; | |
| } | |
| .message { | |
| margin-bottom: 15px; | |
| } | |
| .message.sent { | |
| text-align: right; | |
| } | |
| .message-bubble { | |
| display: inline-block; | |
| padding: 8px 12px; | |
| border-radius: 18px; | |
| max-width: 80%; | |
| word-wrap: break-word; | |
| } | |
| .message.received .message-bubble { | |
| background: #f1f1f1; | |
| color: #333; | |
| } | |
| .message.sent .message-bubble { | |
| background: #dcf8c6; | |
| color: #333; | |
| } | |
| /* Register Page */ | |
| .register-page { | |
| background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); | |
| overflow: auto; | |
| min-height: 100vh; | |
| padding: 1rem; | |
| } | |
| .register-card { | |
| background: white; | |
| padding: 2rem; | |
| border-radius: 15px; | |
| box-shadow: 0 10px 30px rgba(0,0,0,0.2); | |
| width: 100%; | |
| max-width: 500px; | |
| margin: 0 auto; | |
| } | |
| /* Remove duplicate - already defined above */ | |
| .conversation-item { | |
| padding: 0.75rem 1rem; | |
| border-bottom: 1px solid #e9ecef; | |
| cursor: pointer; | |
| transition: background-color 0.2s; | |
| } | |
| .conversation-item:hover { | |
| background-color: #f8f9fa; | |
| } | |
| .conversation-item.active { | |
| background-color: #e3f2fd; | |
| border-left: 4px solid #25d366; | |
| } | |
| .chat-area { | |
| background: #e5ddd5; | |
| height: 100vh; | |
| position: relative; | |
| width: 100%; | |
| } | |
| .welcome-screen { | |
| height: 100%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.1"/></svg>') repeat; | |
| } | |
| .chat-container { | |
| height: 100%; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .chat-header { | |
| background: #25d366; | |
| color: white; | |
| padding: 1rem; | |
| flex-shrink: 0; | |
| border-bottom: 1px solid #128c7e; | |
| } | |
| .chat-messages { | |
| flex: 1; | |
| padding: 1rem; | |
| overflow-y: auto; | |
| background: #e5ddd5; | |
| background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.05"/></svg>'); | |
| } | |
| .chat-input { | |
| background: #f0f2f5; | |
| padding: 0.75rem 1rem; | |
| flex-shrink: 0; | |
| } | |
| .message-item { | |
| margin-bottom: 1rem; | |
| display: flex; | |
| align-items: flex-end; | |
| } | |
| .message-item.sent { | |
| justify-content: flex-end; | |
| } | |
| .message-content { | |
| max-width: 70%; | |
| position: relative; | |
| } | |
| .message-bubble { | |
| padding: 8px 12px; | |
| border-radius: 18px; | |
| word-wrap: break-word; | |
| position: relative; | |
| } | |
| .message-item.received .message-bubble { | |
| background: white; | |
| color: #333; | |
| box-shadow: 0 1px 2px rgba(0,0,0,0.1); | |
| } | |
| .message-item.sent .message-bubble { | |
| background: #dcf8c6; | |
| color: #333; | |
| box-shadow: 0 1px 2px rgba(0,0,0,0.1); | |
| } | |
| .message-time { | |
| font-size: 0.75rem; | |
| color: #666; | |
| margin-top: 4px; | |
| text-align: right; | |
| } | |
| .message-status { | |
| margin-left: 4px; | |
| } | |
| .message-status.sent { | |
| color: #999; | |
| } | |
| .message-status.delivered { | |
| color: #4fc3f7; | |
| } | |
| .message-status.seen { | |
| color: #25d366; | |
| } | |
| /* Avatar Styles */ | |
| .avatar { | |
| width: 40px; | |
| height: 40px; | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: white; | |
| font-weight: bold; | |
| font-size: 1rem; | |
| } | |
| .avatar-large { | |
| width: 80px; | |
| height: 80px; | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: white; | |
| font-weight: bold; | |
| font-size: 2rem; | |
| } | |
| .online-indicator { | |
| width: 12px; | |
| height: 12px; | |
| background: #25d366; | |
| border: 2px solid white; | |
| border-radius: 50%; | |
| position: absolute; | |
| bottom: 0; | |
| right: 0; | |
| } | |
| /* Settings Page */ | |
| .settings-page { | |
| background: #f0f2f5; | |
| min-height: 100vh; | |
| padding: 2rem 0; | |
| } | |
| .settings-section { | |
| margin-bottom: 2rem; | |
| } | |
| .setting-item { | |
| padding: 1rem 0; | |
| border-bottom: 1px solid #e9ecef; | |
| } | |
| .setting-item:last-child { | |
| border-bottom: none; | |
| } | |
| /* Responsive Design */ | |
| @media (max-width: 768px) { | |
| body { | |
| overflow-y: auto; | |
| overflow-x: hidden; | |
| } | |
| .h-100 { | |
| min-height: 100vh; | |
| height: auto; | |
| } | |
| /* Mobile Chat Layout */ | |
| .chat-page .row { | |
| height: 100vh; | |
| } | |
| .sidebar { | |
| position: fixed; | |
| top: 0; | |
| left: -100%; | |
| width: 85%; | |
| max-width: 320px; | |
| z-index: 1050; | |
| transition: left 0.3s ease; | |
| box-shadow: 0 0 20px rgba(0,0,0,0.3); | |
| } | |
| .sidebar.show { | |
| left: 0; | |
| } | |
| .sidebar-overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(0,0,0,0.5); | |
| z-index: 1040; | |
| display: none; | |
| } | |
| .sidebar-overlay.show { | |
| display: block; | |
| } | |
| .chat-area { | |
| width: 100%; | |
| position: relative; | |
| } | |
| .mobile-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| background: #25d366; | |
| color: white; | |
| padding: 0.75rem 1rem; | |
| position: sticky; | |
| top: 0; | |
| z-index: 100; | |
| box-shadow: 0 2px 4px rgba(0,0,0,0.1); | |
| } | |
| .mobile-menu-btn { | |
| background: none; | |
| border: none; | |
| color: white; | |
| font-size: 1.2rem; | |
| cursor: pointer; | |
| } | |
| /* Landing Page Mobile */ | |
| .phone-mockup { | |
| display: none; | |
| } | |
| .landing-content { | |
| padding: 2rem 1rem; | |
| } | |
| .feature-item { | |
| font-size: 1rem; | |
| margin-bottom: 1rem; | |
| } | |
| /* Register Page Mobile */ | |
| .register-card { | |
| padding: 1.5rem; | |
| margin: 1rem; | |
| border-radius: 10px; | |
| } | |
| /* Chat Messages Mobile */ | |
| .message-content { | |
| max-width: 85%; | |
| } | |
| .message-bubble { | |
| font-size: 0.9rem; | |
| padding: 10px 12px; | |
| } | |
| /* Modal Adjustments */ | |
| .modal-dialog { | |
| margin: 1rem; | |
| max-width: calc(100% - 2rem); | |
| } | |
| /* Input Adjustments */ | |
| .form-control { | |
| font-size: 16px; /* Prevents zoom on iOS */ | |
| -webkit-appearance: none; | |
| border-radius: 0.375rem; | |
| } | |
| /* Chat input specific adjustments */ | |
| .chat-input { | |
| padding: 0.5rem 1rem; | |
| border-top: 1px solid #e9ecef; | |
| position: sticky; | |
| bottom: 0; | |
| background: #f0f2f5; | |
| } | |
| .chat-input .form-control { | |
| border-radius: 25px; | |
| padding: 0.75rem 1rem; | |
| border: 1px solid #ddd; | |
| } | |
| .chat-input .btn { | |
| border-radius: 50%; | |
| width: 45px; | |
| height: 45px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 0; | |
| } | |
| /* Avatar Size Adjustments */ | |
| .avatar { | |
| width: 36px; | |
| height: 36px; | |
| font-size: 0.9rem; | |
| } | |
| .avatar-large { | |
| width: 70px; | |
| height: 70px; | |
| font-size: 1.8rem; | |
| } | |
| } | |
| /* Extra Small Devices */ | |
| @media (max-width: 576px) { | |
| .sidebar { | |
| width: 100%; | |
| max-width: 100%; | |
| } | |
| .register-card { | |
| margin: 0.5rem; | |
| padding: 1rem; | |
| } | |
| .landing-content { | |
| padding: 1.5rem 0.5rem; | |
| } | |
| .btn { | |
| padding: 0.75rem 1.5rem; | |
| } | |
| .modal-dialog { | |
| margin: 0.5rem; | |
| max-width: calc(100% - 1rem); | |
| } | |
| } | |
| /* Landscape Orientation on Small Devices */ | |
| @media (max-height: 500px) and (max-width: 768px) { | |
| .sidebar-header { | |
| padding: 0.5rem 1rem; | |
| } | |
| .search-box { | |
| padding: 0.5rem 1rem; | |
| } | |
| .new-chat-btn { | |
| padding: 0.5rem 1rem; | |
| } | |
| .conversation-item { | |
| padding: 0.5rem 1rem; | |
| } | |
| .mobile-header { | |
| padding: 0.5rem 1rem; | |
| } | |
| } | |
| /* Utility Classes */ | |
| .text-online { | |
| color: #25d366 ; | |
| } | |
| .text-offline { | |
| color: #999 ; | |
| } | |
| .border-success { | |
| border-color: #25d366 ; | |
| } | |
| .btn-success { | |
| background-color: #25d366; | |
| border-color: #25d366; | |
| } | |
| .btn-success:hover { | |
| background-color: #128c7e; | |
| border-color: #128c7e; | |
| } | |
| .btn-outline-success { | |
| color: #25d366; | |
| border-color: #25d366; | |
| } | |
| .btn-outline-success:hover { | |
| background-color: #25d366; | |
| border-color: #25d366; | |
| } | |
| /* Custom Scrollbars */ | |
| .conversations-list::-webkit-scrollbar, | |
| .chat-messages::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| .conversations-list::-webkit-scrollbar-track, | |
| .chat-messages::-webkit-scrollbar-track { | |
| background: #f1f1f1; | |
| } | |
| .conversations-list::-webkit-scrollbar-thumb, | |
| .chat-messages::-webkit-scrollbar-thumb { | |
| background: #c1c1c1; | |
| border-radius: 3px; | |
| } | |
| .conversations-list::-webkit-scrollbar-thumb:hover, | |
| .chat-messages::-webkit-scrollbar-thumb:hover { | |
| background: #a8a8a8; | |
| } | |
| /* Touch-friendly styles */ | |
| @media (hover: none) and (pointer: coarse) { | |
| .conversation-item:hover { | |
| background-color: transparent; | |
| } | |
| .conversation-item:active { | |
| background-color: #f8f9fa; | |
| } | |
| .btn:hover { | |
| transform: none; | |
| } | |
| .btn:active { | |
| transform: scale(0.98); | |
| } | |
| } | |
| /* Animation Classes */ | |
| .fade-in { | |
| animation: fadeIn 0.3s ease-in; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| .slide-in { | |
| animation: slideIn 0.3s ease-out; | |
| } | |
| @keyframes slideIn { | |
| from { transform: translateX(-20px); opacity: 0; } | |
| to { transform: translateX(0); opacity: 1; } | |
| } | |
| /* Loading Spinner */ | |
| .loading-spinner { | |
| display: inline-block; | |
| width: 20px; | |
| height: 20px; | |
| border: 2px solid #f3f3f3; | |
| border-top: 2px solid #25d366; | |
| border-radius: 50%; | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |