:root { --primary-color: #3a5a80; --primary-hover: #2d4560; --accent-color: #dee6ef; --background-color: #f8f9fb; --border-color: #d0d7de; --text-color: #333; } body { font-family: "Segoe UI", sans-serif; background: var(--background-color); color: var(--text-color); margin: 0; padding: 0; height: 100vh; overflow: hidden; } .page-wrapper { display: flex; height: 100vh; width: 100%; position: relative; } /* Sidebar chat */ #chat-sidebar { width: 600px; background: #ffffff; border-right: 1px solid #ddd; display: flex; flex-direction: column; transition: transform 0.3s ease; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); z-index: 999; } #chat-sidebar.collapsed { width: 0; border: none; } #chat-header { padding: 15px; background: #007bff; color: white; display: flex; justify-content: space-between; align-items: center; font-weight: bold; } #chat-box { flex-grow: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 10px; } .chat-message { max-width: 80%; padding: 10px 15px; border-radius: 15px; background-color: #f1f1f1; align-self: flex-start; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } .chat-message.user { background-color: #dcf8c6; align-self: flex-end; } #chat-footer { padding: 10px; border-top: 1px solid #eee; display: flex; gap: 10px; } #chat-input { flex-grow: 1; padding: 12px 16px; border-radius: 12px; border: 1px solid #ccc; font-size: 15px; font-family: "Segoe UI", sans-serif; line-height: 1.4; resize: none; outline: none; background-color: #f9fbfd; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05); transition: border-color 0.2s ease, box-shadow 0.2s ease; } #chat-input:focus { border-color: #007bff; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2); background-color: #fff; } #chat-input::placeholder { color: #999; font-style: italic; font-size: 14px; } #chat-input { caret-color: #007bff; } #chat-footer button { background: #007bff; color: white; border: none; padding: 10px 15px; border-radius: 8px; cursor: pointer; font-size: 16px; transition: background-color 0.3s ease, transform 0.2s ease; } #chat-footer button:hover { background: #0056b3; transform: scale(1.05); } #chat-footer button:disabled { background: #ccc; cursor: not-allowed; opacity: 0.6; transform: none; } .toggle-chat-button { position: fixed; top: 20px; left: 20px; z-index: 1001; padding: 12px 14px; font-size: 18px; border-radius: 50%; background: #007bff; color: white; border: none; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: opacity 0.3s ease; } .toggle-chat-button.hidden { opacity: 0; pointer-events: none; } /* Le main-container prend tout l’espace restant */ .main-container { flex-grow: 1; transition: margin-left 0.3s ease; overflow: auto; padding: 20px 20px 20px 80px; } #chat-sidebar, .main-container { transition: all 0.3s ease-in-out; } #chat-sidebar.collapsed { width: 0; min-width: 0; padding: 0; overflow: hidden; border: none; } /* Empêche l'affichage des enfants */ #chat-sidebar.collapsed * { display: none !important; } .stepper { display: flex; gap: 16px; align-items: center; margin: 10px 0 20px; } .stepper .step { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f4f7fa; border: 1px solid #d0d7de; border-radius: 12px; color: #4a5568; font-weight: 600; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; } .stepper .step::after { content: ""; position: absolute; left: 100%; top: 50%; width: 16px; height: 2px; margin-left: 1px; background: #d0d7de; transform: translateY(-50%); z-index: 0; } .stepper .step:last-child::after { display: none; } .stepper .step-index { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #e6eef7; color: #2563eb; font-weight: 700; font-size: 13px; border: 1px solid #cbd5e1; } .stepper .step.active { border-color: #2563eb; box-shadow: 0 8px 18px rgba(37, 99, 235, 0.15); transform: translateY(-2px); background: #eef4ff; } .stepper .step.locked { opacity: 0.45; cursor: not-allowed; background: #f8fafc; border-color: #e2e8f0; } .stepper .step:not(.locked):hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12); } .stepper .step.active .step-index { background: #2563eb; color: #fff; border-color: #2563eb; } .stepper .step.done { border-color: #28a745; color: #2563eb; } .stepper .step.done .step-index { background: #28a745; color: #fff; border-color: #28a745; } .stepper .step.done::after { background: #28a745; } .stepper .step.highlight { animation: pulseBorder 1.2s ease-in-out infinite; } @keyframes pulseBorder { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.25); } 70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); } } .help-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 12px; font-weight: 700; cursor: help; box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2); flex-shrink: 0; } .dropzone { border: 2px dashed #cbd5e1; background: #f8fafc; border-radius: 12px; padding: 16px; text-align: center; transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; margin-bottom: 16px; } .dropzone.drag-over { border-color: #2563eb; background: #eef4ff; box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12); } .dropzone-title { margin: 0; font-weight: 700; color: #1f2937; } .dropzone-subtitle { margin: 4px 0 12px 0; color: #4b5563; } .csv-upload-row { display: none !important; } #csv-upload-section .csv-upload-row, #csv-upload-section .csv-upload-row .custom-upload-button, #csv-upload-section .csv-upload-row #csv-file-info, #csv-upload-section .csv-upload-row #preview-loading { display: none !important; } .wizard-panel { display: none; opacity: 0; transform: translateY(6px); transition: opacity 0.25s ease, transform 0.25s ease; } .wizard-panel.active { display: block; opacity: 1; transform: translateY(0); } .wizard-panel.locked { pointer-events: none; opacity: 0.4; } .form-row { display: flex; align-items: center; gap: 8px; } .quality-good { background-color: #e8f5e9; } .quality-warn { background-color: #fff9e6; } .quality-bad { background-color: #ffeaea; } .close-button { background: none; border: none; font-size: 1.5rem; color: #555; cursor: pointer; padding: 0.2rem 0.5rem; line-height: 1; transition: color 0.2s ease; } .close-button:hover { color: #000; } .settings-container { position: absolute; top: 16px; right: 20px; z-index: 1001; } .settings-button { background: transparent; border: none; cursor: pointer; padding: 8px; border-radius: 50%; transition: background 0.2s; } .settings-button:hover { background-color: rgba(0, 0, 0, 0.05); } .settings-button .icon { width: 24px; height: 24px; color: #333; } .settings-menu { position: absolute; top: 40px; right: 0; width: 200px; background: white; border: 1px solid #ddd; border-radius: 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); padding: 16px; z-index: 999; transition: opacity 0.2s ease, transform 0.2s ease; } .settings-menu.hidden { display: none; } .menu-group { margin-bottom: 12px; } .menu-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; color: #444; } .menu-group select { width: 100%; padding: 6px 8px; border-radius: 6px; border: 1px solid #ccc; font-size: 14px; background: #f9f9f9; transition: border-color 0.2s; } .menu-group select:focus { border-color: #007bff; outline: none; } /* ── Dark mode toggle widget ─────────────────────────────────────────── */ .dark-mode-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #444; cursor: default; } .dm-toggle-track { display: inline-block; width: 36px; height: 20px; background: #ccc; border-radius: 20px; position: relative; cursor: pointer; transition: background 0.25s; flex-shrink: 0; margin-left: auto; } .dm-toggle-thumb { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: #fff; border-radius: 50%; transition: transform 0.25s; pointer-events: none; } .dm-toggle-thumb.dm-on { transform: translateX(16px); } .dm-toggle-track:has(.dm-on) { background: #2563eb; } /* ── Dark mode overrides ─────────────────────────────────────────────── */ body.dark-mode { --background-color: #0f1117; --text-color: #dde1e7; --border-color: #2e3347; --primary-color: #5b8ab8; --accent-color: #1e2a38; background: #0f1117; color: #dde1e7; } /* Broad text-color reset — covers h*, p, label, span, td, li, small */ body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 { color: #dde1e7; } body.dark-mode h2 { color: #7aafd4; } body.dark-mode p, body.dark-mode li, body.dark-mode small, body.dark-mode strong { color: #dde1e7; } body.dark-mode label { color: #c8d0db; } /* Panels & surfaces */ body.dark-mode section { background: #1c1f2e !important; border-color: #2e3347; } body.dark-mode .result-section { background-color: #1c1f2e !important; border-color: #2e3347; } body.dark-mode .result-section h3 { color: #dde1e7; } body.dark-mode .card { background: #1c1f2e !important; } body.dark-mode .subsection { background: #1c1f2e !important; border-color: #2e3347; } body.dark-mode .wizard-content { background: #1c1f2e; border-color: #2e3347; } /* Chat */ body.dark-mode #chat-sidebar { background: #1c1f2e; border-color: #2e3347; } body.dark-mode #chat-box { background: #151722; } body.dark-mode .chat-message { background-color: #252a3a; color: #dde1e7; } body.dark-mode .chat-message.user { background-color: #1e3a2f; } body.dark-mode #chat-input { background-color: #1c1f2e; border-color: #2e3347; color: #dde1e7; } /* Settings menu */ body.dark-mode .settings-menu { background: #1c1f2e; border-color: #2e3347; box-shadow: 0 6px 16px rgba(0,0,0,0.5); } body.dark-mode .menu-group label, body.dark-mode .dark-mode-label { color: #aab4c4; } body.dark-mode .menu-group select { background: #252836; border-color: #2e3347; color: #dde1e7; } /* Tables */ body.dark-mode table { border-color: #2e3347; } body.dark-mode th { background-color: #252836 !important; border-color: #2e3347; color: #dde1e7; } body.dark-mode td { background-color: #1c1f2e; border-color: #2e3347; color: #dde1e7; } body.dark-mode tr:nth-child(even) td { background-color: #1a1d2a; } body.dark-mode .missing-cell { background-color: #3a1a1a !important; color: #fca5a5 !important; } body.dark-mode #csv-file-info { background-color: #1c1f2e; border-color: #2e3347; color: #dde1e7; } /* Form inputs */ body.dark-mode input[type="text"], body.dark-mode input[type="number"], body.dark-mode input[type="email"], body.dark-mode select, body.dark-mode textarea { background-color: #252836; border-color: #2e3347; color: #dde1e7; } /* Dropzone */ body.dark-mode .dropzone { background: #1c1f2e; border-color: #2e3347; } body.dark-mode .dropzone-title, body.dark-mode .dropzone p { color: #aab4c4; } body.dark-mode .dropzone.drag-over { background: #1a263a; border-color: #5b8ab8; } /* Stepper */ body.dark-mode .stepper .step { background: #1c1f2e; border-color: #2e3347; color: #aab4c4; } body.dark-mode .stepper .step.active { background: #1a263a; border-color: #5b8ab8; color: #dde1e7; } body.dark-mode .stepper .step.done { color: #86efac; } /* Tabs */ body.dark-mode .tab-radio-group { background: #1c1f2e; border-color: #2e3347; } body.dark-mode .tab-radio-group label { color: #aab4c4; } /* Modal */ body.dark-mode .modal-content { background: #1c1f2e; border-color: #2e3347; color: #dde1e7; } body.dark-mode .modal-content input { background: #252836; border-color: #2e3347; color: #dde1e7; } /* Training progress panel */ body.dark-mode .training-panel { background: #1c1f2e; border-color: #2e3347; } body.dark-mode .tp-header { background: linear-gradient(135deg, #1a263a 0%, #1e1e35 100%); border-color: #2e3347; } body.dark-mode .tp-info-pill { background: #252836; color: #aab4c4; } body.dark-mode .tp-info-pill--target { background: #2a1e40; color: #a78bfa; } body.dark-mode .tp-model-row.pending { background: #1c1f2e; color: #64748b; } body.dark-mode .tp-model-row.training { background: #1a263a; color: #93c5fd; } body.dark-mode .tp-model-row.done { background: #0f2a1e; color: #86efac; } body.dark-mode .tp-model-row span { color: inherit; } /* Misc */ body.dark-mode #time-limit-display { background-color: #1c1f2e; color: #aab4c4; } body.dark-mode .quality-good { background-color: #0f2a1e !important; color: #86efac !important; } body.dark-mode .quality-warn { background-color: #2a2000 !important; color: #fde68a !important; } body.dark-mode .quality-bad { background-color: #2a0f0f !important; color: #fca5a5 !important; } body.dark-mode .plot-card img { box-shadow: 0 0 8px rgba(0,0,0,0.5); } /* Results section dividers */ body.dark-mode .result-section h3 { border-bottom-color: #2e3347; } /* Metrics table */ body.dark-mode .metrics-table, body.dark-mode .metrics-table th, body.dark-mode .metrics-table td { border-color: #2e3347; } body.dark-mode .metrics-table th { background-color: #252836 !important; color: #dde1e7; } /* Training panel model badges */ body.dark-mode .tp-model-row.pending .tp-model-badge { background: #252836; color: #94a3b8; } body.dark-mode .tp-model-row.training .tp-model-badge { background: #1a263a; color: #93c5fd; } body.dark-mode .tp-model-row.done .tp-model-badge { background: #0f2a1e; color: #86efac; } body.dark-mode .tp-divider { background: #2e3347; } /* Chat footer */ body.dark-mode #chat-footer { border-top-color: #2e3347; } /* Close button */ body.dark-mode .close-button { color: #aab4c4; } body.dark-mode .close-button:hover { color: #dde1e7; } /* Modal text */ body.dark-mode .modal-content p { color: #c8d0db; } /* Advanced options panel — has inline styles so needs !important */ body.dark-mode #advanced-options-body { background: #1c1f2e !important; border-color: #2e3347 !important; color: #dde1e7 !important; } /* Inline color:#555 on the toggle row */ body.dark-mode #advanced-options-section [onclick] { color: #aab4c4 !important; } /* Settings gear icon — not .icon */ body.dark-mode .settings-button i { color: #dde1e7; } body.dark-mode .settings-button:hover { background-color: rgba(255,255,255,0.08); } /* Upload file info box */ body.dark-mode #csv-file-info, body.dark-mode #csv-file-info-drop, body.dark-mode #predict-file-info { background-color: #1c1f2e !important; border-color: #2e3347 !important; color: #dde1e7 !important; } body.dark-mode #csv-file-name, body.dark-mode #csv-file-name-drop, body.dark-mode #predict-file-name { color: #dde1e7 !important; } .right-content { flex: 2; overflow-y: auto; padding-right: 10px; height: 100%; } #csv-file-info { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; margin-top: 0; background-color: #f0f4f8; border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font-size: 14px; color: #333; border: 1px solid #d0d7de; } #csv-file-name { font-weight: 500; color: #1a202c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80%; } .remove-btn { background-color: transparent; border: none; color: #e53e3e; font-size: 16px; cursor: pointer; transition: color 0.2s ease-in-out; } .remove-btn:hover { color: #c53030; } section { background: white; padding: 20px; margin-bottom: 30px; border-radius: 15px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); margin-top: 20px; } h2 { color: #005aaa; } input[type="file"], select, input[type="text"] { margin: 10px 0; padding: 5px; font-size: 16px; } table { border-collapse: collapse; width: 100%; margin-top: 10px; } th, td { border: 1px solid #ccc; padding: 5px; text-align: left; } #chat-box { background: #eef2f7; height: 150px; overflow-y: auto; padding: 10px; border-radius: 10px; margin-bottom: 10px; } .download-buttons-container { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; justify-content: flex-start; } .stat-table { width: 100%; border-collapse: collapse; margin-top: 10px; } .stat-table th, .stat-table td { border: 1px solid #ddd; padding: 8px; font-size: 14px; } .stat-table th { background-color: #f2f2f2; text-align: left; } .card { background: #f9f9f9; border-radius: 8px; padding: 16px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } .stats-grid { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; } .stats-grid div { min-width: 150px; } .missing-cell { background-color: #ffe2e2; } .remove-btn { background-color: transparent; border: none; color: red; font-size: 16px; cursor: pointer; margin-left: 10px; } #training-results { margin-top: 40px; } .table-wrapper { overflow-x: auto; max-width: 100%; } .spinner { width: 20px; height: 20px; border: 3px solid #f3f3f3; /* cercle extérieur */ border-top: 3px solid #3498db; /* couleur du spinner */ border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; margin-left: 10px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .csv-upload-row { display: inline-flex; /* mismo eje para botón + spinner */ align-items: center; /* centra verticalmente */ gap: 12px; } #preview-loading { align-self: center; margin: 0 0 0 8px; width: 24px; height: 24px; border-width: 3px; display: none; } /* ── Training Progress Panel ───────────────────────────────────────────────── */ .training-panel { position: fixed; top: 20px; right: -360px; width: 300px; max-height: calc(100vh - 40px); background: #ffffff; border-radius: 18px; box-shadow: 0 8px 40px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.06); border: 1px solid rgba(99, 102, 241, 0.12); z-index: 2000; display: flex; flex-direction: column; overflow: hidden; transition: right 0.4s cubic-bezier(0.34, 1.4, 0.64, 1); } .training-panel.visible { right: 20px; } /* Header */ .tp-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%); border-bottom: 1px solid #e8eaf6; } .tp-status { display: flex; align-items: center; gap: 8px; } .tp-pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; flex-shrink: 0; animation: tp-pulse 1.6s ease-in-out infinite; } @keyframes tp-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } } .tp-title { font-weight: 700; font-size: 13px; color: #1e293b; letter-spacing: 0.1px; } .tp-stop-btn { background: none; border: none; cursor: pointer; color: #94a3b8; font-size: 17px; padding: 4px 6px; border-radius: 7px; line-height: 1; transition: color 0.15s, background 0.15s; } .tp-stop-btn:hover { color: #ef4444; background: #fee2e2; } /* Dataset info pills */ .tp-dataset-info { display: flex; gap: 5px; flex-wrap: wrap; padding: 8px 14px 4px; } .tp-info-pill { background: #f1f5f9; color: #475569; font-size: 10.5px; padding: 3px 9px; border-radius: 999px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; } .tp-info-pill--target { background: #ede9fe; color: #6d28d9; } /* Circular timer ring */ .tp-timer-wrap { position: relative; width: 116px; height: 116px; margin: 10px auto 2px; flex-shrink: 0; } .tp-ring { width: 100%; height: 100%; transform: rotate(-90deg); } .tp-ring-track { fill: none; stroke: #e2e8f0; stroke-width: 7; } .tp-ring-fill { fill: none; stroke: url(#tp-gradient); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 238.76; stroke-dashoffset: 238.76; transition: stroke-dashoffset 1s linear; } .tp-timer-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; } .tp-time { font-size: 21px; font-weight: 800; color: #1e40af; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; } .tp-time-label { font-size: 9.5px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.6px; } /* Progress bar */ .tp-progress-wrap { display: flex; align-items: center; gap: 8px; padding: 6px 14px 10px; } .tp-progress-bar { flex: 1; height: 5px; background: #e2e8f0; border-radius: 999px; overflow: hidden; } .tp-progress-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #6366f1); border-radius: 999px; width: 0%; transition: width 1s linear; } .tp-progress-pct { font-size: 10.5px; font-weight: 600; color: #64748b; min-width: 28px; text-align: right; } /* Models list */ .tp-models-wrap { flex: 1; overflow-y: auto; padding: 0 14px 14px; min-height: 0; } .tp-models-wrap::-webkit-scrollbar { width: 4px; } .tp-models-wrap::-webkit-scrollbar-track { background: transparent; } .tp-models-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; } .tp-models-header { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; font-size: 10.5px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.6px; } .tp-models-hint { font-size: 9.5px; color: #94a3b8; font-weight: 400; text-transform: none; letter-spacing: 0; } .tp-models-list { display: flex; flex-direction: column; gap: 3px; } .tp-model-row { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 8px; font-size: 12.5px; transition: background 0.25s, color 0.25s; } .tp-model-row.pending { color: #94a3b8; background: #f8fafc; } .tp-model-row.training { color: #1d4ed8; background: #eff6ff; font-weight: 600; box-shadow: inset 0 0 0 1px #bfdbfe; } .tp-model-row.done { color: #15803d; background: #f0fdf4; } .tp-model-icon { font-size: 11px; width: 14px; text-align: center; flex-shrink: 0; } .tp-model-icon.spin { display: inline-block; animation: spin 0.9s linear infinite; } .tp-model-name { flex: 1; } .tp-model-badge { font-size: 9.5px; padding: 2px 6px; border-radius: 999px; font-weight: 600; } .pending .tp-model-badge { background: #e2e8f0; color: #64748b; } .training .tp-model-badge { background: #dbeafe; color: #1d4ed8; } .done .tp-model-badge { background: #dcfce7; color: #15803d; } .tp-pulse-dot.finalizing { background: #f59e0b; animation: tp-pulse-amber 1.6s ease-in-out infinite; } @keyframes tp-pulse-amber { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } } .tp-divider { height: 1px; background: #e2e8f0; margin: 6px 0; } .result-section { margin-bottom: 30px; padding: 20px; background-color: #f9f9fc; border-radius: 12px; box-shadow: 0 0 10px rgba(0,0,0,0.05); } .result-section h3 { margin-bottom: 15px; color: #2a2a2a; font-size: 1.2em; border-bottom: 1px solid #ddd; padding-bottom: 5px; } .metrics-table { width: 100%; border-collapse: collapse; margin-top: 10px; } .metrics-table th, .metrics-table td { padding: 10px 15px; border: 1px solid #ccc; text-align: center; } .metrics-table th { background-color: #efefef; } .plot-card { margin-top: 16px; text-align: center; } .plot-card img { max-width: 100%; border-radius: 8px; box-shadow: 0 0 5px rgba(0,0,0,0.1); } .custom-upload-button { display: inline-block; padding: 10px 20px; background-color: #007BFF; color: white; font-weight: bold; border-radius: 5px; cursor: pointer; margin-bottom: 10px; transition: background-color 0.3s ease; } .custom-upload-button:hover { background-color: #0056b3; } .neutral-button { display: inline-block; padding: 10px 20px; background-color: #6c757d; /* Gris doux, neutre */ color: white; font-weight: bold; border-radius: 5px; cursor: pointer; margin-top: 10px; transition: background-color 0.3s ease; border: none; } .neutral-button:hover { background-color: #5a6268; } .primary-action-button { display: inline-block; padding: 10px 20px; background-color: #28a745; color: white; font-weight: bold; border-radius: 5px; cursor: pointer; margin-top: 10px; transition: background-color 0.3s ease; } .primary-action-button:hover { background-color: #218838; } .download-button { all: unset; display: flex; align-items: center; justify-content: center; padding: 12px 24px; height: 50px; min-width: 250px; font-weight: bold; font-size: 16px; text-align: center; color: white; border-radius: 8px; text-decoration: none; cursor: pointer; margin-top: 15px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); transition: background-color 0.3s ease; border: none; } a.download-button { text-decoration: none; } button.download-button { border: none; } .download-model { background-color: #6f42c1; } .download-model:hover { background-color: #5936a4; } .download-plots { background-color: #17a2b8; } .download-plots:hover { background-color: #117a8b; } .download-pdf { background-color: #e67e22; } .download-pdf:hover { background-color: #ca6c1d; } .generate-shap-button { all: unset; display: inline-flex; align-items: center; justify-content: center; padding: 8px 20px; font-size: 14px; font-weight: 600; border-radius: 6px; background-color: #ffb347; color: #fff; border: none; cursor: pointer; transition: background-color 0.3s ease, transform 0.1s ease; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); margin-top: 10px; } .generate-shap-button:hover { background-color: #ff9f1c; transform: scale(1.02); } .generate-shap-button:active { transform: scale(0.98); } .generate-shap-button:disabled, .generate-shap-button.disabled-button { background-color: #cccccc !important; color: #666 !important; cursor: not-allowed; box-shadow: none; transform: none !important; } .button-container { display: flex; align-items: center; gap: 12px; /* espace entre bouton et spinner */ margin-top: 15px; } .leaderboard-table-container { overflow-x: auto; margin-top: 15px; } .metrics-table { width: 100%; border-collapse: collapse; margin-top: 10px; } .metrics-table th, .metrics-table td { border: 1px solid #ccc; padding: 8px 12px; text-align: left; } .metrics-table th { background-color: #f4f4f4; } .slider-container { width: fit-content; margin-bottom: 20px; font-family: "Segoe UI", sans-serif; display: flex; align-items: center; gap: 2px; } .range-wrapper { position: relative; width: 500px; margin-top: 0; } .slider-value-display { margin-top: 8px; font-size: 14px; font-weight: 500; color: #3a3a3a; text-align: center; width: 100%; } #time-limit-display { background-color: #eef2f7; padding: 6px 10px; border-radius: 8px; display: inline-block; min-width: 60px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-left: 8px; } .tooltip { position: absolute; top: -35px; left: 0; background: #3a5a80; color: white; padding: 4px 8px; font-size: 12px; border-radius: 6px; white-space: nowrap; transform: translateX(-50%); pointer-events: none; transition: left 0.1s ease; } .tab-radio-group { display: flex; border-radius: 12px; overflow: hidden; background: #f4f7fa; border: 1px solid #d0d7de; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); width: fit-content; margin-bottom: 24px; } .tab-radio-group input[type="radio"] { display: none; } .tab-radio-group label { padding: 12px 24px; cursor: pointer; font-weight: 600; font-size: 16px; color: #4a5568; background: transparent; transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s; border-right: 1px solid #e2e8f0; flex: 1; text-align: center; } .tab-radio-group label:last-child { border-right: none; } .tab-radio-group input[type="radio"]:checked + label { background-color: #2563eb; /* blue-600 */ color: white; box-shadow: inset 0 -2px 0 #1d4ed8; /* active underline */ } @media (max-width: 600px) { .tab-radio-group { flex-direction: column; } .tab-radio-group label { border-right: none; border-bottom: 1px solid #e2e8f0; } .tab-radio-group label:last-child { border-bottom: none; } } .custom-alert { position: fixed; top: 20px; right: 20px; background-color: #ff4d4f; color: white; padding: 15px 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); z-index: 9999; font-size: 16px; transition: opacity 0.5s ease, transform 0.3s ease; max-width: 300px; } .custom-alert.success { background-color: #28a745; } .custom-alert.warning { background-color: #ffc107; color: #212529; } .custom-alert.hidden { opacity: 0; transform: translateY(-20px); pointer-events: none; } .modal { position: fixed; inset: 0; background: rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; z-index: 3000; } .modal.hidden { display: none; } .modal-content { background: #fff; padding: 20px; border-radius: 12px; width: 90%; max-width: 420px; box-shadow: 0 10px 35px rgba(0,0,0,0.15); } .modal-content h3 { margin-top: 0; margin-bottom: 8px; } .modal-content p { margin: 0 0 12px 0; color: #4b5563; font-size: 14px; } .modal-content input { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; margin-bottom: 14px; box-sizing: border-box; } .modal-actions { display: flex; justify-content: flex-end; gap: 10px; } .groq-link { display: inline-block; margin-bottom: 8px; font-size: 13px; color: #2563eb; text-decoration: none; } .groq-link:hover { text-decoration: underline; } /* Styliser chaque ligne de colonne à drop */ #drop-columns-list div { display: flex; align-items: center; margin-bottom: 8px; } #drop-columns-list input[type="checkbox"] { margin-right: 10px; transform: scale(1.3); accent-color: #007bff; } /* Imputation select + input */ #imputation-controls > div { display: flex; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; } #imputation-controls label { font-weight: 500; color: #333; min-width: 120px; } select{ padding: 8px; border-radius: 6px; border: 1px solid #ccc; background: #fff; font-size: 14px; margin-top: 5px; } #target-column{ margin-left: 20px; }