| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| min-height: 100vh; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| padding: 20px; | |
| } | |
| .container { | |
| max-width: 900px; | |
| width: 100%; | |
| background: white; | |
| border-radius: 20px; | |
| box-shadow: 0 20px 60px rgba(0,0,0,0.3); | |
| overflow: hidden; | |
| } | |
| .header { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| color: white; | |
| padding: 30px; | |
| text-align: center; | |
| } | |
| .header h1 { | |
| font-size: 2em; | |
| margin-bottom: 10px; | |
| } | |
| .session-info { | |
| background: rgba(255,255,255,0.2); | |
| padding: 10px; | |
| border-radius: 10px; | |
| margin-top: 15px; | |
| font-size: 0.9em; | |
| } | |
| .session-id-display { | |
| background: rgba(0,0,0,0.2); | |
| padding: 8px; | |
| border-radius: 5px; | |
| margin-top: 10px; | |
| font-family: monospace; | |
| font-size: 0.85em; | |
| cursor: pointer; | |
| transition: background 0.3s; | |
| } | |
| .session-id-display:hover { | |
| background: rgba(0,0,0,0.3); | |
| } | |
| .voice-controls { | |
| display: flex; | |
| gap: 10px; | |
| justify-content: center; | |
| padding: 15px; | |
| background: rgba(255,255,255,0.1); | |
| margin-top: 15px; | |
| border-radius: 10px; | |
| } | |
| .voice-btn { | |
| padding: 10px 20px; | |
| border: 2px solid white; | |
| border-radius: 20px; | |
| background: transparent; | |
| color: white; | |
| cursor: pointer; | |
| transition: all 0.3s; | |
| font-weight: bold; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .voice-btn:hover { | |
| background: white; | |
| color: #667eea; | |
| } | |
| .voice-btn.active { | |
| background: #ff4444; | |
| border-color: #ff4444; | |
| animation: pulse 1.5s infinite; | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { transform: scale(1); } | |
| 50% { transform: scale(1.05); } | |
| } | |
| .voice-indicator { | |
| width: 12px; | |
| height: 12px; | |
| border-radius: 50%; | |
| background: #4CAF50; | |
| display: inline-block; | |
| } | |
| .voice-indicator.recording { | |
| background: #ff4444; | |
| animation: blink 1s infinite; | |
| } | |
| @keyframes blink { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.3; } | |
| } | |
| .chat-container { | |
| height: 500px; | |
| overflow-y: auto; | |
| padding: 20px; | |
| background: #f8f9fa; | |
| } | |
| .message { | |
| margin-bottom: 20px; | |
| display: flex; | |
| animation: slideIn 0.3s ease; | |
| } | |
| @keyframes slideIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(10px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .message.user { | |
| justify-content: flex-end; | |
| } | |
| .message-content { | |
| max-width: 70%; | |
| padding: 15px 20px; | |
| border-radius: 20px; | |
| word-wrap: break-word; | |
| white-space: pre-wrap; | |
| position: relative; | |
| } | |
| .message.doctor .message-content { | |
| background: white; | |
| color: #333; | |
| border: 2px solid #667eea; | |
| border-radius: 20px 20px 20px 5px; | |
| } | |
| .message.user .message-content { | |
| background: #667eea; | |
| color: white; | |
| border-radius: 20px 20px 5px 20px; | |
| } | |
| .speaker-icon { | |
| position: absolute; | |
| bottom: 8px; | |
| right: 8px; | |
| cursor: pointer; | |
| font-size: 18px; | |
| opacity: 0.6; | |
| transition: opacity 0.3s; | |
| } | |
| .speaker-icon:hover { | |
| opacity: 1; | |
| } | |
| .speaker-icon.speaking { | |
| animation: speakPulse 0.5s infinite; | |
| } | |
| @keyframes speakPulse { | |
| 0%, 100% { transform: scale(1); } | |
| 50% { transform: scale(1.2); } | |
| } | |
| .input-area { | |
| padding: 20px; | |
| background: white; | |
| border-top: 2px solid #e0e0e0; | |
| display: flex; | |
| gap: 10px; | |
| } | |
| .input-area input { | |
| flex: 1; | |
| padding: 15px; | |
| border: 2px solid #e0e0e0; | |
| border-radius: 25px; | |
| font-size: 16px; | |
| transition: border 0.3s; | |
| } | |
| .input-area input:focus { | |
| outline: none; | |
| border-color: #667eea; | |
| } | |
| .btn { | |
| padding: 15px 30px; | |
| border: none; | |
| border-radius: 25px; | |
| font-size: 16px; | |
| cursor: pointer; | |
| transition: all 0.3s; | |
| font-weight: bold; | |
| } | |
| .btn-primary { | |
| background: #667eea; | |
| color: white; | |
| } | |
| .btn-primary:hover { | |
| background: #5568d3; | |
| transform: translateY(-2px); | |
| box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4); | |
| } | |
| .btn-secondary { | |
| background: #6c757d; | |
| color: white; | |
| } | |
| .btn-secondary:hover { | |
| background: #5a6268; | |
| } | |
| .btn-success { | |
| background: #28a745; | |
| color: white; | |
| } | |
| .btn-success:hover { | |
| background: #218838; | |
| } | |
| .btn-info { | |
| background: #17a2b8; | |
| color: white; | |
| } | |
| .btn-info:hover { | |
| background: #138496; | |
| } | |
| .btn-voice { | |
| background: #ff6b6b; | |
| color: white; | |
| min-width: 60px; | |
| } | |
| .btn-voice:hover { | |
| background: #ff5252; | |
| } | |
| .btn-voice.recording { | |
| background: #f44336; | |
| animation: pulse 1.5s infinite; | |
| } | |
| .controls { | |
| padding: 15px 20px; | |
| background: #f8f9fa; | |
| display: flex; | |
| gap: 10px; | |
| justify-content: center; | |
| flex-wrap: wrap; | |
| } | |
| .loading { | |
| display: none; | |
| text-align: center; | |
| padding: 10px; | |
| color: #667eea; | |
| font-style: italic; | |
| } | |
| .loading.active { | |
| display: block; | |
| } | |
| .modal { | |
| display: none; | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(0,0,0,0.7); | |
| justify-content: center; | |
| align-items: center; | |
| z-index: 1000; | |
| } | |
| .modal.active { | |
| display: flex; | |
| } | |
| .modal-content { | |
| background: white; | |
| padding: 30px; | |
| border-radius: 15px; | |
| max-width: 800px; | |
| max-height: 80vh; | |
| overflow-y: auto; | |
| width: 90%; | |
| } | |
| .modal-content pre { | |
| white-space: pre-wrap; | |
| font-family: 'Segoe UI', sans-serif; | |
| line-height: 1.6; | |
| } | |
| .close-btn { | |
| float: right; | |
| font-size: 28px; | |
| cursor: pointer; | |
| color: #999; | |
| } | |
| .close-btn:hover { | |
| color: #333; | |
| } | |
| .history-list { | |
| max-height: 400px; | |
| overflow-y: auto; | |
| margin-top: 20px; | |
| } | |
| .history-item { | |
| padding: 15px; | |
| border: 2px solid #e0e0e0; | |
| border-radius: 10px; | |
| margin-bottom: 10px; | |
| cursor: pointer; | |
| transition: all 0.3s; | |
| } | |
| .history-item:hover { | |
| border-color: #667eea; | |
| background: #f8f9fa; | |
| transform: translateX(5px); | |
| } | |
| .history-item h4 { | |
| color: #667eea; | |
| margin-bottom: 5px; | |
| } | |
| .history-item p { | |
| font-size: 0.9em; | |
| color: #666; | |
| margin: 5px 0; | |
| } | |
| .pdf-badge { | |
| display: inline-block; | |
| background: #28a745; | |
| color: white; | |
| padding: 3px 8px; | |
| border-radius: 5px; | |
| font-size: 0.8em; | |
| margin-left: 10px; | |
| } | |
| .load-session-form { | |
| margin: 20px 0; | |
| display: flex; | |
| gap: 10px; | |
| } | |
| .load-session-form input { | |
| flex: 1; | |
| padding: 10px; | |
| border: 2px solid #e0e0e0; | |
| border-radius: 10px; | |
| font-family: monospace; | |
| } | |
| .notification { | |
| position: fixed; | |
| top: 20px; | |
| right: 20px; | |
| padding: 15px 25px; | |
| border-radius: 10px; | |
| color: white; | |
| font-weight: bold; | |
| z-index: 2000; | |
| animation: slideInRight 0.3s ease; | |
| display: none; | |
| } | |
| .notification.success { | |
| background: #28a745; | |
| } | |
| .notification.error { | |
| background: #dc3545; | |
| } | |
| .notification.info { | |
| background: #17a2b8; | |
| } | |
| .notification.active { | |
| display: block; | |
| } | |
| @keyframes slideInRight { | |
| from { | |
| transform: translateX(100%); | |
| } | |
| to { | |
| transform: translateX(0); | |
| } | |
| } | |
| .pdf-viewer { | |
| width: 100%; | |
| height: 600px; | |
| border: none; | |
| border-radius: 10px; | |
| margin-top: 20px; | |
| } | |
| .summary-actions { | |
| display: flex; | |
| gap: 10px; | |
| margin-top: 20px; | |
| justify-content: center; | |
| } | |
| .pdf-download-info { | |
| text-align: center; | |
| padding: 15px; | |
| background: #e8f5e9; | |
| border-radius: 10px; | |
| margin-top: 15px; | |
| color: #2e7d32; | |
| } | |
| .pdf-icon { | |
| font-size: 48px; | |
| margin-bottom: 10px; | |
| } | |
| .voice-status { | |
| text-align: center; | |
| padding: 10px; | |
| background: #e3f2fd; | |
| border-radius: 10px; | |
| margin: 10px 0; | |
| font-size: 0.9em; | |
| color: #1565c0; | |
| display: none; | |
| } | |
| .voice-status.active { | |
| display: block; | |
| } |