Spaces:
Sleeping
Sleeping
| /* ────────────────────────────── 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; | |
| } | |
| /* Enhanced IDE-like Code blocks */ | |
| .code-block-wrapper { | |
| position: relative; | |
| margin: 20px 0; | |
| border-radius: 12px; | |
| overflow: hidden; | |
| border: 1px solid var(--border); | |
| box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); | |
| background: var(--card); | |
| transition: all 0.3s ease; | |
| } | |
| .code-block-wrapper:hover { | |
| box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); | |
| transform: translateY(-2px); | |
| } | |
| .code-block-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 16px 20px; | |
| background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%); | |
| border-bottom: 1px solid #404040; | |
| font-size: 12px; | |
| color: #a0a0a0; | |
| font-weight: 500; | |
| position: relative; | |
| } | |
| .code-block-header::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| height: 1px; | |
| background: linear-gradient(90deg, transparent, var(--accent), transparent); | |
| } | |
| .code-block-language { | |
| font-weight: 700; | |
| text-transform: uppercase; | |
| letter-spacing: 0.8px; | |
| color: var(--accent); | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| font-size: 11px; | |
| } | |
| .code-block-language::before { | |
| content: ''; | |
| width: 10px; | |
| height: 10px; | |
| border-radius: 50%; | |
| background: var(--accent); | |
| display: inline-block; | |
| box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.3); | |
| } | |
| .code-block-actions { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .copy-code-btn, .expand-code-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| padding: 8px 14px; | |
| background: rgba(255, 255, 255, 0.05); | |
| border: 1px solid rgba(255, 255, 255, 0.1); | |
| border-radius: 8px; | |
| color: #a0a0a0; | |
| font-size: 11px; | |
| font-weight: 500; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .copy-code-btn::before, .expand-code-btn::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: -100%; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); | |
| transition: left 0.5s ease; | |
| } | |
| .copy-code-btn:hover, .expand-code-btn:hover { | |
| background: rgba(255, 255, 255, 0.1); | |
| border-color: var(--accent); | |
| color: #ffffff; | |
| transform: translateY(-1px); | |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); | |
| } | |
| .copy-code-btn:hover::before, .expand-code-btn:hover::before { | |
| left: 100%; | |
| } | |
| .copy-code-btn.copied { | |
| background: var(--success); | |
| color: white; | |
| border-color: var(--success); | |
| transform: scale(1.05); | |
| } | |
| .copy-code-btn svg, .expand-code-btn svg { | |
| width: 14px; | |
| height: 14px; | |
| transition: transform 0.2s ease; | |
| } | |
| .copy-code-btn:hover svg, .expand-code-btn:hover svg { | |
| transform: scale(1.1); | |
| } | |
| .code-block-content { | |
| background: linear-gradient(135deg, #0d1117 0%, #161b22 100%); | |
| color: #e6edf3; | |
| padding: 24px; | |
| overflow-x: auto; | |
| font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; | |
| font-size: 14px; | |
| line-height: 1.7; | |
| position: relative; | |
| border-left: 4px solid var(--accent); | |
| } | |
| .code-block-content::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| height: 1px; | |
| background: linear-gradient(90deg, transparent, var(--accent), transparent); | |
| } | |
| .code-block-content::after { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| width: 1px; | |
| height: 100%; | |
| background: linear-gradient(180deg, transparent, var(--accent), transparent); | |
| } | |
| /* Line numbers for code blocks */ | |
| .code-block-content.with-line-numbers { | |
| counter-reset: line-number; | |
| } | |
| .code-block-content.with-line-numbers pre { | |
| counter-increment: line-number; | |
| } | |
| .code-block-content.with-line-numbers pre::before { | |
| content: counter(line-number); | |
| position: absolute; | |
| left: -40px; | |
| width: 30px; | |
| text-align: right; | |
| color: #6e7681; | |
| font-size: 12px; | |
| user-select: none; | |
| } | |
| /* Enhanced syntax highlighting for code blocks */ | |
| .code-block-content .hljs { | |
| background: transparent ; | |
| color: inherit ; | |
| } | |
| .code-block-content .hljs-keyword { | |
| color: #ff7b72; | |
| font-weight: 600; | |
| } | |
| .code-block-content .hljs-string { | |
| color: #a5d6ff; | |
| } | |
| .code-block-content .hljs-comment { | |
| color: #8b949e; | |
| font-style: italic; | |
| } | |
| .code-block-content .hljs-number { | |
| color: #79c0ff; | |
| } | |
| .code-block-content .hljs-function { | |
| color: #d2a8ff; | |
| font-weight: 500; | |
| } | |
| .code-block-content .hljs-variable { | |
| color: #ffa657; | |
| } | |
| .code-block-content .hljs-built_in { | |
| color: #ffa657; | |
| font-weight: 500; | |
| } | |
| .code-block-content .hljs-type { | |
| color: #d2a8ff; | |
| font-weight: 500; | |
| } | |
| .code-block-content .hljs-class { | |
| color: #d2a8ff; | |
| font-weight: 500; | |
| } | |
| .code-block-content .hljs-title { | |
| color: #d2a8ff; | |
| font-weight: 500; | |
| } | |
| .code-block-content .hljs-params { | |
| color: #e6edf3; | |
| } | |
| .code-block-content .hljs-attr { | |
| color: #79c0ff; | |
| } | |
| .code-block-content .hljs-tag { | |
| color: #7ee787; | |
| } | |
| .code-block-content .hljs-name { | |
| color: #7ee787; | |
| } | |
| .code-block-content .hljs-attribute { | |
| color: #79c0ff; | |
| } | |
| .code-block-content .hljs-value { | |
| color: #a5d6ff; | |
| } | |
| /* Code folding */ | |
| .code-block-content.collapsed { | |
| max-height: 200px; | |
| overflow: hidden; | |
| position: relative; | |
| } | |
| .code-block-content.collapsed::after { | |
| content: ''; | |
| position: absolute; | |
| bottom: 0; | |
| left: 0; | |
| right: 0; | |
| height: 40px; | |
| background: linear-gradient(transparent, #0d1117); | |
| pointer-events: none; | |
| } | |
| /* Scrollbar styling for code blocks */ | |
| .code-block-content::-webkit-scrollbar { | |
| height: 8px; | |
| } | |
| .code-block-content::-webkit-scrollbar-track { | |
| background: #2d2d2d; | |
| border-radius: 4px; | |
| } | |
| .code-block-content::-webkit-scrollbar-thumb { | |
| background: var(--accent); | |
| border-radius: 4px; | |
| } | |
| .code-block-content::-webkit-scrollbar-thumb:hover { | |
| background: var(--accent-hover); | |
| } | |
| /* 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: 60vw ; | |
| max-width: 400px ; | |
| } | |
| .sidebar.open { | |
| transform: translateX(0); | |
| } | |
| .sidebar.collapsed { | |
| transform: translateX(-100%); | |
| } | |
| .main-content { | |
| margin-left: 0; | |
| } | |
| .content-container { | |
| padding: 16px; | |
| } | |
| .top-bar { | |
| padding: 16px; | |
| } | |
| /* Overlay for mobile sidebar */ | |
| .sidebar-overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100vw; | |
| height: 100vh; | |
| background: rgba(0, 0, 0, 0.5); | |
| z-index: 99; | |
| opacity: 0; | |
| visibility: hidden; | |
| transition: opacity 0.3s ease, visibility 0.3s ease; | |
| } | |
| .sidebar-overlay.active { | |
| opacity: 1; | |
| visibility: visible; | |
| } | |
| } | |
| @media (max-width: 768px) { | |
| :root { | |
| --sidebar-width: 60vw; | |
| } | |
| .sidebar { | |
| width: 60vw ; | |
| max-width: 400px ; | |
| } | |
| .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 ; | |
| animation: none ; | |
| } | |
| .reveal { | |
| opacity: 1; | |
| transform: none; | |
| } | |
| } | |
| /* Session Management Styles */ | |
| .session-controls { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .session-dropdown-wrapper { | |
| display: flex; | |
| align-items: center; | |
| gap: 4px; | |
| } | |
| .session-dropdown { | |
| background: var(--card); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| color: var(--text); | |
| padding: 8px 12px; | |
| font-size: 14px; | |
| min-width: 150px; | |
| cursor: pointer; | |
| } | |
| .session-dropdown:focus { | |
| outline: none; | |
| border-color: var(--accent); | |
| box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); | |
| } | |
| .session-actions { | |
| display: flex; | |
| align-items: center; | |
| gap: 4px; | |
| } | |
| .btn-danger { | |
| background: var(--error); | |
| color: white; | |
| border: none; | |
| padding: 8px 16px; | |
| border-radius: var(--radius); | |
| font-weight: 500; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .btn-danger:hover { | |
| background: #dc2626; | |
| transform: translateY(-1px); | |
| } | |
| .btn-danger:active { | |
| transform: translateY(0); | |
| } | |
| /* 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; | |
| } | |
| /* Session Management Styles */ | |
| .session-controls { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| margin-top: 16px; | |
| width: 100%; | |
| } | |
| .session-left { | |
| display: flex; | |
| align-items: center; | |
| flex: 0 0 auto; | |
| } | |
| .session-center { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| flex: 1; | |
| } | |
| .session-right { | |
| display: flex; | |
| align-items: center; | |
| justify-content: flex-end; | |
| flex: 0 0 auto; | |
| } | |
| .session-dropdown-wrapper { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .session-dropdown { | |
| background: var(--accent); | |
| color: white; | |
| border: none; | |
| border-radius: var(--radius); | |
| padding: 10px 16px; | |
| font-size: 14px; | |
| font-weight: 500; | |
| min-width: 180px; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| appearance: none; | |
| background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); | |
| background-position: right 12px center; | |
| background-repeat: no-repeat; | |
| background-size: 16px; | |
| padding-right: 40px; | |
| } | |
| .session-dropdown:hover { | |
| background: var(--accent-hover); | |
| transform: translateY(-1px); | |
| } | |
| .session-dropdown:focus { | |
| outline: none; | |
| box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3); | |
| } | |
| .session-actions { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .session-actions:not([style*="display: none"]) { | |
| display: flex ; | |
| } | |
| .session-actions .btn-icon { | |
| background: transparent; | |
| color: white; | |
| border: 1px solid var(--border-light); | |
| border-radius: var(--radius); | |
| padding: 8px 10px; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| font-size: 14px; | |
| min-width: 36px; | |
| height: 36px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .session-actions .btn-icon:hover { | |
| background: rgba(255, 255, 255, 0.1); | |
| border-color: white; | |
| transform: translateY(-1px); | |
| } | |
| .session-actions .btn-icon:active { | |
| transform: scale(0.95); | |
| } | |
| /* Modal styles for session management */ | |
| #rename-session-modal .modal-content, | |
| #delete-session-modal .modal-content { | |
| max-width: 400px; | |
| } | |
| #session-name-input { | |
| width: 100%; | |
| background: var(--card); | |
| color: var(--text); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| padding: 12px 16px; | |
| font-size: 14px; | |
| margin-top: 8px; | |
| } | |
| #session-name-input:focus { | |
| outline: none; | |
| border-color: var(--accent); | |
| } | |
| /* Responsive session controls */ | |
| @media (max-width: 768px) { | |
| .session-controls { | |
| flex-direction: column; | |
| align-items: stretch; | |
| gap: 12px; | |
| } | |
| .session-left, | |
| .session-center, | |
| .session-right { | |
| width: 100%; | |
| justify-content: center; | |
| } | |
| .session-dropdown { | |
| min-width: unset; | |
| width: 100%; | |
| } | |
| .session-actions { | |
| justify-content: center; | |
| } | |
| } | |
| /* Analytics Styles */ | |
| .analytics-content { | |
| padding: 1.5rem; | |
| } | |
| .analytics-controls { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 2rem; | |
| padding: 1rem; | |
| background: var(--card); | |
| border-radius: var(--radius); | |
| border: 1px solid var(--border); | |
| } | |
| .analytics-actions { | |
| display: flex; | |
| gap: 0.75rem; | |
| align-items: center; | |
| } | |
| .analytics-period { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| } | |
| .analytics-period label { | |
| font-weight: 500; | |
| color: var(--text); | |
| } | |
| .analytics-select { | |
| padding: 0.5rem 0.75rem; | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| background: var(--bg); | |
| color: var(--text); | |
| font-size: 0.875rem; | |
| } | |
| .analytics-grid { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 1.5rem; | |
| margin-bottom: 2rem; | |
| } | |
| .analytics-card { | |
| background: var(--card); | |
| border-radius: var(--radius); | |
| border: 1px solid var(--border); | |
| padding: 1.5rem; | |
| } | |
| .analytics-card h3 { | |
| margin: 0 0 1rem 0; | |
| font-size: 1.125rem; | |
| font-weight: 600; | |
| color: var(--text); | |
| } | |
| .analytics-wide { | |
| grid-column: 1 / -1; | |
| } | |
| .analytics-chart { | |
| min-height: 200px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .analytics-empty { | |
| text-align: center; | |
| color: var(--muted); | |
| font-style: italic; | |
| } | |
| .analytics-error { | |
| text-align: center; | |
| color: var(--error); | |
| font-weight: 500; | |
| } | |
| .loading-spinner { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: var(--muted); | |
| font-size: 0.875rem; | |
| } | |
| /* Analytics Loading Styles */ | |
| .analytics-loading { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 1rem; | |
| padding: 2rem; | |
| } | |
| .analytics-loading .spinner { | |
| width: 32px; | |
| height: 32px; | |
| border: 3px solid var(--border); | |
| border-top: 3px solid var(--accent); | |
| border-radius: 50%; | |
| animation: spin 1s linear infinite; | |
| } | |
| .analytics-loading .loading-text { | |
| color: var(--muted); | |
| font-size: 0.875rem; | |
| font-weight: 500; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |
| /* Model Usage Styles */ | |
| .model-usage-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .model-usage-item { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| padding: 1rem; | |
| background: var(--bg-secondary); | |
| border-radius: var(--radius); | |
| border: 1px solid var(--border); | |
| } | |
| .model-info { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .model-name { | |
| font-weight: 600; | |
| color: var(--text); | |
| font-size: 0.875rem; | |
| } | |
| .model-provider { | |
| font-size: 0.75rem; | |
| color: var(--muted); | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| } | |
| .model-stats { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| font-size: 0.875rem; | |
| } | |
| .model-count { | |
| font-weight: 600; | |
| color: var(--accent); | |
| } | |
| .model-percentage { | |
| color: var(--text-secondary); | |
| } | |
| .model-last-used { | |
| color: var(--muted); | |
| font-size: 0.75rem; | |
| } | |
| .model-bar { | |
| height: 4px; | |
| background: var(--border); | |
| border-radius: 2px; | |
| overflow: hidden; | |
| } | |
| .model-bar-fill { | |
| height: 100%; | |
| background: var(--gradient-accent); | |
| transition: width 0.3s ease; | |
| } | |
| /* Agent Usage Styles */ | |
| .agent-usage-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .agent-usage-item { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| padding: 1rem; | |
| background: var(--bg-secondary); | |
| border-radius: var(--radius); | |
| border: 1px solid var(--border); | |
| } | |
| .agent-info { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .agent-name { | |
| font-weight: 600; | |
| color: var(--text); | |
| font-size: 0.875rem; | |
| } | |
| .agent-actions { | |
| font-size: 0.75rem; | |
| color: var(--muted); | |
| } | |
| .agent-stats { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| font-size: 0.875rem; | |
| } | |
| .agent-count { | |
| font-weight: 600; | |
| color: var(--success); | |
| } | |
| .agent-percentage { | |
| color: var(--text-secondary); | |
| } | |
| .agent-last-used { | |
| color: var(--muted); | |
| font-size: 0.75rem; | |
| } | |
| .agent-bar { | |
| height: 4px; | |
| background: var(--border); | |
| border-radius: 2px; | |
| overflow: hidden; | |
| } | |
| .agent-bar-fill { | |
| height: 100%; | |
| background: var(--gradient-success); | |
| transition: width 0.3s ease; | |
| } | |
| /* Daily Trends Styles */ | |
| .daily-trends-chart { | |
| display: flex; | |
| align-items: end; | |
| gap: 0.5rem; | |
| height: 200px; | |
| padding: 1rem 0; | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .daily-bar { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 0.5rem; | |
| min-height: 100px; | |
| cursor: pointer; | |
| transition: transform 0.2s ease; | |
| } | |
| .daily-bar:hover { | |
| transform: translateY(-2px); | |
| } | |
| .daily-bar-fill { | |
| width: 100%; | |
| background: var(--gradient-accent); | |
| border-radius: 4px 4px 0 0; | |
| min-height: 8px; | |
| transition: all 0.3s ease; | |
| position: relative; | |
| } | |
| .daily-bar:hover .daily-bar-fill { | |
| background: var(--accent); | |
| box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3); | |
| } | |
| .daily-label { | |
| font-size: 0.75rem; | |
| color: var(--muted); | |
| text-align: center; | |
| white-space: nowrap; | |
| transform: rotate(-45deg); | |
| transform-origin: center; | |
| margin-top: 0.5rem; | |
| } | |
| .daily-count { | |
| font-size: 0.75rem; | |
| color: var(--text-secondary); | |
| font-weight: 600; | |
| margin-top: 0.25rem; | |
| } | |
| /* Usage Summary Styles */ | |
| .usage-summary-content { | |
| display: grid; | |
| grid-template-columns: repeat(2, 1fr); | |
| gap: 1rem; | |
| } | |
| .summary-stat { | |
| text-align: center; | |
| padding: 1rem; | |
| background: var(--bg-secondary); | |
| border-radius: var(--radius); | |
| border: 1px solid var(--border); | |
| } | |
| .summary-value { | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| color: var(--accent); | |
| margin-bottom: 0.25rem; | |
| } | |
| .summary-label { | |
| font-size: 0.75rem; | |
| color: var(--muted); | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| } | |
| .summary-highlight { | |
| grid-column: 1 / -1; | |
| padding: 1rem; | |
| background: var(--bg-secondary); | |
| border-radius: var(--radius); | |
| border: 1px solid var(--border); | |
| margin-top: 1rem; | |
| } | |
| .highlight-label { | |
| font-size: 0.75rem; | |
| color: var(--muted); | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| margin-bottom: 0.25rem; | |
| } | |
| .highlight-value { | |
| font-size: 0.875rem; | |
| color: var(--text); | |
| font-weight: 500; | |
| } | |
| /* Analytics responsive */ | |
| @media (max-width: 1024px) { | |
| .analytics-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| .analytics-controls { | |
| flex-direction: column; | |
| gap: 1rem; | |
| align-items: stretch; | |
| } | |
| .usage-summary-content { | |
| grid-template-columns: 1fr; | |
| } | |
| .daily-trends-chart { | |
| gap: 0.25rem; | |
| } | |
| .daily-label { | |
| font-size: 0.625rem; | |
| } | |
| } | |
| /* Quiz Styles */ | |
| .quiz-modal-content { | |
| max-width: 900px; | |
| width: 90vw; | |
| max-height: 90vh; | |
| overflow-y: auto; | |
| animation: slideInUp 0.3s ease-out; | |
| } | |
| @keyframes slideInUp { | |
| from { | |
| opacity: 0; | |
| transform: translateY(30px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .quiz-step { | |
| margin-bottom: 24px; | |
| opacity: 0; | |
| transform: translateX(20px); | |
| animation: fadeInSlide 0.4s ease-out forwards; | |
| } | |
| @keyframes fadeInSlide { | |
| to { | |
| opacity: 1; | |
| transform: translateX(0); | |
| } | |
| } | |
| .document-checkbox-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| max-height: 300px; | |
| overflow-y: auto; | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| padding: 16px; | |
| background: var(--bg-secondary); | |
| } | |
| .document-checkbox-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| padding: 8px 12px; | |
| background: var(--card); | |
| border-radius: var(--radius); | |
| border: 1px solid var(--border); | |
| transition: all 0.2s ease; | |
| } | |
| .document-checkbox-item:hover { | |
| background: var(--card-hover); | |
| border-color: var(--border-light); | |
| } | |
| .document-checkbox-item input[type="checkbox"] { | |
| margin: 0; | |
| transform: scale(1.2); | |
| } | |
| .document-checkbox-item label { | |
| flex: 1; | |
| margin: 0; | |
| cursor: pointer; | |
| font-weight: 500; | |
| } | |
| .quiz-timer { | |
| font-size: 18px; | |
| font-weight: 600; | |
| color: var(--accent); | |
| background: var(--bg-secondary); | |
| padding: 8px 16px; | |
| border-radius: var(--radius); | |
| border: 1px solid var(--border); | |
| } | |
| .quiz-timer.warning { | |
| color: var(--warning); | |
| background: rgba(245, 158, 11, 0.1); | |
| border-color: var(--warning); | |
| } | |
| .quiz-timer.danger { | |
| color: var(--error); | |
| background: rgba(239, 68, 68, 0.1); | |
| border-color: var(--error); | |
| } | |
| .quiz-progress { | |
| margin-bottom: 24px; | |
| } | |
| .quiz-progress-bar { | |
| height: 8px; | |
| background: var(--border); | |
| border-radius: 4px; | |
| overflow: hidden; | |
| margin-bottom: 8px; | |
| } | |
| .quiz-progress-fill { | |
| height: 100%; | |
| background: var(--gradient-accent); | |
| transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); | |
| width: 0%; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .quiz-progress-fill::after { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: -100%; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); | |
| animation: progressShimmer 2s infinite; | |
| } | |
| @keyframes progressShimmer { | |
| 0% { left: -100%; } | |
| 100% { left: 100%; } | |
| } | |
| .quiz-progress-text { | |
| font-size: 14px; | |
| color: var(--text-secondary); | |
| font-weight: 500; | |
| } | |
| .quiz-question { | |
| margin-bottom: 24px; | |
| padding: 20px; | |
| background: var(--card); | |
| border-radius: var(--radius-lg); | |
| border: 1px solid var(--border); | |
| } | |
| .quiz-question h3 { | |
| font-size: 18px; | |
| font-weight: 600; | |
| margin-bottom: 16px; | |
| color: var(--text); | |
| } | |
| .quiz-question p { | |
| font-size: 16px; | |
| line-height: 1.6; | |
| color: var(--text-secondary); | |
| margin-bottom: 0; | |
| } | |
| .quiz-answers { | |
| margin-bottom: 24px; | |
| } | |
| .quiz-answer-option { | |
| display: flex; | |
| align-items: flex-start; | |
| gap: 12px; | |
| padding: 16px; | |
| margin-bottom: 12px; | |
| background: var(--card); | |
| border: 2px solid var(--border); | |
| border-radius: var(--radius); | |
| cursor: pointer; | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .quiz-answer-option::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: -100%; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); | |
| transition: left 0.5s ease; | |
| } | |
| .quiz-answer-option:hover::before { | |
| left: 100%; | |
| } | |
| .quiz-answer-option:hover { | |
| background: var(--card-hover); | |
| border-color: var(--border-light); | |
| } | |
| .quiz-answer-option.selected { | |
| border-color: var(--accent); | |
| background: rgba(59, 130, 246, 0.1); | |
| } | |
| .quiz-answer-option.correct { | |
| border-color: var(--success); | |
| background: rgba(16, 185, 129, 0.1); | |
| } | |
| .quiz-answer-option.incorrect { | |
| border-color: var(--error); | |
| background: rgba(239, 68, 68, 0.1); | |
| } | |
| .quiz-answer-option input[type="radio"] { | |
| margin: 0; | |
| transform: scale(1.2); | |
| } | |
| .quiz-answer-option label { | |
| flex: 1; | |
| margin: 0; | |
| cursor: pointer; | |
| font-weight: 500; | |
| line-height: 1.5; | |
| } | |
| .quiz-text-answer { | |
| width: 100%; | |
| min-height: 120px; | |
| padding: 16px; | |
| border: 2px solid var(--border); | |
| border-radius: var(--radius); | |
| background: var(--card); | |
| color: var(--text); | |
| font-size: 16px; | |
| font-family: inherit; | |
| resize: vertical; | |
| transition: border-color 0.2s ease; | |
| } | |
| .quiz-text-answer:focus { | |
| outline: none; | |
| border-color: var(--accent); | |
| } | |
| .quiz-navigation { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| gap: 16px; | |
| } | |
| .quiz-results-content { | |
| max-height: 60vh; | |
| overflow-y: auto; | |
| } | |
| .quiz-result-summary { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 16px; | |
| margin-bottom: 24px; | |
| } | |
| .quiz-result-stat { | |
| text-align: center; | |
| padding: 16px; | |
| background: var(--card); | |
| border-radius: var(--radius); | |
| border: 1px solid var(--border); | |
| } | |
| .quiz-result-stat-value { | |
| font-size: 24px; | |
| font-weight: 700; | |
| color: var(--accent); | |
| margin-bottom: 4px; | |
| } | |
| .quiz-result-stat-label { | |
| font-size: 14px; | |
| color: var(--text-secondary); | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .quiz-result-performance { | |
| font-size: 12px; | |
| font-weight: 600; | |
| margin-top: 4px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .quiz-result-score { | |
| border: 2px solid var(--border); | |
| border-radius: var(--radius); | |
| background: var(--card); | |
| } | |
| .quiz-result-questions { | |
| margin-top: 24px; | |
| } | |
| .quiz-result-question { | |
| margin-bottom: 24px; | |
| padding: 20px; | |
| background: var(--card); | |
| border-radius: var(--radius-lg); | |
| border: 1px solid var(--border); | |
| } | |
| .quiz-result-question-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 12px; | |
| } | |
| .quiz-result-question-title { | |
| font-weight: 600; | |
| color: var(--text); | |
| } | |
| .quiz-result-question-status { | |
| padding: 4px 12px; | |
| border-radius: 999px; | |
| font-size: 12px; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| } | |
| .quiz-result-question-status.correct { | |
| background: rgba(16, 185, 129, 0.1); | |
| color: var(--success); | |
| } | |
| .quiz-result-question-status.incorrect { | |
| background: rgba(239, 68, 68, 0.1); | |
| color: var(--error); | |
| } | |
| .quiz-result-question-status.partial { | |
| background: rgba(245, 158, 11, 0.1); | |
| color: var(--warning); | |
| } | |
| .quiz-result-question-text { | |
| margin-bottom: 16px; | |
| color: var(--text-secondary); | |
| line-height: 1.6; | |
| } | |
| .quiz-result-answer { | |
| margin-bottom: 12px; | |
| padding: 12px; | |
| border-radius: var(--radius); | |
| border: 1px solid var(--border); | |
| } | |
| .quiz-result-answer-label { | |
| font-weight: 600; | |
| margin-bottom: 4px; | |
| color: var(--text); | |
| } | |
| .quiz-result-answer-content { | |
| color: var(--text-secondary); | |
| line-height: 1.5; | |
| } | |
| .quiz-result-answer-content.correct { | |
| color: var(--success); | |
| font-weight: 600; | |
| background: rgba(16, 185, 129, 0.1); | |
| padding: 8px; | |
| border-radius: 4px; | |
| border-left: 3px solid var(--success); | |
| } | |
| .quiz-result-answer-content.incorrect { | |
| color: var(--error); | |
| font-weight: 600; | |
| background: rgba(239, 68, 68, 0.1); | |
| padding: 8px; | |
| border-radius: 4px; | |
| border-left: 3px solid var(--error); | |
| } | |
| .quiz-result-explanation { | |
| margin-top: 12px; | |
| padding: 12px; | |
| background: var(--bg-secondary); | |
| border-radius: var(--radius); | |
| border-left: 4px solid var(--accent); | |
| font-size: 14px; | |
| color: var(--text-secondary); | |
| line-height: 1.5; | |
| } | |
| /* Quiz responsive */ | |
| @media (max-width: 768px) { | |
| .quiz-modal-content { | |
| width: 95vw; | |
| max-height: 95vh; | |
| } | |
| .quiz-navigation { | |
| flex-direction: column; | |
| gap: 12px; | |
| } | |
| .quiz-navigation button { | |
| width: 100%; | |
| } | |
| .quiz-result-summary { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| /* Notification Styles */ | |
| .notification { | |
| position: fixed; | |
| top: 20px; | |
| right: 20px; | |
| z-index: 10000; | |
| max-width: 400px; | |
| padding: 16px; | |
| border-radius: var(--radius); | |
| box-shadow: var(--shadow-lg); | |
| animation: slideInRight 0.3s ease-out; | |
| border-left: 4px solid; | |
| } | |
| .notification-success { | |
| background: var(--card); | |
| border-left-color: var(--success); | |
| color: var(--text); | |
| } | |
| .notification-error { | |
| background: var(--card); | |
| border-left-color: var(--error); | |
| color: var(--text); | |
| } | |
| .notification-warning { | |
| background: var(--card); | |
| border-left-color: var(--warning); | |
| color: var(--text); | |
| } | |
| .notification-info { | |
| background: var(--card); | |
| border-left-color: var(--accent); | |
| color: var(--text); | |
| } | |
| .notification-content { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 12px; | |
| } | |
| .notification-message { | |
| flex: 1; | |
| font-weight: 500; | |
| } | |
| .notification-close { | |
| background: none; | |
| border: none; | |
| font-size: 18px; | |
| cursor: pointer; | |
| color: var(--text-secondary); | |
| padding: 4px; | |
| border-radius: 4px; | |
| transition: all 0.2s ease; | |
| } | |
| .notification-close:hover { | |
| background: var(--bg-secondary); | |
| color: var(--text); | |
| } | |
| @keyframes slideInRight { | |
| from { | |
| opacity: 0; | |
| transform: translateX(100%); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateX(0); | |
| } | |
| } |