* { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Source Sans Pro', sans-serif; background-color: #0e1117; color: #fafafa; overflow: hidden; } .app-container { display: flex; height: 100vh; width: 100vw; } /* --- SIDEBAR --- */ .sidebar { width: 336px; background-color: #262730; padding: 3rem 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; box-shadow: 2px 0 10px rgba(0,0,0,0.2); z-index: 10; } .sidebar h2 { font-size: 1.5rem; font-weight: 600; } .subtext { font-size: 0.9rem; color: #fafafa; opacity: 0.8; margin-top: -0.8rem; } .upload-box { background-color: #0e1117; border: 2px dashed rgba(250, 250, 250, 0.2); border-radius: 0.75rem; padding: 2.5rem 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.8rem; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); } .upload-box:hover { border-color: #ff4b4b; background-color: rgba(255, 75, 75, 0.05); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); } .upload-box input[type="file"] { display: none; } .upload-label { font-size: 1rem; font-weight: 600; cursor: pointer; } .upload-limit { font-size: 0.8rem; color: rgba(250, 250, 250, 0.5); } .browse-btn { background-color: #262730; border: 1px solid rgba(250, 250, 250, 0.2); color: #fafafa; padding: 0.4rem 1rem; border-radius: 0.25rem; font-size: 0.9rem; margin-top: 0.5rem; cursor: pointer; transition: background-color 0.2s, color 0.2s; } .upload-box:hover .browse-btn { background-color: #ff4b4b; color: white; border-color: #ff4b4b; } .file-selected { background-color: rgba(255, 75, 75, 0.1); border: 1px solid rgba(255, 75, 75, 0.3); padding: 0.75rem; border-radius: 0.5rem; font-size: 0.9rem; display: flex; justify-content: space-between; align-items: center; animation: slideIn 0.3s ease-out forwards; } .remove-file { cursor: pointer; opacity: 0.6; transition: opacity 0.2s, transform 0.2s; } .remove-file:hover { opacity: 1; color: #ff4b4b; transform: scale(1.2); } .process-btn { background-color: #262730; border: 1px solid rgba(250, 250, 250, 0.2); color: #fafafa; padding: 0.8rem 1rem; border-radius: 0.5rem; font-size: 1.05rem; font-weight: 600; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); } .process-btn.ready { background: linear-gradient(135deg, #ff4b4b 0%, #ff7676 100%); border: none; color: white; box-shadow: 0 4px 15px rgba(255, 75, 75, 0.3); animation: pulseGlow 2s infinite; } .process-btn.ready:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 75, 75, 0.5); animation: none; } .process-btn.ready:active { transform: translateY(1px) scale(0.98); } .process-btn:disabled { opacity: 0.4; cursor: not-allowed; background-color: #1a1c23; border-color: transparent; } .process-btn.processing { background: #3b82f6; border: none; animation: pulseBlue 1.5s infinite; } .success-banner { background-color: rgba(61, 213, 109, 0.1); color: #3dd56d; padding: 1rem; border-radius: 0.5rem; border-left: 4px solid #3dd56d; font-size: 0.9rem; animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; } /* --- KEYFRAMES --- */ @keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } @keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(255, 75, 75, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(255, 75, 75, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 75, 75, 0); } } @keyframes pulseBlue { 0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } } .main-content { flex: 1; display: flex; flex-direction: column; padding: 3rem 5rem 100px 5rem; overflow-y: auto; position: relative; scroll-behavior: smooth; } .header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 2rem; display: flex; align-items: center; gap: 10px; } .placeholder-info { background-color: #262730; padding: 1.2rem 1.5rem; border-radius: 0.5rem; border-left: 4px solid #3b82f6; font-size: 1.05rem; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .spinner { margin-top: 2rem; color: rgba(250, 250, 250, 0.8); display: flex; align-items: center; gap: 1rem; font-size: 1.1rem; } .loader { border: 3px solid rgba(255,255,255,0.1); border-top: 3px solid #3b82f6; border-radius: 50%; width: 24px; height: 24px; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .insights-container h3 { font-size: 1.5rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; } .insights-box { background-color: rgba(59, 130, 246, 0.05); border: 1px solid rgba(59, 130, 246, 0.3); padding: 1.5rem; border-radius: 0.5rem; color: #93c5fd; margin-bottom: 2rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); } .insights-box pre, .message-content pre { white-space: pre-wrap; font-family: inherit; font-size: 1.05rem; line-height: 1.6; } .chat-container { display: flex; flex-direction: column; gap: 1.2rem; } .chat-message { display: flex; gap: 1rem; padding: 1.5rem; border-radius: 0.5rem; transition: background-color 0.2s; } .chat-message.user { background-color: #262730; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .chat-message.assistant { background-color: transparent; border-left: 2px solid transparent; } .chat-message.assistant:hover { background-color: rgba(255,255,255,0.02); border-left-color: #3b82f6; } .avatar { width: 36px; height: 36px; border-radius: 6px; background-color: #ff4b4b; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,0.2); } .chat-message.assistant .avatar { background-color: #3b82f6; } .input-wrapper { position: fixed; bottom: 0; left: 336px; right: 0; padding: 1.5rem 5rem; background: linear-gradient(180deg, rgba(14, 17, 23, 0) 0%, rgba(14, 17, 23, 0.9) 30%, #0e1117 100%); } .input-container input { width: 100%; background-color: #262730; border: 1px solid rgba(250, 250, 250, 0.2); color: #fafafa; padding: 1.2rem 1.5rem; border-radius: 0.75rem; font-size: 1.05rem; outline: none; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); transition: border-color 0.3s, box-shadow 0.3s; } .input-container input:focus { border-color: #ff4b4b; box-shadow: 0 6px 20px rgba(255, 75, 75, 0.15); }