/* === 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; } /* === 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; } .login-container h2 { text-align: center; color: #666; margin-bottom: 30px; font-size: 18px; font-weight: normal; } #loginForm input { 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; } .error-message { color: #e74c3c; text-align: center; margin-top: 10px; font-size: 14px; } /* === PAGE PRINCIPALE === */ #mainPage { flex-direction: column; } /* === HEADER === */ header { background: white; border-bottom: 1px solid #e0e0e0; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.05); } .header-left h1 { display: inline-block; font-size: 20px; color: #667eea; margin-right: 20px; } .agent-name { color: #666; font-size: 14px; } .call-status { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: #f8f8f8; border-radius: 20px; } .status-indicator { width: 10px; height: 10px; border-radius: 50%; animation: pulse 2s infinite; } .status-indicator.available { background: #4CAF50; } .status-indicator.busy { background: #FF9800; animation: pulse 1s infinite; } .status-indicator.offline { background: #9E9E9E; animation: none; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .btn-secondary { padding: 8px 16px; background: white; border: 1px solid #ddd; border-radius: 5px; cursor: pointer; transition: all 0.3s; margin-left: 10px; } .btn-secondary:hover { background: #f5f5f5; border-color: #667eea; color: #667eea; } /* === ALERTE APPEL ENTRANT === */ .incoming-call-alert { display: none; background: linear-gradient(135deg, #FF6B6B, #FF8E53); color: white; padding: 20px; align-items: center; gap: 20px; animation: slideDown 0.5s; } .incoming-call-alert.active { display: flex; } @keyframes slideDown { 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; } .call-center { font-size: 20px; font-weight: bold; margin-bottom: 5px; } .call-patient { font-size: 14px; opacity: 0.9; } .btn-accept { padding: 12px 30px; background: white; color: #FF6B6B; border: none; border-radius: 5px; font-size: 16px; font-weight: bold; cursor: pointer; transition: transform 0.2s; } .btn-accept:hover { transform: scale(1.05); } /* === CONTENEUR PRINCIPAL === */ .main-container { display: flex; flex: 1; overflow: hidden; } /* === SIDEBAR === */ .sidebar { width: 280px; background: white; border-right: 1px solid #e0e0e0; display: flex; flex-direction: column; } .sidebar h3 { padding: 20px; background: #f8f8f8; border-bottom: 1px solid #e0e0e0; font-size: 16px; color: #666; } .centers-list { flex: 1; overflow-y: auto; } .center-item { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background 0.2s; } .center-item:hover { background: #f8f8f8; } .center-item.active { background: #f0f7ff; border-left: 3px solid #667eea; } .center-indicator { width: 12px; height: 12px; border-radius: 50%; margin-right: 15px; } .center-info { flex: 1; } .center-name { font-weight: 500; margin-bottom: 3px; } .center-phone { font-size: 12px; color: #999; } .center-status { color: #ddd; font-size: 10px; } .sidebar-footer { padding: 20px; background: #f8f8f8; border-top: 1px solid #e0e0e0; } .sidebar-footer h4 { font-size: 14px; color: #666; margin-bottom: 10px; } .daily-stats { display: flex; flex-direction: column; gap: 8px; } .stat-item { display: flex; justify-content: space-between; font-size: 13px; } .stat-value { font-weight: bold; color: #667eea; } /* === ZONE PRINCIPALE === */ .content { flex: 1; display: flex; flex-direction: column; background: #f5f5f5; } /* === ONGLETS === */ .tabs { display: flex; background: white; border-bottom: 1px solid #e0e0e0; overflow-x: auto; } .tab { padding: 12px 20px; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; transition: all 0.3s; font-size: 14px; } .tab:hover { background: #f8f8f8; } .tab.active { font-weight: 500; border-bottom-width: 3px; } /* === WEBVIEW CONTAINER === */ .webview-container { flex: 1; position: relative; background: white; margin: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; } .no-center-selected { display: flex; justify-content: center; align-items: center; height: 100%; color: #999; font-size: 16px; } .webview-wrapper { width: 100%; height: 100%; display: flex; flex-direction: column; } .webview-toolbar { display: flex; align-items: center; gap: 10px; padding: 10px; background: #f8f8f8; border-bottom: 1px solid #e0e0e0; } .webview-toolbar button { padding: 5px 10px; background: white; border: 1px solid #ddd; border-radius: 3px; cursor: pointer; } .webview-toolbar button:hover { background: #f0f0f0; } .webview-url { flex: 1; font-size: 12px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .planning-webview { flex: 1; width: 100%; } /* === NOTES === */ .notes-section { padding: 20px; background: white; margin: 0 20px 20px 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .notes-section h4 { margin-bottom: 10px; color: #666; font-size: 14px; } #quickNotes { width: 100%; height: 80px; padding: 10px; border: 1px solid #ddd; border-radius: 5px; resize: vertical; font-family: inherit; font-size: 13px; } .btn-small { margin-top: 10px; padding: 6px 12px; background: #667eea; color: white; border: none; border-radius: 4px; font-size: 13px; cursor: pointer; } .btn-small:hover { background: #5a6fd8; } /* === MODAL === */ .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); } .modal-content { background: white; margin: 10% auto; padding: 30px; width: 80%; max-width: 500px; border-radius: 8px; animation: fadeIn 0.3s; } @keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } } .close { float: right; font-size: 28px; font-weight: bold; cursor: pointer; color: #999; } .close:hover { color: #333; } .modal-content h2 { margin-bottom: 20px; color: #333; } .simulated-calls-list { margin: 20px 0; max-height: 300px; overflow-y: auto; } .simulated-call-item { padding: 15px; border: 1px solid #e0e0e0; border-radius: 5px; margin-bottom: 10px; cursor: pointer; transition: all 0.2s; } .simulated-call-item:hover { background: #f8f8f8; border-color: #667eea; } .call-name { font-weight: 500; margin-bottom: 5px; } .call-details { font-size: 13px; color: #666; }