Spaces:
Sleeping
Sleeping
| /* App.css - Modern OCR/LAD/RAD Interface Styles */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| :root { | |
| /* Couleurs principales Apple */ | |
| --primary-blue: #007AFF; | |
| --primary-purple: #5856D6; | |
| --primary-green: #34C759; | |
| --primary-orange: #FF9500; | |
| --primary-red: #FF3B30; | |
| --primary-pink: #FF2D92; | |
| /* Arrière-plans */ | |
| --bg-primary: #000000; | |
| --bg-secondary: #1C1C1E; | |
| --bg-tertiary: #2C2C2E; | |
| --bg-quaternary: #3A3A3C; | |
| --bg-glass: rgba(255, 255, 255, 0.08); | |
| --bg-glass-hover: rgba(255, 255, 255, 0.12); | |
| /* Texte */ | |
| --text-primary: #FFFFFF; | |
| --text-secondary: rgba(255, 255, 255, 0.6); | |
| --text-tertiary: rgba(255, 255, 255, 0.4); | |
| /* Bordures et séparateurs */ | |
| --separator: rgba(255, 255, 255, 0.1); | |
| --border-glass: rgba(255, 255, 255, 0.15); | |
| /* Ombres */ | |
| --shadow-low: 0 1px 3px rgba(0, 0, 0, 0.3); | |
| --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.4); | |
| --shadow-high: 0 8px 24px rgba(0, 0, 0, 0.5); | |
| --shadow-glow: 0 0 20px rgba(0, 122, 255, 0.3); | |
| /* Rayons */ | |
| --radius-small: 8px; | |
| --radius-medium: 12px; | |
| --radius-large: 16px; | |
| --radius-xl: 20px; | |
| /* Espacement */ | |
| --space-xs: 4px; | |
| --space-sm: 8px; | |
| --space-md: 16px; | |
| --space-lg: 24px; | |
| --space-xl: 32px; | |
| --space-xxl: 48px; | |
| } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif; | |
| background: var(--bg-primary); | |
| color: var(--text-primary); | |
| overflow-x: hidden; | |
| line-height: 1.5; | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| } | |
| #root { | |
| min-height: 100vh; | |
| } | |
| /* Layout principal */ | |
| .app-container { | |
| display: flex; | |
| flex-direction: column; | |
| min-height: 100vh; | |
| background: var(--bg-primary); | |
| } | |
| /* En-tête */ | |
| .app-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: var(--space-md) var(--space-xl); | |
| background: rgba(28, 28, 30, 0.95); | |
| backdrop-filter: blur(20px) saturate(180%); | |
| border-bottom: 1px solid var(--separator); | |
| position: sticky; | |
| top: 0; | |
| z-index: 100; | |
| } | |
| .app-title { | |
| font-size: 22px; | |
| font-weight: 600; | |
| background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple)); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| letter-spacing: -0.5px; | |
| } | |
| .status-indicator { | |
| display: flex; | |
| align-items: center; | |
| gap: var(--space-sm); | |
| padding: var(--space-sm) var(--space-md); | |
| border-radius: var(--radius-large); | |
| font-size: 14px; | |
| font-weight: 500; | |
| transition: all 0.2s ease; | |
| } | |
| .status-connected { | |
| background: rgba(52, 199, 89, 0.15); | |
| color: var(--primary-green); | |
| border: 1px solid rgba(52, 199, 89, 0.3); | |
| } | |
| .status-disconnected { | |
| background: rgba(255, 59, 48, 0.15); | |
| color: var(--primary-red); | |
| border: 1px solid rgba(255, 59, 48, 0.3); | |
| } | |
| .status-dot { | |
| width: 6px; | |
| height: 6px; | |
| border-radius: 50%; | |
| background: currentColor; | |
| } | |
| /* Contenu principal */ | |
| .main-content { | |
| display: grid; | |
| grid-template-columns: 420px 1fr; | |
| gap: var(--space-lg); | |
| padding: var(--space-lg); | |
| flex: 1; | |
| max-width: 1600px; | |
| margin: 0 auto; | |
| width: 100%; | |
| } | |
| /* Panels */ | |
| .panel { | |
| background: var(--bg-glass); | |
| backdrop-filter: blur(20px) saturate(180%); | |
| border: 1px solid var(--border-glass); | |
| border-radius: var(--radius-xl); | |
| overflow: hidden; | |
| box-shadow: var(--shadow-medium); | |
| } | |
| .panel-header { | |
| padding: var(--space-lg); | |
| background: rgba(255, 255, 255, 0.05); | |
| border-bottom: 1px solid var(--separator); | |
| } | |
| .panel-header h2 { | |
| font-size: 18px; | |
| font-weight: 600; | |
| margin-bottom: var(--space-xs); | |
| letter-spacing: -0.3px; | |
| } | |
| .panel-header p { | |
| color: var(--text-secondary); | |
| font-size: 14px; | |
| } | |
| /* Document Panel */ | |
| .document-content { | |
| padding: var(--space-lg); | |
| } | |
| .upload-zone { | |
| border: 2px dashed var(--separator); | |
| border-radius: var(--radius-large); | |
| padding: var(--space-xxl); | |
| text-align: center; | |
| cursor: pointer; | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| background: rgba(255, 255, 255, 0.02); | |
| } | |
| .upload-zone:hover { | |
| border-color: var(--primary-blue); | |
| background: rgba(0, 122, 255, 0.05); | |
| transform: translateY(-2px); | |
| box-shadow: var(--shadow-glow); | |
| } | |
| .upload-zone.drag-active { | |
| border-color: var(--primary-blue); | |
| background: rgba(0, 122, 255, 0.1); | |
| box-shadow: var(--shadow-glow); | |
| transform: scale(1.02); | |
| } | |
| .upload-icon { | |
| font-size: 48px; | |
| margin-bottom: var(--space-md); | |
| opacity: 0.6; | |
| font-weight: 300; | |
| color: var(--text-secondary); | |
| } | |
| .upload-zone h3 { | |
| font-size: 18px; | |
| font-weight: 600; | |
| margin-bottom: var(--space-sm); | |
| letter-spacing: -0.3px; | |
| } | |
| .upload-zone p { | |
| color: var(--text-secondary); | |
| margin-bottom: var(--space-md); | |
| } | |
| .supported-formats { | |
| font-size: 12px; | |
| color: var(--text-tertiary); | |
| background: rgba(255, 255, 255, 0.05); | |
| padding: var(--space-sm) var(--space-md); | |
| border-radius: var(--radius-small); | |
| display: inline-block; | |
| } | |
| /* Document Preview */ | |
| .document-preview { | |
| display: flex; | |
| flex-direction: column; | |
| gap: var(--space-lg); | |
| } | |
| .document-info { | |
| background: rgba(255, 255, 255, 0.05); | |
| border-radius: var(--radius-large); | |
| padding: var(--space-lg); | |
| border: 1px solid var(--separator); | |
| } | |
| .document-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: flex-start; | |
| margin-bottom: var(--space-lg); | |
| } | |
| .document-header h3 { | |
| font-size: 16px; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| word-break: break-word; | |
| flex: 1; | |
| margin-right: var(--space-md); | |
| } | |
| .document-meta { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: flex-end; | |
| gap: var(--space-sm); | |
| } | |
| .file-size { | |
| font-size: 12px; | |
| color: var(--text-secondary); | |
| font-weight: 500; | |
| } | |
| /* Miniature du document */ | |
| .document-thumbnail { | |
| width: 100%; | |
| height: 200px; | |
| border-radius: var(--radius-medium); | |
| overflow: hidden; | |
| border: 1px solid var(--separator); | |
| background: var(--bg-secondary); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| margin-bottom: var(--space-lg); | |
| position: relative; | |
| } | |
| .thumbnail-image { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: contain; /* Changed from cover to contain to show full page */ | |
| background: white; /* White background for better document readability */ | |
| border-radius: var(--radius-medium); | |
| } | |
| .thumbnail-placeholder { | |
| font-size: 14px; | |
| color: var(--text-tertiary); | |
| font-weight: 500; | |
| text-transform: uppercase; | |
| letter-spacing: 1px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| text-align: center; | |
| padding: var(--space-md); | |
| } | |
| /* Boutons d'action - Horizontaux */ | |
| .action-buttons { | |
| display: flex; | |
| gap: var(--space-sm); | |
| } | |
| .btn { | |
| flex: 1; | |
| border: none; | |
| padding: var(--space-md) var(--space-lg); | |
| border-radius: var(--radius-medium); | |
| cursor: pointer; | |
| font-weight: 600; | |
| font-size: 14px; | |
| transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: var(--space-sm); | |
| position: relative; | |
| overflow: hidden; | |
| letter-spacing: -0.2px; | |
| } | |
| .btn:hover { | |
| transform: translateY(-1px); | |
| } | |
| .btn:active { | |
| transform: translateY(0); | |
| } | |
| .btn:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| transform: none; | |
| } | |
| .btn-primary { | |
| background: var(--primary-blue); | |
| color: white; | |
| box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3); | |
| } | |
| .btn-primary:hover:not(:disabled) { | |
| background: #0056CC; | |
| box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4); | |
| } | |
| .btn-secondary { | |
| background: var(--bg-quaternary); | |
| color: var(--text-primary); | |
| border: 1px solid var(--separator); | |
| } | |
| .btn-secondary:hover:not(:disabled) { | |
| background: rgba(255, 255, 255, 0.1); | |
| } | |
| .btn-danger { | |
| background: var(--primary-red); | |
| color: white; | |
| box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3); | |
| } | |
| .btn-danger:hover:not(:disabled) { | |
| background: #D70015; | |
| box-shadow: 0 6px 16px rgba(255, 59, 48, 0.4); | |
| } | |
| /* Results Panel */ | |
| .results-content { | |
| padding: var(--space-lg); | |
| display: flex; | |
| flex-direction: column; | |
| gap: var(--space-lg); | |
| height: calc(100vh - 200px); | |
| } | |
| /* Scores redessinés */ | |
| .analysis-metrics { | |
| display: grid; | |
| grid-template-columns: repeat(3, 1fr); | |
| gap: var(--space-md); | |
| margin-bottom: var(--space-lg); | |
| } | |
| .metric-card { | |
| background: rgba(255, 255, 255, 0.05); | |
| backdrop-filter: blur(10px); | |
| border: 1px solid var(--separator); | |
| border-radius: var(--radius-medium); | |
| padding: var(--space-lg); | |
| text-align: center; | |
| transition: all 0.3s ease; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .metric-card::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| height: 2px; | |
| background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple)); | |
| opacity: 0; | |
| transition: opacity 0.3s ease; | |
| } | |
| .metric-card:hover { | |
| transform: translateY(-2px); | |
| box-shadow: var(--shadow-medium); | |
| background: rgba(255, 255, 255, 0.08); | |
| } | |
| .metric-card:hover::before { | |
| opacity: 1; | |
| } | |
| .metric-label { | |
| font-size: 12px; | |
| color: var(--text-secondary); | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| font-weight: 600; | |
| margin-bottom: var(--space-sm); | |
| } | |
| .metric-value { | |
| font-size: 24px; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| line-height: 1; | |
| } | |
| .metric-value.excellent { color: var(--primary-green); } | |
| .metric-value.good { color: var(--primary-blue); } | |
| .metric-value.average { color: var(--primary-orange); } | |
| .metric-value.poor { color: var(--primary-red); } | |
| .metric-bar { | |
| width: 100%; | |
| height: 4px; | |
| background: rgba(255, 255, 255, 0.1); | |
| border-radius: 2px; | |
| margin-top: var(--space-sm); | |
| overflow: hidden; | |
| } | |
| .metric-bar-fill { | |
| height: 100%; | |
| border-radius: 2px; | |
| transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| /* Zone de contenu extrait */ | |
| .extracted-content { | |
| flex: 1; | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--separator); | |
| border-radius: var(--radius-medium); | |
| overflow: hidden; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .content-header { | |
| padding: var(--space-md) var(--space-lg); | |
| background: rgba(255, 255, 255, 0.05); | |
| border-bottom: 1px solid var(--separator); | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .content-header h3 { | |
| font-size: 16px; | |
| font-weight: 600; | |
| } | |
| .copy-button { | |
| padding: var(--space-xs) var(--space-sm); | |
| background: var(--bg-quaternary); | |
| border: 1px solid var(--separator); | |
| border-radius: var(--radius-small); | |
| color: var(--text-secondary); | |
| font-size: 12px; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .copy-button:hover { | |
| background: var(--bg-glass-hover); | |
| color: var(--text-primary); | |
| } | |
| .extracted-text { | |
| flex: 1; | |
| padding: var(--space-lg); | |
| font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace; | |
| font-size: 13px; | |
| line-height: 1.6; | |
| color: var(--text-primary); | |
| overflow-y: auto; | |
| white-space: pre-wrap; | |
| word-wrap: break-word; | |
| } | |
| .extracted-text:empty::before { | |
| content: "No extracted data available.\nUpload a document and run analysis to see results here."; | |
| color: var(--text-tertiary); | |
| font-style: italic; | |
| } | |
| /* Terminal Section - Professional System Terminal */ | |
| .terminal-section { | |
| height: 280px; | |
| background: #000000; | |
| border-top: 1px solid #333333; | |
| font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace; | |
| } | |
| .terminal-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: var(--space-sm) var(--space-md); | |
| background: #1a1a1a; | |
| border-bottom: 1px solid #333333; | |
| min-height: 32px; | |
| } | |
| .terminal-title { | |
| display: flex; | |
| align-items: center; | |
| gap: var(--space-sm); | |
| font-size: 12px; | |
| font-weight: 500; | |
| color: #ffffff; | |
| font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif; | |
| } | |
| .terminal-controls { | |
| display: flex; | |
| gap: var(--space-sm); | |
| } | |
| .terminal-btn { | |
| width: 12px; | |
| height: 12px; | |
| border-radius: 50%; | |
| border: none; | |
| cursor: pointer; | |
| transition: transform 0.1s ease; | |
| } | |
| .terminal-btn:hover { | |
| transform: scale(1.1); | |
| } | |
| .terminal-btn.close { background: #FF5F57; } | |
| .terminal-btn.minimize { background: #FFBD2E; } | |
| .terminal-btn.maximize { background: #28CA42; } | |
| .terminal-content { | |
| height: calc(100% - 33px); | |
| overflow-y: auto; | |
| padding: var(--space-sm); | |
| background: #000000; | |
| color: #ffffff; | |
| } | |
| .terminal-line { | |
| margin-bottom: 1px; | |
| display: flex; | |
| align-items: flex-start; | |
| gap: var(--space-sm); | |
| padding: 1px 0; | |
| font-size: 11px; | |
| line-height: 1.3; | |
| font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace; | |
| } | |
| .terminal-timestamp { | |
| color: #666666; | |
| font-size: 10px; | |
| min-width: 50px; | |
| flex-shrink: 0; | |
| font-weight: 400; | |
| } | |
| .terminal-prefix { | |
| color: #00d4aa; | |
| font-weight: 500; | |
| min-width: 80px; | |
| flex-shrink: 0; | |
| font-size: 10px; | |
| } | |
| .terminal-message { | |
| flex: 1; | |
| word-wrap: break-word; | |
| color: #ffffff; | |
| } | |
| /* Terminal log colors - more realistic system colors */ | |
| .log-success { color: #00ff00; } | |
| .log-error { color: #ff4444; } | |
| .log-warning { color: #ffaa00; } | |
| .log-info { color: #4488ff; } | |
| .log-tool { color: #cc88ff; } | |
| .log-debug { color: #888888; } | |
| /* Status badges */ | |
| .status { | |
| padding: 4px 8px; | |
| border-radius: var(--radius-small); | |
| font-size: 11px; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .status-uploaded { | |
| background: rgba(0, 122, 255, 0.15); | |
| color: var(--primary-blue); | |
| border: 1px solid rgba(0, 122, 255, 0.3); | |
| } | |
| .status-processing { | |
| background: rgba(255, 149, 0, 0.15); | |
| color: var(--primary-orange); | |
| border: 1px solid rgba(255, 149, 0, 0.3); | |
| } | |
| .status-completed { | |
| background: rgba(52, 199, 89, 0.15); | |
| color: var(--primary-green); | |
| border: 1px solid rgba(52, 199, 89, 0.3); | |
| } | |
| .status-error { | |
| background: rgba(255, 59, 48, 0.15); | |
| color: var(--primary-red); | |
| border: 1px solid rgba(255, 59, 48, 0.3); | |
| } | |
| /* Spinner */ | |
| .spinner { | |
| width: 16px; | |
| height: 16px; | |
| border: 2px solid rgba(255, 255, 255, 0.3); | |
| border-top: 2px solid currentColor; | |
| border-radius: 50%; | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| to { transform: rotate(360deg); } | |
| } | |
| /* Responsive */ | |
| @media (max-width: 1200px) { | |
| .main-content { | |
| grid-template-columns: 1fr; | |
| gap: var(--space-md); | |
| } | |
| .analysis-metrics { | |
| grid-template-columns: repeat(3, 1fr); | |
| } | |
| } | |
| @media (max-width: 768px) { | |
| .app-header { | |
| padding: var(--space-md); | |
| } | |
| .main-content { | |
| padding: var(--space-md); | |
| } | |
| .analysis-metrics { | |
| grid-template-columns: 1fr; | |
| } | |
| .action-buttons { | |
| flex-direction: column; | |
| } | |
| .terminal-section { | |
| height: 240px; | |
| } | |
| .app-title { | |
| font-size: 18px; | |
| } | |
| } | |
| /* Scroll bars personnalisées */ | |
| ::-webkit-scrollbar { | |
| width: 8px; | |
| height: 8px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: transparent; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: rgba(255, 255, 255, 0.2); | |
| border-radius: 4px; | |
| } | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: rgba(255, 255, 255, 0.3); | |
| } | |
| /* Terminal specific scrollbar */ | |
| .terminal-content::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| .terminal-content::-webkit-scrollbar-track { | |
| background: #111111; | |
| } | |
| .terminal-content::-webkit-scrollbar-thumb { | |
| background: #333333; | |
| border-radius: 3px; | |
| } | |
| .terminal-content::-webkit-scrollbar-thumb:hover { | |
| background: #555555; | |
| } | |
| /* Animations subtiles */ | |
| @keyframes fadeIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(10px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .fade-in { | |
| animation: fadeIn 0.3s ease-out; | |
| } | |
| /* Real Terminal Log Styles */ | |
| .terminal-body { | |
| padding: 10px; | |
| height: 100%; | |
| overflow-y: auto; | |
| font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Courier New', monospace; | |
| font-size: 11px; | |
| } | |
| .log-message, .log-system, .log-error, .log-success, .log-warning, .log-info { | |
| white-space: pre-wrap; | |
| word-wrap: break-word; | |
| padding: 2px 0; | |
| } | |
| .log-system { | |
| color: #00d4aa; /* Green for system messages */ | |
| } | |
| .log-error { | |
| color: #ff4444; /* Red for errors */ | |
| } | |
| .log-success { | |
| color: #00c851; /* Bright green for success */ | |
| } | |
| .log-warning { | |
| color: #ffbb33; /* Orange for warnings */ | |
| } | |
| .log-info { | |
| color: #33b5e5; /* Blue for info */ | |
| } | |
| .log-message { | |
| color: #eee; /* Default log color */ | |
| } | |
| /* Connection Status */ | |
| .connection-status { | |
| display: flex; | |
| align-items: center; | |
| padding: 6px 12px; | |
| border-radius: 15px; | |
| font-size: 12px; | |
| font-weight: 500; | |
| transition: all 0.3s ease; | |
| background-color: rgba(255, 59, 48, 0.2); | |
| color: #ff453a; | |
| } | |
| .connection-status.connected { | |
| background-color: rgba(52, 199, 89, 0.2); | |
| color: #34c759; | |
| } | |
| .status-light { | |
| width: 8px; | |
| height: 8px; | |
| border-radius: 50%; | |
| margin-right: 8px; | |
| background-color: #ff453a; | |
| transition: background-color 0.3s ease; | |
| } | |
| .connection-status.connected .status-light { | |
| background-color: #34c759; | |
| } |