:root { --bg-color: #0f172a; --sidebar-bg: rgba(30, 41, 59, 0.7); --glass-border: 1px solid rgba(255, 255, 255, 0.1); --primary-color: #6366f1; --primary-hover: #4f46e5; --text-main: #f8fafc; --text-muted: #94a3b8; --card-bg: rgba(30, 41, 59, 0.4); --success: #10b981; --warning: #f59e0b; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Inter', sans-serif; background-color: var(--bg-color); background-image: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%), radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.15) 0px, transparent 50%); color: var(--text-main); height: 100vh; overflow: hidden; } .app-container { display: flex; height: 100vh; } /* Sidebar */ .sidebar { width: 320px; background: var(--sidebar-bg); backdrop-filter: blur(12px); border-right: var(--glass-border); padding: 1.5rem; display: flex; flex-direction: column; gap: 2rem; } .brand { display: flex; align-items: center; gap: 0.75rem; color: var(--text-main); } .brand i { font-size: 1.5rem; color: var(--primary-color); } .brand h1 { font-size: 1.25rem; font-weight: 700; } .control-group h3 { font-size: 0.875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; } /* Upload Zone */ .upload-zone { border: 2px dashed rgba(255, 255, 255, 0.1); border-radius: 0.75rem; padding: 2rem 1rem; text-align: center; transition: all 0.2s; background: rgba(255, 255, 255, 0.02); } .upload-zone.dragover { border-color: var(--primary-color); background: rgba(99, 102, 241, 0.1); } .upload-zone i { font-size: 2rem; color: var(--text-muted); margin-bottom: 0.5rem; } .upload-zone p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; } /* Inputs */ textarea { width: 100%; height: 120px; background: rgba(0, 0, 0, 0.2); border: var(--glass-border); border-radius: 0.5rem; padding: 0.75rem; color: var(--text-main); font-family: inherit; resize: none; font-size: 0.875rem; margin-bottom: 1rem; } textarea:focus { outline: none; border-color: var(--primary-color); } /* Buttons */ .btn { width: 100%; padding: 0.75rem; border-radius: 0.5rem; border: none; cursor: pointer; font-weight: 600; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 0.5rem; } .btn.primary { background: var(--primary-color); color: white; } .btn.primary:hover { background: var(--primary-hover); transform: translateY(-1px); } .btn.secondary { background: rgba(255, 255, 255, 0.1); color: var(--text-main); font-size: 0.8rem; padding: 0.5rem; width: auto; margin: 0 auto; } .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; } /* Status */ .status-indicator { margin-top: auto; display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; padding-top: 1rem; border-top: var(--glass-border); } .dot { width: 8px; height: 8px; border-radius: 50%; background-color: var(--text-muted); } .dot.running { background-color: var(--warning); box-shadow: 0 0 8px var(--warning); animation: pulse 1s infinite; } .dot.done { background-color: var(--success); } @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } } /* Main Content */ .main-content { flex: 1; display: flex; flex-direction: column; padding: 1.5rem; gap: 1rem; overflow: hidden; min-height: 0; /* Crucial for nested flex scroll */ } /* View Section needs to fill space for analysis view */ .view-section { flex: 1; display: none; overflow: hidden; min-height: 0; } .view-section.active { display: flex; /* Changed from block to flex for analysis view layout */ flex-direction: column; } .tabs { flex-shrink: 0; /* Prevent tabs from shrinking */ display: flex; gap: 1rem; border-bottom: var(--glass-border); padding-bottom: 0.5rem; } /* ... existing tab-btn styles ... */ .tab-content { display: none; flex: 1; overflow: hidden; min-height: 0; /* Crucial for nested flex scroll */ animation: fadeIn 0.3s ease; } .tab-content.active { display: flex; flex-direction: column; } /* Logs */ .terminal-window { background: #000; border-radius: 0.75rem; padding: 1rem; flex: 1; overflow-y: auto; min-height: 0; /* Crucial for nested flex scroll */ border: var(--glass-border); font-family: 'JetBrains Mono', 'Menlo', monospace; font-size: 0.85rem; color: #4ade80; line-height: 1.5; } #logOutput { white-space: pre-wrap; } /* Report */ #reportContainer { flex: 1; overflow-y: auto; background: white; color: #1e293b; border-radius: 0.75rem; padding: 2rem; } .empty-state { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #94a3b8; gap: 1rem; } .empty-state i { font-size: 3rem; opacity: 0.5; } /* Markdown Styles Override for Report */ .markdown-body img { max-width: 100%; border-radius: 0.5rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); margin: 1rem 0; } .markdown-body h1, .markdown-body h2, .markdown-body h3 { margin-top: 1.5em; margin-bottom: 0.5em; color: #111827; } .markdown-body p { margin-bottom: 1em; line-height: 1.7; } /* New: Tools Grid */ .tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; padding: 1rem 0; overflow-y: auto; } .tool-card { background: var(--card-bg); border: var(--glass-border); border-radius: 1rem; padding: 1.5rem; transition: transform 0.2s; } .tool-card:hover { transform: translateY(-2px); border-color: var(--primary-color); } .tool-icon { font-size: 2rem; color: var(--primary-color); margin-bottom: 1rem; } .tool-card h3 { margin-bottom: 0.5rem; } .tool-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; min-height: 3em; } .tool-actions { display: flex; gap: 0.5rem; } .input-sm { background: rgba(0, 0, 0, 0.3); border: var(--glass-border); color: white; padding: 0.5rem; border-radius: 0.5rem; flex: 1; } /* Help Styles */ .help-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; } .help-body { background: white; color: #1e293b; padding: 2rem; border-radius: 0.75rem; overflow-y: auto; flex: 1; }