/* Reset and Base Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } :root { /* Design System Colors */ --bg-primary: #f9fafb; --bg-secondary: #ffffff; --bg-tertiary: #f3f4f6; --text-primary: #1f2937; --text-secondary: #6b7280; --text-muted: #9ca3af; --primary: #0891b2; --primary-hover: #0e7490; --accent: #f59e0b; --accent-hover: #d97706; --success: #10b981; --danger: #ef4444; --warning: #f59e0b; --border: #e5e7eb; --border-light: #f3f4f6; --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); --radius: 8px; --radius-sm: 4px; --radius-lg: 12px; --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); --muted-foreground: #9ca3af; --foreground: #1f2937; --card: #ffffff; } [data-theme="dark"] { --bg-primary: #0f172a; --bg-secondary: #1e293b; --bg-tertiary: #334155; --text-primary: #f1f5f9; --text-secondary: #cbd5e1; --text-muted: #94a3b8; --primary: #0ea5e9; --primary-hover: #0284c7; --accent: #fbbf24; --accent-hover: #f59e0b; --border: #334155; --border-light: #475569; --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3); --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.3); --radius: 8px; --radius-sm: 4px; --radius-lg: 12px; --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); --muted-foreground: #94a3b8; --foreground: #f1f5f9; --card: #1e293b; } body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; } /* Header */ .header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: var(--transition); } [data-theme="dark"] .header { background: rgba(15, 23, 42, 0.8); } .header-content { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; max-width: 100%; } .logo { display: flex; align-items: center; gap: 0.75rem; font-family: "Work Sans", sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--primary); } .logo i { font-size: 1.75rem; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .header-actions { display: flex; align-items: center; gap: 0.5rem; } .theme-toggle { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem; cursor: pointer; transition: var(--transition); color: var(--text-secondary); } .theme-toggle:hover { background: var(--bg-tertiary); color: var(--text-primary); transform: translateY(-1px); } .session-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius); color: var(--text-primary); font-size: 0.875rem; cursor: pointer; transition: var(--transition); } .session-btn:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-1px); } .session-btn svg { width: 16px; height: 16px; } [data-theme="dark"] .session-btn { background: rgba(30, 41, 59, 0.3); border: 1px solid rgba(148, 163, 184, 0.2); } [data-theme="dark"] .session-btn:hover { background: rgba(30, 41, 59, 0.5); } /* Main Layout */ .main-container { display: grid; grid-template-columns: 400px 1fr; height: calc(100vh - 73px); gap: 0; transition: grid-template-columns 0.3s ease; } .main-container.centered { grid-template-columns: 1fr; justify-items: center; } .main-container.centered .main-content { display: none; } .main-container.centered .sidebar { max-width: 500px; width: 100%; border-right: none; border-radius: var(--radius-lg); margin: 2rem; } /* Sidebar */ .sidebar { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border-right: 1px solid rgba(255, 255, 255, 0.1); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; } [data-theme="dark"] .sidebar { background: rgba(30, 41, 59, 0.1); border-right: 1px solid rgba(148, 163, 184, 0.1); } .sidebar::-webkit-scrollbar { width: 6px; } .sidebar::-webkit-scrollbar-track { background: transparent; } .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } .sidebar-content { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; } /* Panels */ .panel { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-sm); animation: fadeIn 0.3s ease-out; transform: translateY(0); } [data-theme="dark"] .panel { background: var(--bg-tertiary); } .panel:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); } .panel-header { background: var(--bg-tertiary); padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); } .panel-header h3 { font-family: "Work Sans", sans-serif; font-weight: 600; font-size: 1rem; color: var(--text-primary); display: flex; align-items: center; gap: 0.5rem; } .panel-header i { color: var(--primary); font-size: 0.875rem; } .panel-content { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; } /* Form Elements */ .text-input, .textarea-input, .select-input { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-primary); color: var(--text-primary); font-size: 0.875rem; transition: var(--transition); font-family: inherit; } .text-input:focus, .textarea-input:focus, .select-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1); } .textarea-input { resize: vertical; min-height: 100px; line-height: 1.5; } .select-input { cursor: pointer; } /* Buttons */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1rem; border: none; border-radius: var(--radius); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: var(--transition); text-decoration: none; font-family: inherit; white-space: nowrap; } .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; } .btn-primary { background: var(--primary); color: white; } .btn-primary:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); } .btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); } .btn-secondary:hover:not(:disabled) { background: var(--border); transform: translateY(-1px); } .btn-accent { background: var(--accent); color: white; } .btn-accent:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); } .btn-destructive { background: var(--danger); color: white; } .btn-destructive:hover:not(:disabled) { background: #dc2626; transform: translateY(-1px); } .btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border); } .btn-outline:hover:not(:disabled) { background: var(--bg-tertiary); transform: translateY(-1px); } .btn-ghost { background: transparent; color: var(--text-secondary); border: none; } .btn-ghost:hover:not(:disabled) { background: var(--bg-tertiary); color: var(--text-primary); } .btn-large { padding: 1rem 1.5rem; font-size: 1rem; font-weight: 600; } /* Button Layouts */ .button-row { display: flex; gap: 0.75rem; } .button-row .btn { flex: 1; } .button-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; } .button-grid .btn:first-child { grid-column: 1 / -1; } .input-group { display: flex; gap: 0.75rem; } .input-group .text-input { flex: 1; } /* Console */ .console-container { margin-top: 0.5rem; } .console-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; font-weight: 500; } .console-output { width: 100%; height: 120px; padding: 0.75rem; background: #1a1a1a; color: #00ff00; border: 1px solid var(--border); border-radius: var(--radius); font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace; font-size: 0.75rem; line-height: 1.4; resize: vertical; } /* Version History */ .version-history { margin-bottom: 1rem; } .version-history-compact { margin-bottom: 1rem; padding: 0.75rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.5rem; backdrop-filter: blur(10px); } .version-history-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); } .version-history-header svg { color: var(--primary); } .select-input-compact { width: 100%; padding: 0.5rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.375rem; color: var(--foreground); font-size: 0.875rem; transition: all 0.2s ease; } .select-input-compact:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(var(--primary), 0.2); } /* Info Panels */ .info-panels { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; } .info-panel { border-radius: var(--radius); overflow: hidden; transition: all 0.3s ease; } .info-panel.minimized { opacity: 0.7; } .info-panel.minimized:not([open]) { transform: scale(0.98); } .info-panel-dull { opacity: 0.8; } .info-header { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: var(--bg-secondary); border: 1px solid var(--border); cursor: pointer; font-weight: 500; color: var(--text-primary); transition: all 0.2s ease; } .info-header:hover { background: var(--bg-tertiary); border-color: var(--primary); } .info-header i:last-child { margin-left: auto; transition: transform 0.2s ease; } .info-panel[open] .info-header i:last-child { transform: rotate(180deg); } .info-content { padding: 1rem; background: var(--bg-primary); border: 1px solid var(--border); border-top: none; font-size: 0.875rem; line-height: 1.6; padding-left: 2rem; } /* Auto-scroll styles for info panels */ .auto-scroll { max-height: 200px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; } .auto-scroll::-webkit-scrollbar { width: 4px; } .auto-scroll::-webkit-scrollbar-track { background: transparent; } .auto-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; } /* Main Content */ .main-content { display: flex; flex-direction: column; background: var(--bg-primary); overflow: hidden; } .content-header { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; } [data-theme="dark"] .content-header { background: rgba(30, 41, 59, 0.3); border-bottom: 1px solid rgba(148, 163, 184, 0.1); } .view-tabs { display: flex; background: var(--bg-primary); border-radius: var(--radius); padding: 0.25rem; gap: 0.25rem; } .tab-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: transparent; border: none; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: var(--transition); font-family: inherit; } .tab-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); } .tab-btn.active { background: var(--primary); color: white; box-shadow: var(--shadow-sm); } .content-actions { display: flex; align-items: center; gap: 0.5rem; } .action-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius); color: var(--text-secondary); cursor: pointer; transition: var(--transition); } .action-btn:hover { background: rgba(255, 255, 255, 0.2); color: var(--text-primary); transform: translateY(-1px); } .action-btn svg { width: 18px; height: 18px; } [data-theme="dark"] .action-btn { background: rgba(30, 41, 59, 0.3); border: 1px solid rgba(148, 163, 184, 0.2); } [data-theme="dark"] .action-btn:hover { background: rgba(30, 41, 59, 0.5); } .content-body { flex: 1; position: relative; overflow: hidden; } /* Code Editor */ .code-container { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; } .code-editor-wrapper { flex: 1; position: relative; background: #1e1e1e; border-radius: var(--radius); margin: 1rem; overflow: hidden; box-shadow: var(--shadow-lg); min-height: 0; height: 100%; min-height: 500px; max-height: calc(100vh - 200px); } .monaco-editor-container { width: 100%; height: 100%; min-height: 500px; max-height: calc(100vh - 200px); overflow: hidden; } /* Preview */ .preview-container { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; } .preview-wrapper { flex: 1; position: relative; background: white; border-radius: var(--radius); margin: 1rem; overflow: hidden; box-shadow: var(--shadow-lg); min-height: 0; height: 100%; min-height: 500px; max-height: calc(100vh - 200px); } .preview-iframe { width: 100%; height: 100%; border: none; background: white; overflow: auto; min-height: 500px; max-height: calc(100vh - 200px); display: block; scrollbar-width: thin; scrollbar-color: #888 #f1f1f1; } .preview-iframe::-webkit-scrollbar { width: 8px; } .preview-iframe::-webkit-scrollbar-track { background: #f1f1f1; } .preview-iframe::-webkit-scrollbar-thumb { background: #888; border-radius: 4px; } .preview-iframe::-webkit-scrollbar-thumb:hover { background: #555; } .preview-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); z-index: 1; pointer-events: none; } .preview-iframe:not([src=""]) + .preview-placeholder, .preview-iframe[srcdoc]:not([srcdoc=""]) + .preview-placeholder { display: none; } .placeholder-content { text-align: center; color: var(--text-muted); } .placeholder-content i { font-size: 3rem; color: var(--primary); margin-bottom: 1rem; opacity: 0.5; } .placeholder-content h3 { font-size: 1.25rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; } .placeholder-content p { font-size: 0.875rem; max-width: 300px; } /* Utility Classes */ .hidden { display: none !important; } /* Responsive Design */ @media (max-width: 1024px) { .main-container { grid-template-columns: 350px 1fr; } .header-content { padding: 1rem; } .content-header { padding: 1rem; } } @media (max-width: 768px) { /* Show hamburger menu on mobile */ .hamburger-btn { display: flex; } .main-container { grid-template-columns: 1fr; } /* Mobile sidebar as overlay */ .sidebar { position: fixed; top: 0; left: -100%; width: 320px; height: 100vh; z-index: 200; transition: left 0.3s ease; border-right: 1px solid var(--border); border-bottom: none; max-height: none; } .sidebar.open { left: 0; } .sidebar-overlay.show { display: block; } .content-header { flex-direction: column; gap: 1rem; align-items: stretch; } .view-tabs { justify-content: center; } .content-actions { justify-content: center; } /* Hide text labels on mobile for session buttons */ .session-btn span { display: none; } .session-btn { padding: 0.5rem; min-width: 40px; } .followup-float { bottom: 1rem; right: 1rem; } .followup-btn { width: 48px; height: 48px; font-size: 1.1rem; } } @media (max-width: 480px) { .header-content { padding: 0.75rem 1rem; } .logo span { display: none; } .sidebar { width: 280px; } .action-btn { width: 36px; height: 36px; } .action-btn svg { width: 16px; height: 16px; } } /* Animations */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } } @keyframes slideInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } @keyframes bounceIn { 0% { opacity: 0; transform: scale(0.3); } 50% { opacity: 1; transform: scale(1.05); } 70% { transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } } @keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } } /* Focus Styles */ .btn:focus-visible, .text-input:focus, .textarea-input:focus, .select-input:focus { outline: 2px solid var(--primary); outline-offset: 2px; } /* High Contrast Mode */ @media (prefers-contrast: high) { :root { --border: #000000; --text-secondary: #000000; } [data-theme="dark"] { --border: #ffffff; --text-secondary: #ffffff; } } /* Reduced Motion */ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } } /* Particle Background Styles */ .particle-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; } #particle-canvas { width: 100%; height: 100%; } /* Glassmorphism Effect */ .glass-effect { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); } [data-theme="dark"] .glass-effect { background: rgba(30, 41, 59, 0.3); border: 1px solid rgba(148, 163, 184, 0.2); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); } /* Session Popup Styles */ .session-popup, .followup-popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.3s ease-out; } .popup-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); } .popup-content { position: relative; background: var(--bg-secondary); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); max-width: 500px; width: 90%; max-height: 80vh; overflow: hidden; animation: slideInUp 0.3s ease-out; } .popup-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; background: var(--bg-tertiary); border-bottom: 1px solid var(--border); } .popup-header h3 { font-family: "Work Sans", sans-serif; font-weight: 600; font-size: 1.125rem; color: var(--text-primary); display: flex; align-items: center; gap: 0.75rem; } .popup-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0.5rem; border-radius: var(--radius); transition: var(--transition); } .popup-close:hover { background: var(--bg-primary); color: var(--text-primary); } .popup-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; max-height: 60vh; overflow-y: auto; } /* Floating Follow-up Button */ .followup-float { position: fixed; bottom: 2rem; right: 2rem; z-index: 100; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease; } .followup-float.show { opacity: 1; visibility: visible; transform: translateY(0); } .followup-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; box-shadow: var(--shadow-lg); transition: all 0.2s ease; } .followup-btn:hover { transform: scale(1.1); box-shadow: var(--shadow-xl); } .followup-tooltip { position: absolute; bottom: 100%; right: 0; margin-bottom: 0.5rem; padding: 0.5rem 0.75rem; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.875rem; white-space: nowrap; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.2s ease; } .followup-float:hover .followup-tooltip { opacity: 1; visibility: visible; transform: translateY(0); } /* Sidebar Overlay for Mobile */ .sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 150; } /* Hamburger Menu Styles */ .hamburger-btn { display: none; flex-direction: column; justify-content: space-around; width: 24px; height: 24px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 10; } .hamburger-btn span { display: block; height: 2px; width: 100%; background: var(--text-primary); border-radius: 1px; transition: var(--transition); } .hamburger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); } .hamburger-btn.active span:nth-child(2) { opacity: 0; } .hamburger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); } /* Added version history styling for content header */ .version-history-header-compact { display: flex; align-items: center; gap: 0.5rem; margin-right: 1rem; } .version-history-header-compact svg { color: var(--primary); } .select-input-header { padding: 0.375rem 0.5rem; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius); color: var(--foreground); font-size: 0.875rem; min-width: 120px; transition: all 0.2s ease; } .select-input-header:hover { background: rgba(255, 255, 255, 0.15); } [data-theme="dark"] .select-input-header { background: rgba(30, 41, 59, 0.3); border: 1px solid rgba(148, 163, 184, 0.2); } [data-theme="dark"] .select-input-header:hover { background: rgba(30, 41, 59, 0.5); } /* File Upload Styles */ .file-upload-container { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.75rem; } .file-upload-input { display: none; } .file-upload-label { width: 100%; text-align: center; } .file-upload-label-small { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-secondary); font-size: 0.875rem; cursor: pointer; transition: all 0.2s ease; text-decoration: none; } .file-upload-label-small:hover { background: var(--bg-tertiary); border-color: var(--primary); color: var(--primary); } .file-upload-label-small svg { width: 16px; height: 16px; } .file-list { display: flex; flex-direction: column; gap: 0.5rem; max-height: 150px; overflow-y: auto; padding-right: 5px; /* for scrollbar */ } .file-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; background: var(--bg-tertiary); border-radius: var(--radius-sm); font-size: 0.8rem; color: var(--text-secondary); animation: fadeIn 0.2s ease-out; } .file-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 0.5rem; } .file-remove-btn { background: none; border: none; color: var(--text-muted); font-size: 1rem; cursor: pointer; padding: 0 0.25rem; line-height: 1; } .file-remove-btn:hover { color: var(--danger); }