/* === RESET ET BASE === */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; background: #f5f5f5; color: #333; height: 100vh; overflow: hidden; } /* === ANIMATIONS === */ @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } } @keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } } @keyframes slideDown { from { transform: translateY(0); opacity: 1; } to { transform: translateY(100%); opacity: 0; } } @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); } 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); } } /* === PAGES === */ .page { display: none; width: 100%; height: 100vh; } .page.active { display: flex; } /* === PAGE DE CONNEXION === */ #loginPage { justify-content: center; align-items: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } .login-container { background: white; padding: 40px; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); width: 90%; max-width: 400px; } .login-container h1 { text-align: center; color: #667eea; margin-bottom: 10px; font-size: 32px; } /* Indicateur de statut SignalR */ .signalr-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 15px 0; padding: 10px; background: #f8f9fa; border-radius: 5px; font-size: 14px; } .signalr-indicator { width: 12px; height: 12px; border-radius: 50%; background: #ccc; transition: background 0.3s; } .signalr-indicator.connected { background: #4CAF50; animation: pulse 2s infinite; } .signalr-indicator.connecting { background: #FFC107; animation: pulse 1s infinite; } .signalr-indicator.disconnected, .signalr-indicator.error { background: #F44336; } .signalr-indicator.disabled { background: #9E9E9E; } .login-container h2 { text-align: center; color: #333; margin: 20px 0; font-size: 20px; } #loginForm input, #loginForm select { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; } #loginForm button { width: 100%; padding: 12px; background: #667eea; color: white; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; transition: background 0.3s; } #loginForm button:hover { background: #5a6fd8; } #loginForm button:disabled { background: #a8b0e8; cursor: not-allowed; } .error-message { color: #e74c3c; text-align: center; margin-top: 10px; font-size: 14px; } /* Checkbox de déconnexion forcée */ .force-disconnect-container { margin: 25px 0 20px 0; padding: 16px; background: #f8f9fa; border-radius: 8px; border: 1px solid #e9ecef; transition: all 0.2s ease; } .force-disconnect-container:hover { border-color: #dee2e6; background: #f1f3f5; } .checkbox-label { display: flex; align-items: flex-start; cursor: pointer; user-select: none; font-size: 14px; color: #333; position: relative; } .checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; cursor: pointer; height: 18px; width: 18px; left: 0; top: 1px; z-index: 1; } .checkbox-label::before { content: ''; display: inline-block; width: 18px; height: 18px; margin-right: 12px; margin-top: 1px; border: 2px solid #dee2e6; border-radius: 4px; background: white; transition: all 0.2s ease; flex-shrink: 0; } .checkbox-label input[type="checkbox"]:checked + span::before { content: ''; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; background: #667eea; border: 2px solid #667eea; border-radius: 4px; } .checkbox-label input[type="checkbox"]:checked + span::after { content: ''; position: absolute; left: 6px; top: 4px; width: 6px; height: 11px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); } .checkbox-label span { font-weight: 600; color: #495057; letter-spacing: 0.3px; padding-top: 1px; } .checkbox-hint { display: block; margin-top: 6px; margin-left: 30px; font-size: 13px; color: #6c757d; line-height: 1.5; } /* === PAGE PRINCIPALE === */ #mainPage { flex-direction: column; height: 100vh; overflow: hidden; } /* === HEADER === */ header { background: white; padding: 15px 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; z-index: 1000; min-height: 70px; } .header-left { display: flex; align-items: center; gap: 20px; } .header-left h1 { font-size: 24px; color: #667eea; margin: 0; } .agent-name { font-size: 16px; color: #666; font-weight: 500; } .header-center { flex: 1; display: flex; justify-content: center; align-items: center; } .call-status { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: #f8f9fa; border-radius: 25px; border: 1px solid #e9ecef; } .status-indicator { width: 12px; height: 12px; border-radius: 50%; } .status-indicator.available { background: #4CAF50; animation: pulse 2s infinite; } .status-indicator.busy { background: #FF9800; animation: pulse 1s infinite; } .status-indicator.offline { background: #9E9E9E; animation: none; } #statusText { font-size: 14px; font-weight: 500; color: #495057; } .header-right { display: flex; gap: 10px; align-items: center; } .btn-icon { width: 40px; height: 40px; padding: 0; background: white; border: 1px solid #dee2e6; border-radius: 8px; cursor: pointer; transition: all 0.2s; font-size: 18px; display: flex; align-items: center; justify-content: center; } .btn-icon:hover { background: #f8f9fa; border-color: #667eea; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15); } .btn-icon.active { background: #667eea; color: white; border-color: #667eea; } .btn-secondary { padding: 10px 20px; background: white; border: 1px solid #dee2e6; border-radius: 8px; cursor: pointer; transition: all 0.2s; font-size: 14px; font-weight: 500; color: #495057; } .btn-secondary:hover { background: #f8f9fa; border-color: #667eea; color: #667eea; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15); } /* === ALERTE APPEL ENTRANT === */ .incoming-call-alert { display: none; background: linear-gradient(135deg, #FF6B6B, #FF8E53); color: white; padding: 20px 30px; align-items: center; gap: 20px; animation: slideDown 0.5s; position: relative; z-index: 999; } .incoming-call-alert.active { display: flex; } @keyframes slideDownAlert { from { transform: translateY(-100%); } to { transform: translateY(0); } } .call-icon { font-size: 40px; animation: ring 1s infinite; } @keyframes ring { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(20deg); } 75% { transform: rotate(-20deg); } } .call-info { flex: 1; } .call-title { font-size: 14px; opacity: 0.9; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; } .call-center { font-size: 22px; font-weight: bold; margin-bottom: 5px; } .call-patient { font-size: 16px; opacity: 0.9; } .btn-accept { padding: 12px 30px; background: white; color: #FF6B6B; border: none; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.1); } .btn-accept:hover { transform: scale(1.05); box-shadow: 0 6px 16px rgba(0,0,0,0.15); } /* === CONTENEUR PRINCIPAL === */ .main-container { display: flex; flex: 1; overflow: hidden; flex-direction: column; height: calc(100vh - 70px); /* Hauteur totale moins le header */ } /* === ZONE PRINCIPALE === */ .content { flex: 1; display: flex; flex-direction: column; background: #f5f5f5; width: 100%; position: relative; overflow: hidden; height: 100%; } /* === ONGLETS === */ .tabs { display: flex; background: white; border-bottom: 2px solid #e9ecef; padding: 0 20px; gap: 5px; overflow-x: auto; overflow-y: hidden; min-height: 50px; align-items: flex-end; flex-shrink: 0; scrollbar-width: none; /* Firefox */ -ms-overflow-style: none; /* IE/Edge */ } /* Masquer la scrollbar pour Chrome/Safari/Opera */ .tabs::-webkit-scrollbar { display: none; height: 0; } .tab { padding: 12px 24px; background: #f8f9fa; border: 1px solid #e9ecef; border-bottom: none; border-radius: 8px 8px 0 0; cursor: pointer; transition: all 0.2s; font-size: 14px; font-weight: 500; color: #666; margin-bottom: -2px; position: relative; } .tab:hover { background: white; color: #333; } .tab.active { background: white; color: #667eea; border-color: #e9ecef; padding-bottom: 14px; font-weight: 600; } .tab.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #667eea; } /* === WEBVIEW CONTAINER === */ .webview-container { flex: 1; position: relative; background: white; overflow: hidden; height: calc(100% - 50px); /* Hauteur moins les onglets */ } .no-center-selected { display: flex; justify-content: center; align-items: center; height: 100%; color: #999; font-size: 16px; } .webview-wrapper { display: none; flex-direction: column; height: 100%; } .webview-toolbar { background: #f8f9fa; padding: 10px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e9ecef; } .webview-toolbar button { padding: 6px 12px; background: white; border: 1px solid #dee2e6; border-radius: 4px; cursor: pointer; transition: all 0.2s; } .webview-toolbar button:hover { background: #e9ecef; } .webview-url { flex: 1; color: #666; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .planning-webview { flex: 1; width: 100%; border: none; } /* === ZONE DE NOTES === */ .notes-section { background: white; border-top: 2px solid #667eea; position: absolute; bottom: 0; left: 0; right: 0; transition: transform 0.3s ease; transform: translateY(100%); box-shadow: 0 -4px 12px rgba(0,0,0,0.1); z-index: 100; } .notes-section.visible { transform: translateY(0); } .notes-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: #f8f9fa; border-bottom: 1px solid #e9ecef; } .notes-header h4 { margin: 0; color: #333; font-size: 16px; font-weight: 600; } .btn-close-notes { background: none; border: none; font-size: 24px; color: #999; cursor: pointer; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: all 0.2s; } .btn-close-notes:hover { background: white; color: #333; } .notes-section textarea { width: 100%; min-height: 120px; padding: 15px 20px; border: none; resize: none; font-family: inherit; font-size: 14px; line-height: 1.5; } .notes-section textarea:focus { outline: none; } .btn-small { margin: 0 20px 15px 20px; padding: 8px 20px; background: #667eea; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s; } .btn-small:hover { background: #5a6fd8; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25); } /* === MODAL === */ .modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); backdrop-filter: blur(5px); animation: fadeIn 0.3s; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .modal-content { background-color: white; margin: 10% auto; padding: 30px; border-radius: 12px; width: 80%; max-width: 500px; animation: slideUp 0.3s; box-shadow: 0 20px 60px rgba(0,0,0,0.3); } .modal-content h2 { margin-bottom: 20px; color: #333; } .close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; transition: color 0.2s; } .close:hover { color: #333; } .simulated-calls-list { max-height: 300px; overflow-y: auto; margin: 20px 0; } .simulated-call-item { padding: 12px; margin-bottom: 8px; background: #f8f9fa; border-radius: 8px; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; } .simulated-call-item:hover { background: white; border-color: #667eea; transform: translateX(5px); } .call-name { font-weight: 600; margin-bottom: 4px; } .call-details { font-size: 13px; color: #666; } /* === Styles Choices.js === */ .choices { position: relative; margin-bottom: 15px; } .choices__inner { background: white; border: 1px solid #ddd; border-radius: 5px; padding: 12px; font-size: 14px; } .choices.is-focused .choices__inner { border-color: #667eea; } .choices__list--dropdown { background: white; border: 1px solid #ddd; border-radius: 5px; margin-top: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); } .choices__item--choice { padding: 10px 15px; } .choices__item--choice:hover { background: #f8f9fa; } .choices__item--choice.is-highlighted { background: #667eea; color: white; }