:root { --primary-color: #e91e63; --primary-light: #f06292; --primary-dark: #c2185b; --secondary-color: #9c27b0; --background-color: #13111C; --card-background: #1E1B2E; --surface-light: rgba(30, 27, 46, 0.6); --surface-dark: rgba(19, 17, 28, 0.6); --text-primary: rgba(255, 255, 255, 0.95); --text-secondary: rgba(255, 255, 255, 0.7); --border-color: rgba(255, 255, 255, 0.08); --error-color: #ff4444; --success-color: #00C851; } /* Base Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { background: var(--background-color); color: var(--text-primary); font-family: 'Space Grotesk', sans-serif; min-height: 100vh; line-height: 1.6; } /* Layout */ .app-container { min-height: 100vh; display: flex; flex-direction: column; } /* Navigation */ .top-nav { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 2.5rem; background: rgba(30, 27, 46, 0.98); backdrop-filter: blur(10px); } .logo { color: var(--primary-color); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.5px; } .nav-right { display: flex; align-items: center; gap: 2rem; } .user-info { color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; letter-spacing: 0.3px; } .logout-button { color: var(--primary-color); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: all 0.3s ease; } .logout-button:hover { color: #ff4081; } /* Search Container */ .search-container { width: 90%; max-width: 800px; margin: 3rem auto; display: flex; flex-direction: column; gap: 1.2rem; } /* Search Input Wrapper */ .search-input-wrapper { width: 100%; background: rgba(30, 27, 46, 0.95); border-radius: 15px; padding: 1rem 1.5rem; border: 1px solid rgba(255, 255, 255, 0.08); transition: all 0.3s ease; } .search-input-wrapper:focus-within { border-color: rgba(255, 255, 255, 0.15); box-shadow: 0 0 20px rgba(233, 30, 99, 0.1); } /* Search Input */ .search-input { width: 100%; padding: 16px 24px; font-size: 1.1rem; background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 16px; color: var(--text-primary); transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } .search-input:focus { outline: none; border-color: var(--primary-color); background: rgba(255, 255, 255, 0.12); box-shadow: 0 8px 24px rgba(233, 30, 99, 0.15); transform: translateY(-1px); } .search-input::placeholder { color: rgba(255, 255, 255, 0.5); font-weight: 400; } /* Filters Row */ .filters-row { display: flex; align-items: center; gap: 1rem; justify-content: space-between; } /* Filter Selects */ .filter-select { background: rgba(30, 27, 46, 0.95); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; color: rgba(255, 255, 255, 0.9); padding: 0.8rem 2.5rem 0.8rem 1.2rem; font-size: 0.95rem; cursor: pointer; outline: none; flex: 1; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1em; transition: all 0.3s ease; } .filter-select:hover { border-color: rgba(255, 255, 255, 0.15); background-color: rgba(40, 37, 56, 0.98); } /* Search Button */ .search-button { background: linear-gradient(135deg, #e91e63, #f06292); color: white; border: none; padding: 0.8rem 2.5rem; border-radius: 12px; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; min-width: 120px; box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2); } .search-button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3); background: linear-gradient(135deg, #ec407a, #f48fb1); } .search-button:active { transform: translateY(0); box-shadow: 0 2px 10px rgba(233, 30, 99, 0.2); } /* Results Section */ .results-section { margin-top: 2rem; padding: 0 2rem; } /* Loading Overlay */ .loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(13, 12, 20, 0.8); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 1000; } .loading-overlay.hidden { display: none; } /* Responsive Design */ @media (max-width: 768px) { .top-nav { padding: 1rem 1.5rem; } .search-container { margin: 2rem auto; } .filters-row { flex-direction: column; gap: 0.8rem; } .filter-select, .search-button { width: 100%; } } /* Main Content */ .main-content { flex: 1; max-width: 1200px; margin: 0 auto; padding: 2rem; width: 100%; } /* Search Section */ .search-section { margin: 2rem auto; max-width: 700px; } .results-container { padding: 2rem; max-width: 1200px; margin: 0 auto; } .results-count { color: var(--text-primary); font-size: 1.1rem; margin-bottom: 1.5rem; opacity: 0.8; } .results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); gap: 1.5rem; padding: 2rem; max-width: 1400px; margin: 0 auto; } .paper-card { background: var(--card-background); border-radius: 15px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; height: 100%; } .paper-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); } .paper-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; } .paper-date { color: var(--primary-color); font-size: 0.9rem; opacity: 0.9; } .paper-title { color: var(--text-primary); font-size: 1.5rem; line-height: 1.3; margin: 0; font-weight: 600; } .paper-author { color: var(--text-primary); font-size: 1rem; opacity: 0.9; } .paper-abstract { color: var(--text-primary); font-size: 0.95rem; line-height: 1.5; opacity: 0.7; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .paper-actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: auto; } .action-button { flex: 1; padding: 12px 20px; border-radius: 12px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 0.5px; text-align: center; text-decoration: none; border: none; } .action-button.pdf-button { background: linear-gradient(135deg, #FF4B2B, #FF416C); color: white; } .action-button.arxiv-button { background: linear-gradient(135deg, #4A00E0, #8E2DE2); color: white; } .action-button.analyze { background: linear-gradient(135deg, #00B4DB, #0083B0); color: white; } .action-button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); filter: brightness(110%); } .action-button:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } /* Add subtle glow effect on hover */ .action-button.pdf-button:hover { box-shadow: 0 8px 20px rgba(255, 75, 43, 0.3); } .action-button.arxiv-button:hover { box-shadow: 0 8px 20px rgba(142, 45, 226, 0.3); } .action-button.analyze:hover { box-shadow: 0 8px 20px rgba(0, 180, 219, 0.3); } @media (max-width: 768px) { .paper-actions { flex-direction: column; gap: 8px; } .action-button { width: 100%; } } /* Analysis Section */ .analysis-container { background: var(--card-background); border-radius: 10px; padding: 20px; margin-top: 20px; } .analysis-section { margin-bottom: 2rem; } .analysis-section h3 { margin-bottom: 1rem; color: var(--primary-color); } /* Analysis Section Tabs */ .analysis-tabs { display: flex; gap: 0; padding: 1.5rem 2rem; background: rgba(19, 17, 28, 0.95); border-bottom: 1px solid rgba(255, 255, 255, 0.08); position: relative; } .tab-button { background: transparent; border: none; color: rgba(255, 255, 255, 0.6); padding: 1rem 2.5rem; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; position: relative; text-transform: uppercase; letter-spacing: 1px; } .tab-button:hover { color: rgba(255, 255, 255, 0.9); } .tab-button.active { color: #E91E63; font-weight: 600; } .tab-button.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, #E91E63, #F06292); animation: slideIn 0.3s ease; } @keyframes slideIn { from { transform: scaleX(0); } to { transform: scaleX(1); } } /* Tab Content Container */ .tab-content { display: none; opacity: 0; padding: 2rem; transition: all 0.3s ease; } .tab-content.active { display: block; opacity: 1; animation: fadeIn 0.4s ease; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } /* Paper Analysis Content */ .paper-analysis { padding: 2rem; } .analysis-section { margin-bottom: 2.5rem; } .analysis-section h3 { color: var(--primary-color); font-size: 1.3rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.8rem; } .analysis-section p { color: rgba(255, 255, 255, 0.9); line-height: 1.7; font-size: 1rem; } /* Chat Interface Styles */ .chat-container { height: 600px; display: flex; flex-direction: column; background: var(--surface-dark); border-radius: 20px; border: 1px solid var(--border-color); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); margin: 2rem auto; overflow: hidden; } .chat-messages { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; } .message-wrapper { display: flex; gap: 1rem; align-items: flex-start; opacity: 0; transform: translateY(10px); animation: messageAppear 0.3s ease forwards; } @keyframes messageAppear { to { opacity: 1; transform: translateY(0); } } .message-avatar { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 600; font-size: 0.9rem; } .user-avatar { background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); color: white; } .ai-avatar { background: var(--surface-light); border: 1px solid var(--border-color); color: var(--text-primary); } .message { max-width: 85%; padding: 1.2rem 1.5rem; border-radius: 16px; line-height: 1.6; font-size: 0.95rem; letter-spacing: 0.2px; } .user-message { background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); color: white; margin-left: auto; border-bottom-right-radius: 4px; box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2); } .ai-message { background: var(--surface-light); color: var(--text-primary); border: 1px solid var(--border-color); border-bottom-left-radius: 4px; } /* Markdown Styles in AI Messages */ .ai-message h1, .ai-message h2, .ai-message h3 { margin-top: 1.2rem; margin-bottom: 0.8rem; color: var(--text-primary); font-weight: 600; } .ai-message h1 { font-size: 1.4rem; } .ai-message h2 { font-size: 1.2rem; } .ai-message h3 { font-size: 1.1rem; } .ai-message p { margin-bottom: 1rem; line-height: 1.7; } .ai-message ul, .ai-message ol { margin: 1rem 0; padding-left: 1.5rem; } .ai-message li { margin-bottom: 0.5rem; line-height: 1.6; } .ai-message strong { color: var(--primary-color); font-weight: 600; } .ai-message em { color: var(--text-secondary); font-style: italic; } .ai-message code { background: var(--surface-dark); padding: 0.2rem 0.4rem; border-radius: 4px; font-family: 'Fira Code', monospace; font-size: 0.9em; } .ai-message pre { background: var(--surface-dark); padding: 1rem; border-radius: 8px; overflow-x: auto; margin: 1rem 0; } .ai-message blockquote { border-left: 3px solid var(--primary-color); margin: 1rem 0; padding-left: 1rem; color: var(--text-secondary); } /* Chat Input Area */ .chat-input-area { padding: 1.5rem; background: var(--surface-light); border-top: 1px solid var(--border-color); display: flex; gap: 1rem; align-items: center; } .chat-input { flex: 1; background: var(--surface-dark); border: 1px solid var(--border-color); border-radius: 12px; padding: 1rem 1.2rem; color: var(--text-primary); font-size: 0.95rem; font-family: 'Space Grotesk', sans-serif; transition: all 0.3s ease; } .chat-input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.1); outline: none; } .chat-send-button { background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); color: white; border: none; padding: 1rem 1.8rem; border-radius: 12px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 0.5rem; font-family: 'Space Grotesk', sans-serif; box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2); } .chat-send-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3); } .chat-send-button:active { transform: translateY(0); } /* AI Thinking Animation */ .ai-thinking { display: flex; align-items: center; padding: 0.8rem 1.2rem; background: rgba(30, 27, 46, 0.4); border-radius: 12px; min-width: 80px; } .ai-thinking-dots { display: flex; gap: 4px; justify-content: center; align-items: center; height: 24px; } .ai-thinking-dot { width: 6px; height: 6px; background: var(--primary-color); border-radius: 50%; animation: thinking 1.4s infinite ease-in-out; opacity: 0.7; } /* Smoother animation for dots */ @keyframes thinking { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; } 40% { transform: scale(1); opacity: 0.8; } } /* Scrollbar Styling */ .chat-messages::-webkit-scrollbar { width: 8px; } .chat-messages::-webkit-scrollbar-track { background: var(--surface-dark); } .chat-messages::-webkit-scrollbar-thumb { background: var(--surface-light); border-radius: 4px; } .chat-messages::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); } /* Responsive Design */ @media (max-width: 768px) { .chat-container { height: calc(100vh - 4rem); margin: 1rem; } .quick-questions { padding: 1rem; } .quick-question-btn { padding: 0.6rem 1rem; font-size: 0.85rem; } .message { max-width: 90%; padding: 1rem; } .chat-input-area { padding: 1rem; } .chat-send-button { padding: 0.8rem 1.2rem; } .paper-actions { flex-direction: column; gap: 8px; } .action-button { width: 100%; } } /* Breadcrumb Styles */ .breadcrumb { padding: 1rem 2rem; background: var(--background-color); display: flex; align-items: center; gap: 1rem; } .back-button { background: transparent; border: none; color: var(--primary-color); cursor: pointer; display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 15px; transition: all 0.3s ease; } .back-button:hover { background: rgba(255, 255, 255, 0.05); } /* Content Sections */ .content-section { display: none; padding: 2rem; } .content-section.active { display: block; } /* History and Saved Papers Grid */ .history-grid, .saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; } /* Tab Styles */ .tabs-container { background: transparent; padding: 0; margin-top: 0; } .tabs { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 10px; } .tab-button { background: transparent; border: none; color: var(--text-primary); padding: 10px 20px; border-radius: 5px; cursor: pointer; transition: all 0.3s ease; opacity: 0.7; } .tab-button:hover { background: rgba(255, 255, 255, 0.1); opacity: 1; } .tab-button.active { background: var(--primary-color); opacity: 1; } .tab-content { display: none; } .tab-content.active { display: block; } /* Chat Styles */ .chat-container { height: 500px; display: flex; flex-direction: column; } .chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; } .chat-input-area { display: flex; gap: 10px; padding: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); } .chat-input-area input { flex: 1; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 10px 15px; border-radius: 5px; color: var(--text-primary); } .chat-send-button { background: var(--primary-color); color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; transition: all 0.3s ease; } .chat-send-button:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4); } /* Message Styles */ .message { padding: 10px 15px; border-radius: 10px; max-width: 80%; } .user-message { background: var(--primary-color); align-self: flex-end; } .ai-message { background: var(--card-background); align-self: flex-start; } .loading { opacity: 0.7; } .error { background: var(--error-color); } /* Add these new styles for navigation */ .analysis-navigation { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .back-to-results { background: transparent; border: none; color: var(--primary-color); padding: 8px 16px; border-radius: 20px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; font-size: 0.9rem; } .back-to-results:hover { background: rgba(233, 30, 99, 0.1); transform: translateX(-2px); } .current-paper-title { font-size: 1.2rem; color: var(--text-primary); margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Responsive adjustments */ @media (max-width: 768px) { .analysis-navigation { flex-direction: column; align-items: flex-start; gap: 10px; } .current-paper-title { font-size: 1rem; } .back-to-results { width: 100%; justify-content: center; } } /* Saved Papers Styles */ .saved-paper-card { background: var(--card-background); border-radius: 12px; padding: 20px; margin-bottom: 20px; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.1); } .saved-paper-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); } .saved-date { font-size: 0.8rem; color: var(--primary-color); margin-bottom: 10px; opacity: 0.8; } .empty-state { text-align: center; padding: 40px; color: var(--text-primary); } .empty-icon { font-size: 3rem; margin-bottom: 20px; } /* Notification Styles */ .notification { position: fixed; bottom: 20px; right: 20px; padding: 12px 24px; border-radius: 8px; background: var(--card-background); color: var(--text-primary); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); transform: translateY(100px); opacity: 0; transition: all 0.3s ease; z-index: 1000; } .notification.show { transform: translateY(0); opacity: 1; } .notification.success { border-left: 4px solid #00C851; } .notification.error { border-left: 4px solid var(--error-color); } .notification.info { border-left: 4px solid #33b5e5; } /* Action Button Styles */ .action-button.save { background: #00C851; color: white; } .action-button.remove { background: var(--error-color); color: white; } /* Saved Papers Grid */ .saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 20px; } @media (max-width: 768px) { .saved-grid { grid-template-columns: 1fr; } .notification { left: 20px; right: 20px; text-align: center; } } /* Updated Saved Papers Styles */ .section-title { color: var(--text-primary); font-size: 2rem; margin: 2rem 0; padding: 0 2rem; } .results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); gap: 1.5rem; padding: 2rem; max-width: 1400px; margin: 0 auto; } .paper-card { background: var(--card-background); border-radius: 15px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; height: 100%; } .paper-date { color: var(--primary-color); font-size: 0.9rem; opacity: 0.9; } .paper-title { color: var(--text-primary); font-size: 1.5rem; line-height: 1.3; margin: 0; font-weight: 600; } .paper-author { color: var(--text-primary); font-size: 1rem; opacity: 0.9; } .paper-abstract { color: var(--text-primary); font-size: 0.95rem; line-height: 1.5; opacity: 0.7; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .paper-actions { margin-top: auto; display: flex; flex-direction: row; gap: 12px; justify-content: space-between; align-items: center; } .action-row { display: flex; gap: 1rem; align-items: center; justify-content: center; } .save-row { width: 100%; } .action-button.remove { width: 100%; background: #ff4444; color: white; padding: 1rem; border-radius: 12px; font-weight: 600; text-transform: uppercase; border: none; cursor: pointer; transition: all 0.3s ease; } .action-button.remove:hover { background: #ff5555; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 68, 68, 0.2); } .empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-primary); } .empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; } .empty-state h3 { font-size: 1.5rem; margin-bottom: 0.5rem; } .empty-state p { color: var(--text-primary); opacity: 0.7; } /* Responsive adjustments */ @media (max-width: 768px) { .results-grid { grid-template-columns: 1fr; padding: 1rem; } .section-title { font-size: 1.5rem; margin: 1.5rem 0; padding: 0 1rem; } .paper-card { padding: 1rem; } .action-row { flex-wrap: wrap; } .action-button, .action-link { width: 100%; text-align: center; } } /* Add styles for back button and header */ .analysis-header { margin: 2rem 0; padding: 2rem; background: rgba(30, 27, 46, 0.98); border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.08); } .back-button { display: flex; align-items: center; gap: 0.5rem; background: none; border: none; color: #E91E63; font-size: 1rem; font-weight: 500; cursor: pointer; padding: 0.5rem 1rem; border-radius: 6px; transition: all 0.3s ease; } .back-button:hover { background: rgba(233, 30, 99, 0.1); transform: translateX(-2px); } .current-paper-title { color: var(--text-primary); font-size: 1.25rem; margin: 0; font-weight: 500; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Update analysis container styles */ .analysis-container { padding: 2rem; max-width: 1200px; margin: 0 auto; } /* Responsive styles */ @media (max-width: 768px) { .analysis-header { flex-direction: column; align-items: flex-start; gap: 1rem; } .back-button { width: 100%; justify-content: center; } .current-paper-title { font-size: 1.1rem; text-align: center; width: 100%; } } /* Updated button styles */ .action-link { background: none; border: none; color: #4A7DFF; font-size: 0.95rem; font-weight: 600; padding: 12px 0; cursor: pointer; transition: all 0.2s ease; text-transform: uppercase; letter-spacing: 0.5px; } .action-link:hover { opacity: 0.8; } .action-button { border: none; padding: 12px 24px; border-radius: 12px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; text-transform: uppercase; letter-spacing: 0.5px; width: auto; text-align: center; } .action-button.analyze { background: #E91E63; color: white; min-width: 120px; } .action-button.save { background: #00C851; color: white; width: 100%; padding: 16px; font-size: 1rem; border-radius: 14px; margin-top: 8px; } .paper-actions { display: flex; flex-direction: row; margin-top: auto; } .action-row { display: flex; align-items: center; gap: 24px; } .save-row { display: flex; width: 100%; margin-top: 4px; } /* Hover effects */ .action-button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } .action-button.analyze:hover { background: #F0196B; } .action-button.save:hover { background: #00D455; } /* Paper card adjustments */ .paper-card { background: var(--card-background); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; min-height: 320px; } /* Responsive adjustments */ @media (max-width: 768px) { .action-row { flex-wrap: wrap; gap: 16px; } .action-button { width: 100%; } .action-link { text-align: center; padding: 12px; flex: 1; } } /* Add these new styles */ .action-button.remove { background: #ff4444; color: white; width: 100%; padding: 16px; font-size: 1rem; border-radius: 14px; margin-top: 8px; } .action-button.remove:hover { background: #ff5555; } .action-button.saved { background: #666; cursor: default; } .action-button.saved:hover { transform: none; box-shadow: none; } .empty-state { text-align: center; padding: 60px 20px; color: var(--text-primary); } .empty-state .empty-icon { font-size: 48px; margin-bottom: 20px; } .empty-state h3 { font-size: 24px; margin-bottom: 10px; } .empty-state p { color: var(--text-primary); opacity: 0.7; } /* Notification styles */ .notification { position: fixed; bottom: 20px; right: 20px; padding: 12px 24px; border-radius: 8px; background: var(--card-background); color: var(--text-primary); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); transform: translateY(100px); opacity: 0; transition: all 0.3s ease; z-index: 1000; } .notification.show { transform: translateY(0); opacity: 1; } .notification.success { border-left: 4px solid #00C851; } .notification.error { border-left: 4px solid #ff4444; } .notification.info { border-left: 4px solid #33b5e5; } /* Updated saved papers grid styles */ .saved-papers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 24px; max-width: 1400px; margin: 0 auto; } .saved-paper-card { background: var(--card-background); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; } .saved-date { color: #E91E63; font-size: 14px; font-weight: 500; } .paper-title { color: var(--text-primary); font-size: 24px; line-height: 1.3; margin: 0; font-weight: 600; } .paper-author { color: var(--text-primary); font-size: 16px; opacity: 0.9; } .paper-abstract { color: var(--text-primary); font-size: 15px; line-height: 1.5; opacity: 0.7; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .paper-actions { margin-top: auto; display: flex; flex-direction: row; gap: 16px; align-items: center; } .action-row { display: flex; gap: 16px; align-items: center; } .action-link { background: none; border: none; color: #4A7DFF; font-size: 14px; font-weight: 600; padding: 0; cursor: pointer; transition: all 0.2s ease; } .action-button { border: none; padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; } .action-button.analyze { background: #E91E63; color: white; } .action-button.remove { background: #ff4444; color: white; width: 100%; padding: 16px; } .save-row { width: 100%; } /* Responsive styles */ @media (max-width: 1024px) { .saved-papers-grid { grid-template-columns: 1fr; padding: 16px; } .saved-paper-card { padding: 20px; } .action-row { flex-wrap: wrap; gap: 12px; } .action-button, .action-link { width: 100%; text-align: center; padding: 12px; } } /* Search History Styles */ .history-title { color: var(--text-primary); font-size: 32px; font-weight: 600; margin: 32px 24px 24px; } .search-history-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0 24px 24px; max-width: 1400px; margin: 0 auto; } .history-item { background: var(--card-background); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; } .search-term { color: var(--text-primary); font-size: 24px; font-weight: 600; margin: 0; text-transform: uppercase; } .search-date { color: var(--text-primary); font-size: 16px; opacity: 0.7; } .search-again-btn { background: var(--background-color); color: var(--text-primary); border: none; border-radius: 100px; padding: 16px 24px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; text-transform: uppercase; margin-top: auto; } .search-again-btn:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); } /* Empty state */ .empty-history { text-align: center; padding: 48px 24px; color: var(--text-primary); } .empty-history h3 { font-size: 24px; margin-bottom: 12px; } .empty-history p { opacity: 0.7; } /* Responsive styles */ @media (max-width: 1200px) { .search-history-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 768px) { .search-history-grid { grid-template-columns: 1fr; padding: 0 16px 16px; } .history-title { font-size: 24px; margin: 24px 16px 16px; } .history-item { padding: 20px; } .search-term { font-size: 20px; } } /* User Navigation Styles */ .user-nav { display: flex; align-items: center; gap: 16px; padding: 16px 24px; position: absolute; top: 0; right: 0; } .username { color: var(--text-primary); font-size: 16px; font-weight: 400; opacity: 0.9; } .logout-button { background: rgba(233, 30, 99, 0.1); color: #E91E63; text-decoration: none; padding: 6px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: all 0.3s ease; border: 1px solid rgba(233, 30, 99, 0.2); } .logout-button:hover { background: rgba(233, 30, 99, 0.2); transform: translateY(-1px); } /* Responsive adjustments */ @media (max-width: 768px) { .user-nav { padding: 12px 16px; } .username { font-size: 14px; } .logout-button { padding: 4px 12px; font-size: 13px; } } /* Features Section Styles */ .features-section { display: flex; flex-direction: column; gap: 24px; padding: 32px; max-width: 800px; margin: 0 auto; } .feature-card { background: rgba(20, 22, 36, 0.7); border-radius: 24px; padding: 32px; } .feature-icon { font-size: 32px; margin-bottom: 24px; width: 48px; height: 48px; background: rgba(30, 33, 43, 0.8); border-radius: 12px; display: flex; align-items: center; justify-content: center; } .feature-title { color: #FFFFFF; font-size: 32px; font-weight: 600; margin: 0 0 16px 0; line-height: 1.2; } .feature-description { color: rgba(255, 255, 255, 0.6); font-size: 20px; line-height: 1.5; margin: 0; } /* Card-specific backgrounds */ .feature-card:nth-child(1) { background: linear-gradient(145deg, rgba(20, 22, 36, 0.7), rgba(74, 125, 255, 0.1)); } .feature-card:nth-child(2) { background: linear-gradient(145deg, rgba(20, 22, 36, 0.7), rgba(233, 30, 99, 0.1)); } .feature-card:nth-child(3) { background: linear-gradient(145deg, rgba(20, 22, 36, 0.7), rgba(0, 200, 81, 0.1)); } /* Responsive styles */ @media (max-width: 768px) { .features-section { padding: 16px; } .feature-card { padding: 24px; } .feature-title { font-size: 28px; } .feature-description { font-size: 18px; } .feature-icon { font-size: 28px; width: 40px; height: 40px; } } /* Main Navigation Styles */ .main-nav { background: rgba(30, 33, 43, 0.7); backdrop-filter: blur(10px); padding: 16px 24px; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .nav-links { display: flex; gap: 32px; max-width: 1200px; margin: 0 auto; } .nav-link { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 16px; font-weight: 500; padding: 8px 16px; border-radius: 8px; transition: all 0.3s ease; } .nav-link:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.1); } .nav-link.active { color: #FFFFFF; background: rgba(233, 30, 99, 0.1); position: relative; } .nav-link.active::after { content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); width: 24px; height: 2px; background: #E91E63; border-radius: 2px; } /* Responsive styles */ @media (max-width: 768px) { .main-nav { padding: 12px 16px; } .nav-links { gap: 16px; justify-content: center; } .nav-link { font-size: 14px; padding: 6px 12px; } } /* Make sure these styles work with your existing layout */ .container { padding-top: 24px; } /* Update feature cards to work with new navigation */ .features-section { margin-top: 32px; } /* Update other sections to maintain spacing */ .search-history-grid, .saved-papers-grid { margin-top: 32px; } /* Back to Search Link */ .back-to-search { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary-color); text-decoration: none; padding: 0.5rem 1rem; border-radius: 8px; transition: all 0.3s ease; margin-bottom: 1.5rem; font-size: 0.95rem; } .back-to-search:hover { background: rgba(233, 30, 99, 0.1); transform: translateX(-2px); } /* Paper Title */ .paper-title { font-size: 1.8rem; font-weight: 600; color: var(--text-primary); margin: 1rem 0 2rem; line-height: 1.4; } /* Analysis and Chat Container */ .analysis-chat-container { background: linear-gradient(145deg, rgba(30, 27, 46, 0.95), rgba(19, 17, 28, 0.95)); border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); margin: 2rem auto; max-width: 1200px; overflow: hidden; } /* Enhanced Tab Navigation */ .analysis-tabs { display: flex; padding: 1.5rem 1.5rem 0; gap: 1rem; background: transparent; } .tab-button { background: rgba(19, 17, 28, 0.6); border: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.7); padding: 1rem 2rem; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; border-radius: 12px 12px 0 0; min-width: 160px; } .tab-button:hover { background: rgba(30, 27, 46, 0.8); color: rgba(255, 255, 255, 0.9); } .tab-button.active { background: linear-gradient(135deg, var(--primary-color), #f06292); color: white; border: none; box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2); } /* Tab Content */ .tab-content { padding: 2rem; display: none; opacity: 0; transform: translateY(10px); transition: all 0.3s ease; background: rgba(19, 17, 28, 0.6); margin: 0 1.5rem 1.5rem; border-radius: 0 12px 12px 12px; border: 1px solid rgba(255, 255, 255, 0.08); } .tab-content.active { display: block; opacity: 1; transform: translateY(0); animation: fadeIn 0.4s ease; } /* Analysis Section Styles */ .analysis-section { margin-bottom: 2rem; background: rgba(30, 27, 46, 0.4); border-radius: 16px; padding: 1.8rem; border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.3s ease; } .analysis-section:hover { background: rgba(30, 27, 46, 0.6); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); } .analysis-section:last-child { margin-bottom: 0; } .analysis-section h3 { color: var(--primary-color); font-size: 1.3rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.8rem; letter-spacing: 0.5px; } .analysis-section p { color: rgba(255, 255, 255, 0.9); line-height: 1.8; font-size: 1rem; margin: 0; letter-spacing: 0.2px; } /* Enhanced Chat Interface */ .chat-container { height: 600px; display: flex; flex-direction: column; background: transparent; } .chat-messages { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.2rem; } .message { max-width: 85%; padding: 1.2rem 1.5rem; border-radius: 16px; line-height: 1.6; font-size: 0.95rem; letter-spacing: 0.2px; } .user-message { background: linear-gradient(135deg, var(--primary-color), #f06292); color: white; align-self: flex-end; border-bottom-right-radius: 4px; box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2); } .ai-message { background: rgba(30, 27, 46, 0.6); color: rgba(255, 255, 255, 0.95); align-self: flex-start; border: 1px solid rgba(255, 255, 255, 0.08); border-bottom-left-radius: 4px; } .chat-input-area { padding: 1.5rem; background: rgba(19, 17, 28, 0.4); border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; gap: 1rem; align-items: center; } .chat-input { flex: 1; background: rgba(30, 27, 46, 0.95); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 1rem 1.2rem; color: white; font-size: 0.95rem; transition: all 0.3s ease; } .chat-input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.1); background: rgba(30, 27, 46, 0.8); outline: none; } .chat-send-button { background: linear-gradient(135deg, #E91E63, #f06292); color: white; border: none; padding: 1rem 1.8rem; border-radius: 12px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 0.5rem; font-family: 'Space Grotesk', sans-serif; box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2); } .chat-send-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3); } .chat-send-button:active { transform: translateY(0); } /* Quick Questions Section */ .quick-questions { padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); display: flex; gap: 0.8rem; flex-wrap: wrap; } .quick-question-btn { background: rgba(30, 27, 46, 0.6); border: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.9); padding: 0.8rem 1.2rem; border-radius: 20px; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; } .quick-question-btn:hover { background: rgba(233, 30, 99, 0.1); border-color: rgba(233, 30, 99, 0.3); color: #E91E63; transform: translateY(-1px); } .quick-question-btn:active { transform: translateY(0); } /* AI Thinking Indicator */ .thinking-indicator { opacity: 0.7; transition: all 0.3s ease; } .ai-thinking { display: flex; align-items: center; padding: 0.8rem 1.2rem; background: rgba(30, 27, 46, 0.4); border-radius: 12px; min-width: 80px; } .ai-thinking-dots { display: flex; gap: 4px; justify-content: center; align-items: center; height: 24px; } .ai-thinking-dot { width: 6px; height: 6px; background: var(--primary-color); border-radius: 50%; animation: thinking 1.4s infinite ease-in-out; opacity: 0.7; } /* Smoother animation for dots */ @keyframes thinking { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; } 40% { transform: scale(1); opacity: 0.8; } }