/* ────────────────────────────── static/styles.css ────────────────────────────── */ :root { --bg: #0a0e1a; --bg-secondary: #111827; --card: #1f2937; --card-hover: #374151; --text: #f9fafb; --text-secondary: #d1d5db; --muted: #9ca3af; --accent: #3b82f6; --accent-hover: #2563eb; --success: #10b981; --warning: #f59e0b; --error: #ef4444; --pill: #374151; --border: #374151; --border-light: #4b5563; --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25); --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%); --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%); --radius: 12px; --radius-lg: 16px; --radius-xl: 20px; --sidebar-width: 280px; } :root.light { --bg: #ffffff; --bg-secondary: #f9fafb; --card: #ffffff; --card-hover: #f3f4f6; --text: #111827; --text-secondary: #374151; --muted: #6b7280; --accent: #3b82f6; --accent-hover: #2563eb; --success: #10b981; --warning: #f59e0b; --error: #ef4444; --pill: #e5e7eb; --border: #e5e7eb; --border-light: #d1d5db; --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; transition: background-color 0.3s ease, color 0.3s ease; overflow-x: hidden; } /* App Layout */ .app-container { display: flex; min-height: 100vh; } /* Sidebar */ .sidebar { width: var(--sidebar-width); background: var(--card); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; z-index: 100; transition: transform 0.3s ease; overflow-y: auto; } /* Desktop: sidebar starts expanded, can be collapsed */ @media (min-width: 1025px) { .sidebar.collapsed { transform: translateX(-100%); } } .sidebar-header { padding: 24px; border-bottom: 1px solid var(--border); } .logo { display: flex; align-items: center; gap: 16px; } .logo-icon { font-size: 32px; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .logo-text h1 { font-size: 20px; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 0; } .logo-text p { color: var(--muted); font-size: 12px; margin: 2px 0 0 0; } .sidebar-section { padding: 20px 24px; border-bottom: 1px solid var(--border); } .sidebar-section:last-child { border-bottom: none; margin-top: auto; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } .section-header h3 { font-size: 14px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; } /* Website Menu */ .website-menu { display: flex; flex-direction: column; gap: 4px; } .menu-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: transparent; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: all 0.2s ease; text-decoration: none; color: var(--text-secondary); } .menu-item:hover { background: var(--bg-secondary); border-color: var(--border); color: var(--text); } .menu-item.active { background: var(--gradient-accent); border-color: transparent; color: white; } .menu-icon { width: 20px; height: 20px; flex-shrink: 0; } .menu-item span { font-weight: 500; font-size: 14px; } /* Project List */ .project-list { display: flex; flex-direction: column; gap: 8px; } .project-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-secondary); border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer; transition: all 0.2s ease; position: relative; } .project-item:hover { background: var(--card-hover); border-color: var(--border-light); } .project-item.active { background: var(--gradient-accent); border-color: transparent; color: white; } .project-item-icon { font-size: 16px; opacity: 0.7; } .project-item-info { flex: 1; min-width: 0; } .project-item-name { font-weight: 500; font-size: 14px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .project-item-description { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .project-item.active .project-item-description { color: rgba(255, 255, 255, 0.8); } .project-item-actions { opacity: 0; transition: opacity 0.2s ease; } .project-item:hover .project-item-actions { opacity: 1; } .project-item-delete { background: none; border: none; color: var(--error); cursor: pointer; padding: 4px; border-radius: 4px; font-size: 14px; transition: background 0.2s ease; } .project-item-delete:hover { background: rgba(239, 68, 68, 0.1); } /* User Info */ .user-info { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; } .user-avatar { font-size: 24px; } .user-details { flex: 1; min-width: 0; } .user-email { display: block; color: var(--text); font-size: 14px; font-weight: 500; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .theme-toggle-wrapper { display: flex; justify-content: center; } /* Top Bar */ .top-bar { display: flex; align-items: center; gap: 16px; padding: 16px 24px; background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; } .hamburger-menu { background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 8px; border-radius: var(--radius); transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; } .hamburger-menu:hover { background: var(--bg-secondary); color: var(--text); } .hamburger-menu svg { width: 24px; height: 24px; } .top-bar-title h2 { font-size: 20px; font-weight: 600; color: var(--text); margin: 0; } /* Main Content */ .main-content { flex: 1; margin-left: var(--sidebar-width); min-height: 100vh; background: var(--bg); transition: margin-left 0.3s ease; } .main-content.sidebar-collapsed { margin-left: 0; } .content-container { max-width: 1200px; margin: 0 auto; padding: 24px; } /* Project Header */ .project-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; padding: 24px; background: var(--card); border-radius: var(--radius-xl); border: 1px solid var(--border); } .project-info h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .project-info p { color: var(--muted); font-size: 16px; margin: 0; } /* Welcome Screen */ .welcome-screen { display: flex; align-items: center; justify-content: center; min-height: 60vh; text-align: center; } .welcome-content { max-width: 480px; } .welcome-icon { font-size: 64px; margin-bottom: 24px; } .welcome-content h2 { font-size: 32px; font-weight: 700; margin-bottom: 16px; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .welcome-content p { color: var(--muted); font-size: 18px; margin-bottom: 32px; line-height: 1.6; } /* Buttons */ .btn-primary, .btn-secondary, .btn-icon { padding: 12px 24px; border: none; border-radius: var(--radius); font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; } .btn-primary { background: var(--gradient-accent); color: white; box-shadow: var(--shadow); } .btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow-lg); } .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; } .btn-secondary { background: var(--card); color: var(--text-secondary); border: 1px solid var(--border); } .btn-secondary:hover { background: var(--card-hover); border-color: var(--border-light); } .btn-muted { opacity: 0.7; } .btn-muted.enabled, .btn-secondary.enabled { opacity: 1; border-color: var(--accent); color: var(--text); } .btn-icon { padding: 12px; background: var(--card); color: var(--text-secondary); border: 1px solid var(--border); } .btn-icon:hover { background: var(--card-hover); color: var(--text); } /* Cards */ .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; margin: 32px 0; box-shadow: var(--shadow); transition: all 0.3s ease; position: relative; overflow: hidden; } .card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-primary); opacity: 0; transition: opacity 0.3s ease; } .card:hover::before { opacity: 1; } .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-light); } .card-header { margin-bottom: 24px; text-align: center; } .card-header h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .card-header p { color: var(--muted); font-size: 16px; } /* File Drop Zone */ .file-drop-zone { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 48px 24px; text-align: center; cursor: pointer; transition: all 0.3s ease; background: var(--bg-secondary); margin-bottom: 24px; } .file-drop-zone:hover { border-color: var(--accent); background: var(--card); } .file-drop-zone.dragover { border-color: var(--accent); background: var(--card); transform: scale(1.02); } .drop-zone-content { display: flex; flex-direction: column; align-items: center; gap: 16px; } .drop-zone-icon { font-size: 48px; opacity: 0.7; } .drop-zone-content p { font-size: 18px; font-weight: 500; color: var(--text); } .file-types { font-size: 14px; color: var(--muted); padding: 8px 16px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); } /* File List */ .file-list { margin-bottom: 24px; } .file-list h4 { margin-bottom: 16px; color: var(--text-secondary); font-size: 16px; } .file-items { display: flex; flex-direction: column; gap: 8px; } .file-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-secondary); border-radius: var(--radius); border: 1px solid var(--border); } .file-item-icon { font-size: 20px; } .file-item-name { flex: 1; color: var(--text); font-size: 14px; } .file-item-size { color: var(--muted); font-size: 12px; } .file-item-remove { background: none; border: none; color: var(--error); cursor: pointer; padding: 4px; border-radius: 4px; transition: background 0.2s ease; } .file-item-remove:hover { background: rgba(239, 68, 68, 0.1); } /* Upload Progress */ .upload-progress { margin-top: 24px; padding: 24px; background: var(--bg-secondary); border-radius: var(--radius-lg); border: 1px solid var(--border); } .progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } .progress-header h4 { color: var(--text); font-size: 18px; } .progress-status { color: var(--muted); font-size: 14px; } .progress-bar { height: 8px; background: var(--card); border-radius: 4px; overflow: hidden; margin-bottom: 16px; } .progress-fill { height: 100%; background: var(--gradient-success); width: 0%; transition: width 0.3s ease; } .progress-log { max-height: 120px; overflow-y: auto; background: var(--card); padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); font-family: 'Monaco', 'Menlo', monospace; font-size: 12px; color: var(--text-secondary); } /* Chat */ #chat { display: flex; flex-direction: column; height: 500px; } #messages { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-secondary); border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 16px; scroll-behavior: smooth; } .msg { padding: 16px 20px; border-radius: var(--radius-lg); margin: 16px 0; max-width: 85%; white-space: pre-wrap; animation: messageSlideIn 0.3s ease; position: relative; } .msg.user { margin-left: auto; background: var(--gradient-accent); color: white; box-shadow: var(--shadow); } .msg.assistant { background: var(--card); border: 1px solid var(--border); color: var(--text); } .msg.thinking { background: var(--card); border: 1px solid var(--border); color: var(--muted); font-style: italic; } /* ────────────────────────────── Thinking Container Styles ────────────────────────────── */ .thinking-container { display: flex; flex-direction: column; gap: 0.75rem; } .status-text { font-style: italic; color: var(--text-secondary); font-size: 0.95rem; } .progress-container { width: 100%; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; } .progress-bar { height: 100%; background: var(--gradient-accent); border-radius: 2px; transition: width 0.3s ease; width: 0%; } /* Markdown content styling */ .msg.assistant h1, .msg.assistant h2, .msg.assistant h3, .msg.assistant h4, .msg.assistant h5, .msg.assistant h6 { margin: 16px 0 8px 0; color: var(--text); font-weight: 600; } .msg.assistant h1 { font-size: 1.5em; } .msg.assistant h2 { font-size: 1.3em; } .msg.assistant h3 { font-size: 1.1em; } .msg.assistant p { margin: 8px 0; line-height: 1.6; } .msg.assistant ul, .msg.assistant ol { margin: 8px 0; padding-left: 24px; } .msg.assistant li { margin: 4px 0; } .msg.assistant code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-family: 'Monaco', 'Menlo', monospace; font-size: 0.9em; color: var(--accent); } .msg.assistant pre { background: var(--bg); padding: 12px; border-radius: var(--radius); border: 1px solid var(--border); overflow-x: auto; margin: 12px 0; } .msg.assistant pre code { background: none; padding: 0; color: var(--text); } .msg.assistant blockquote { border-left: 4px solid var(--accent); margin: 12px 0; padding-left: 16px; color: var(--text-secondary); font-style: italic; } .msg.assistant strong { font-weight: 600; color: var(--text); } .msg.assistant em { font-style: italic; } .msg.assistant a { color: var(--accent); text-decoration: underline; } .msg.assistant a:hover { color: var(--accent-hover); } .msg.assistant table { border-collapse: collapse; width: 100%; margin: 12px 0; } .msg.assistant th, .msg.assistant td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; } .msg.assistant th { background: var(--bg); font-weight: 600; } @keyframes messageSlideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .sources { margin: 16px 0; padding: 16px; background: var(--bg-secondary); border-radius: var(--radius); border: 1px solid var(--border); } .sources strong { color: var(--text-secondary); display: block; margin-bottom: 12px; } .pill { display: inline-block; background: var(--pill); padding: 6px 12px; border-radius: 999px; margin: 4px; color: var(--text-secondary); border: 1px solid var(--border); font-size: 12px; transition: all 0.2s ease; } .pill:hover { background: var(--card-hover); border-color: var(--border-light); } /* Chat Controls */ .chat-controls { position: sticky; bottom: 0; background: linear-gradient(180deg, transparent, var(--bg) 20%); padding: 16px 0; } .chat-input-wrapper { display: flex; align-items: flex-end; gap: 0; margin-bottom: 8px; position: relative; } #question { flex: 1; padding: 12px 16px; padding-right: 48px; border-radius: var(--radius-lg); border: 2px solid var(--border); background: var(--card); color: var(--text); font-size: 16px; transition: all 0.2s ease; max-height: calc(1.4em * 7 + 16px); overflow: auto; resize: none; } .send-btn { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); background: var(--gradient-accent); color: white; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); flex-shrink: 0; } .send-btn:disabled { opacity: 0.6; cursor: not-allowed; } .send-icon { pointer-events: none; width: 16px; height: 16px; } .chat-underbar { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; } /* Action pills row */ .action-pills { display: flex; gap: 12px; } .action-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--text); cursor: pointer; transition: all 0.2s ease; } .action-pill:hover { background: var(--card-hover); border-color: var(--border-light); } .action-pill svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; } .action-pill.active { background: var(--gradient-accent); color: #fff; border-color: transparent; box-shadow: var(--shadow); } #question:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } #question:disabled { opacity: 0.6; cursor: not-allowed; } .chat-hint { text-align: center; color: var(--muted); font-size: 14px; padding: 12px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); } /* Report output */ .report-output { margin-top: 16px; padding: 16px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); max-height: 420px; overflow: auto; } /* Code blocks with copy button */ .code-block-wrapper { position: relative; margin: 16px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); } .code-block-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--bg-secondary); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); } .code-block-language { font-weight: 600; text-transform: uppercase; } .copy-code-btn { display: flex; align-items: center; gap: 4px; padding: 4px 8px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 11px; cursor: pointer; transition: all 0.2s ease; } .copy-code-btn:hover { background: var(--card-hover); border-color: var(--border-light); color: var(--text); } .copy-code-btn.copied { background: var(--success); color: white; border-color: var(--success); } .copy-code-btn svg { width: 12px; height: 12px; } .code-block-content { background: var(--code-bg, #1e1e1e); color: var(--code-text, #d4d4d4); padding: 16px; overflow-x: auto; font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; font-size: 14px; line-height: 1.5; } /* Download PDF button */ .download-pdf-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 20px; background: var(--gradient-accent); color: white; border: none; border-radius: var(--radius); font-weight: 600; cursor: pointer; transition: all 0.2s ease; box-shadow: var(--shadow); } .download-pdf-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); } .download-pdf-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; } .download-pdf-btn svg { width: 16px; height: 16px; } /* Modal */ .modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.8); z-index: 1000; backdrop-filter: blur(8px); animation: modalFadeIn 0.3s ease; } .modal.hidden { display: none; } @keyframes modalFadeIn { from { opacity: 0; backdrop-filter: blur(0px); } to { opacity: 1; backdrop-filter: blur(8px); } } .modal-content { width: 100%; max-width: 480px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); animation: modalSlideIn 0.3s ease; overflow: hidden; } @keyframes modalSlideIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } } .modal-header { text-align: center; padding: 32px 32px 24px; background: var(--bg-secondary); border-bottom: 1px solid var(--border); } .modal-logo { font-size: 48px; margin-bottom: 16px; } .modal-header h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: var(--text); } .modal-subtitle { color: var(--muted); font-size: 16px; } .tabs { display: flex; gap: 4px; margin: 24px 32px 0; padding: 4px; background: var(--bg-secondary); border-radius: var(--radius); } .tab { flex: 1; background: transparent; border: none; color: var(--muted); border-radius: var(--radius); padding: 12px 16px; cursor: pointer; font-weight: 500; transition: all 0.2s ease; } .tab.active { background: var(--gradient-accent); color: white; box-shadow: var(--shadow); } .tab:hover:not(.active) { color: var(--text); } .tab-body { padding: 24px 32px; } .tab-body.hidden { display: none; } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-weight: 500; font-size: 14px; } .form-group input, .form-group textarea { width: 100%; padding: 14px 16px; border-radius: var(--radius); border: 2px solid var(--border); background: var(--bg-secondary); color: var(--text); font-size: 16px; transition: all 0.2s ease; font-family: inherit; } .form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } .form-group textarea { resize: vertical; min-height: 80px; } .form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; } .modal-footer { padding: 24px 32px; text-align: center; border-top: 1px solid var(--border); background: var(--bg-secondary); } .modal-footer p { color: var(--muted); font-size: 12px; line-height: 1.5; } /* Loading Overlay */ .loading-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); z-index: 2000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(12px); } .loading-overlay.hidden { display: none; } .loading-content { text-align: center; color: white; } .loading-spinner { width: 60px; height: 60px; border: 4px solid rgba(255, 255, 255, 0.3); border-top: 4px solid white; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 24px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .loading-content h3 { font-size: 24px; margin-bottom: 8px; } .loading-content p { color: rgba(255, 255, 255, 0.8); font-size: 16px; } /* Spinner */ .spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.3); border-top: 2px solid white; border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; } /* Reveal animations */ .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; } .reveal.in { opacity: 1; transform: none; } /* Responsive */ @media (max-width: 1024px) { .sidebar { transform: translateX(-100%); width: 100vw; } .sidebar.open { transform: translateX(0); } .sidebar.collapsed { transform: translateX(-100%); } .main-content { margin-left: 0; } .content-container { padding: 16px; } .top-bar { padding: 16px; } } @media (max-width: 768px) { :root { --sidebar-width: 100vw; } .card { padding: 24px; } .modal-content { margin: 16px; max-width: none; } .project-header { flex-direction: column; gap: 16px; align-items: flex-start; } .form-actions { flex-direction: column; } .top-bar { padding: 12px 16px; } .top-bar-title h2 { font-size: 18px; } .hamburger-menu { padding: 6px; } .hamburger-menu svg { width: 20px; height: 20px; } .sidebar-header { padding: 20px; } .sidebar-section { padding: 16px 20px; } } /* Reduced motion */ @media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } .reveal { opacity: 1; transform: none; } } /* Files Page Cards */ .file-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; } .file-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .file-name { font-weight: 600; font-size: 16px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-summary { color: var(--text-secondary); line-height: 1.6; text-align: justify; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .file-summary.expanded { display: block; -webkit-line-clamp: unset; overflow: visible; } .file-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .file-actions-right { margin-left: auto; } .btn-danger { background: #ef4444; color: #fff; border: none; padding: 8px 12px; border-radius: var(--radius); cursor: pointer; transition: filter 0.2s ease; } .btn-danger:hover { filter: brightness(1.1); } .see-more-btn { background: transparent; color: var(--accent); border: none; cursor: pointer; font-weight: 600; }