- Poignée de redimensionnement avec indicateur visuel permanent (3 points) - Largeur ajustable entre 280px et 600px - Sauvegarde automatique de la largeur préférée - Optimisations avec requestAnimationFrame pour la fluidité - Overlay pendant le drag pour capturer tous les mouvements - Indicateur change de couleur au survol (gris → violet)
1157 lines
21 KiB
CSS
1157 lines
21 KiB
CSS
/* === 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);
|
|
}
|
|
}
|
|
|
|
@keyframes rotate {
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* === 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 AVEC ONGLETS === */
|
|
.header-with-tabs {
|
|
background: white;
|
|
padding: 0;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
|
|
display: flex;
|
|
align-items: flex-end;
|
|
z-index: 1000;
|
|
min-height: 60px;
|
|
border-bottom: 2px solid #e9ecef;
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
padding: 15px 20px;
|
|
padding-bottom: 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.header-left h1 {
|
|
font-size: 20px;
|
|
color: #667eea;
|
|
margin: 0;
|
|
}
|
|
|
|
.agent-name {
|
|
font-size: 14px;
|
|
color: #666;
|
|
font-weight: 500;
|
|
}
|
|
|
|
|
|
.call-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 15px;
|
|
background: #f8f9fa;
|
|
border-radius: 20px;
|
|
border: 1px solid #e9ecef;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.status-indicator {
|
|
width: 10px;
|
|
height: 10px;
|
|
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: 13px;
|
|
font-weight: 500;
|
|
color: #495057;
|
|
}
|
|
|
|
.header-right {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
padding: 15px 20px;
|
|
padding-bottom: 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.btn-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
padding: 0;
|
|
background: white;
|
|
border: 1px solid #dee2e6;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
font-size: 16px;
|
|
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-icon.rotating .icon-refresh {
|
|
animation: rotate 1s linear;
|
|
display: inline-block;
|
|
}
|
|
|
|
.btn-secondary {
|
|
padding: 8px 16px;
|
|
background: white;
|
|
border: 1px solid #dee2e6;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
font-size: 13px;
|
|
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 - 60px); /* Hauteur totale moins le header combiné */
|
|
}
|
|
|
|
/* === ZONE PRINCIPALE === */
|
|
.content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: #f5f5f5;
|
|
width: 100%;
|
|
position: relative;
|
|
overflow: hidden;
|
|
height: 100%;
|
|
}
|
|
|
|
/* === ONGLETS === */
|
|
.tabs {
|
|
display: flex;
|
|
flex: 1;
|
|
gap: 3px;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
align-items: flex-end;
|
|
padding: 0 10px;
|
|
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: 10px 20px;
|
|
background: #f8f9fa;
|
|
border: 1px solid #e9ecef;
|
|
border-bottom: none;
|
|
border-radius: 6px 6px 0 0;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: #666;
|
|
margin-bottom: -2px;
|
|
position: relative;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tab:hover {
|
|
background: white;
|
|
color: #333;
|
|
}
|
|
|
|
.tab.active {
|
|
background: white;
|
|
color: #667eea;
|
|
border-color: #e9ecef;
|
|
padding-bottom: 12px;
|
|
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: 100%; /* Pleine hauteur car les onglets sont dans le header */
|
|
}
|
|
|
|
.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%;
|
|
}
|
|
|
|
.planning-webview {
|
|
flex: 1;
|
|
width: 100%;
|
|
border: none;
|
|
}
|
|
|
|
/* === ZONE DE NOTES - PANNEAU LATÉRAL === */
|
|
.notes-section {
|
|
position: fixed;
|
|
top: 60px; /* Juste sous le header */
|
|
right: -400px; /* Caché par défaut */
|
|
width: 380px;
|
|
min-width: 280px;
|
|
max-width: 600px;
|
|
height: calc(100vh - 60px);
|
|
background: white;
|
|
box-shadow: -4px 0 20px rgba(0,0,0,0.1);
|
|
transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
z-index: 100;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-left: 1px solid #e1e4e8;
|
|
}
|
|
|
|
/* Poignée de redimensionnement */
|
|
.notes-resize-handle {
|
|
position: absolute;
|
|
left: -5px;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 10px;
|
|
cursor: col-resize;
|
|
background: linear-gradient(90deg,
|
|
transparent 0%,
|
|
transparent 30%,
|
|
rgba(209, 213, 219, 0.5) 50%,
|
|
transparent 70%,
|
|
transparent 100%);
|
|
z-index: 10;
|
|
}
|
|
|
|
.notes-resize-handle:hover {
|
|
background: linear-gradient(90deg,
|
|
transparent 0%,
|
|
rgba(102, 126, 234, 0.1) 30%,
|
|
rgba(102, 126, 234, 0.3) 50%,
|
|
rgba(102, 126, 234, 0.1) 70%,
|
|
transparent 100%);
|
|
}
|
|
|
|
.notes-resize-handle:active {
|
|
background: linear-gradient(90deg,
|
|
transparent 0%,
|
|
rgba(102, 126, 234, 0.2) 30%,
|
|
rgba(102, 126, 234, 0.5) 50%,
|
|
rgba(102, 126, 234, 0.2) 70%,
|
|
transparent 100%);
|
|
}
|
|
|
|
/* Indicateur visuel permanent - 3 points verticaux */
|
|
.notes-resize-handle::before {
|
|
content: '⋮⋮⋮';
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%) rotate(90deg);
|
|
font-size: 16px;
|
|
color: #9ca3af;
|
|
letter-spacing: -4px;
|
|
font-weight: bold;
|
|
pointer-events: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.notes-resize-handle:hover::before {
|
|
color: #667eea;
|
|
}
|
|
|
|
/* Désactiver les transitions pendant le redimensionnement */
|
|
.notes-section.resizing {
|
|
transition: none !important;
|
|
}
|
|
|
|
.webview-container.resizing {
|
|
transition: none !important;
|
|
}
|
|
|
|
.notes-section.visible {
|
|
right: 0;
|
|
animation: slideInRight 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes slideInRight {
|
|
from {
|
|
right: -400px;
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
right: 0;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.notes-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
border-bottom: none;
|
|
}
|
|
|
|
.notes-header h4 {
|
|
margin: 0;
|
|
color: white;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.notes-header h4::before {
|
|
content: '📝';
|
|
font-size: 20px;
|
|
}
|
|
|
|
.btn-close-notes {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: none;
|
|
font-size: 20px;
|
|
color: white;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-close-notes:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.notes-section textarea {
|
|
flex: 1;
|
|
width: 100%;
|
|
padding: 20px;
|
|
border: none;
|
|
resize: none;
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
background: #fafbfc;
|
|
}
|
|
|
|
.notes-section textarea:focus {
|
|
outline: none;
|
|
background: white;
|
|
}
|
|
|
|
.notes-section textarea::placeholder {
|
|
color: #959da5;
|
|
font-style: italic;
|
|
}
|
|
|
|
.notes-footer {
|
|
padding: 15px 20px;
|
|
background: white;
|
|
border-top: 1px solid #e1e4e8;
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.btn-small {
|
|
flex: 1;
|
|
padding: 10px 20px;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-small:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
|
|
}
|
|
|
|
.btn-small.btn-clear {
|
|
flex: 0.5;
|
|
background: #f1f3f5;
|
|
color: #495057;
|
|
}
|
|
|
|
.btn-small.btn-clear:hover {
|
|
background: #e9ecef;
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* Ajustement de la webview quand les notes sont visibles */
|
|
.webview-container.notes-open {
|
|
margin-right: var(--notes-width, 380px);
|
|
transition: margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
/* Tooltip moderne pour le bouton notes */
|
|
.btn-icon[title]::after {
|
|
content: attr(title);
|
|
position: absolute;
|
|
bottom: -35px;
|
|
right: 0;
|
|
background: rgba(0, 0, 0, 0.9);
|
|
color: white;
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.3s;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.btn-icon[title]:hover::after {
|
|
opacity: 1;
|
|
}
|
|
|
|
|
|
/* === 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;
|
|
}
|
|
|
|
/* === MODAL DE DÉCONNEXION === */
|
|
.modal-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 3000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
backdrop-filter: blur(10px);
|
|
animation: fadeIn 0.2s;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal-overlay.active {
|
|
display: flex;
|
|
}
|
|
|
|
.logout-modal {
|
|
background: white;
|
|
border-radius: 16px;
|
|
padding: 40px;
|
|
max-width: 420px;
|
|
width: 90%;
|
|
text-align: center;
|
|
animation: scaleIn 0.3s ease;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
@keyframes scaleIn {
|
|
from {
|
|
transform: scale(0.9);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.logout-modal-icon {
|
|
width: 80px;
|
|
height: 80px;
|
|
margin: 0 auto 20px;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 40px;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
/* Spinner de déconnexion */
|
|
.logout-spinner {
|
|
width: 80px;
|
|
height: 80px;
|
|
margin: 0 auto 20px;
|
|
position: relative;
|
|
}
|
|
|
|
.spinner-ring {
|
|
width: 80px;
|
|
height: 80px;
|
|
border: 8px solid #f3f4f6;
|
|
border-top: 8px solid #667eea;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
.logout-modal.processing .logout-modal-icon {
|
|
animation: fadeOut 0.3s forwards;
|
|
}
|
|
|
|
.logout-modal.processing .logout-spinner {
|
|
animation: fadeIn 0.3s forwards;
|
|
}
|
|
|
|
@keyframes fadeOut {
|
|
from { opacity: 1; transform: scale(1); }
|
|
to { opacity: 0; transform: scale(0.8); }
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: scale(0.8); }
|
|
to { opacity: 1; transform: scale(1); }
|
|
}
|
|
|
|
.logout-modal h2 {
|
|
margin: 0 0 15px 0;
|
|
color: #333;
|
|
font-size: 28px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.logout-modal p {
|
|
margin: 0 0 10px 0;
|
|
color: #555;
|
|
font-size: 16px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.logout-modal-subtitle {
|
|
color: #999 !important;
|
|
font-size: 14px !important;
|
|
margin-bottom: 30px !important;
|
|
}
|
|
|
|
.logout-modal-buttons {
|
|
display: flex;
|
|
gap: 12px;
|
|
justify-content: center;
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.btn-modal-cancel,
|
|
.btn-modal-confirm {
|
|
padding: 12px 30px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
min-width: 140px;
|
|
}
|
|
|
|
.btn-modal-cancel {
|
|
background: #f1f3f5;
|
|
color: #495057;
|
|
}
|
|
|
|
.btn-modal-cancel:hover {
|
|
background: #e9ecef;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.btn-modal-confirm {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
}
|
|
|
|
.btn-modal-confirm:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
/* Modal de progression de connexion */
|
|
.login-progress-modal {
|
|
background: white;
|
|
padding: 50px;
|
|
border-radius: 16px;
|
|
text-align: center;
|
|
max-width: 400px;
|
|
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
|
|
animation: scaleIn 0.3s ease-out;
|
|
}
|
|
|
|
.login-spinner {
|
|
margin: 0 auto 30px;
|
|
width: 60px;
|
|
height: 60px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.login-progress-modal h2 {
|
|
margin: 0 0 15px 0;
|
|
color: #333;
|
|
font-size: 28px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.login-progress-modal p {
|
|
margin: 0 0 10px 0;
|
|
color: #555;
|
|
font-size: 16px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.login-modal-subtitle {
|
|
color: #999 !important;
|
|
font-size: 14px !important;
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
.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;
|
|
} |