.chat-layout { display: flex; height: calc(100vh - 80px); background: var(--background-color); } .chat-sidebar { width: 300px; background: var(--sidebar-bg); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; transition: all 0.3s ease; } .sidebar-header { padding: 1.5rem; border-bottom: 1px solid var(--border-color); } .new-chat-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 0.75rem 1rem; background: var(--primary-color); color: white; border-radius: var(--border-radius); text-decoration: none; font-weight: 500; transition: var(--transition); } .new-chat-btn:hover { background: var(--primary-dark); color: white; text-decoration: none; } .sidebar-content { flex: 1; overflow-y: auto; padding: 1rem; } .current-session-info { border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; } .session-card { background: var(--primary-color); color: white; padding: 0.75rem; border-radius: var(--border-radius); border: 2px solid var(--primary-color); } .session-card .session-title { font-weight: 600; margin-bottom: 0.25rem; } .session-card .session-meta { font-size: 0.875rem; opacity: 0.9; } .chat-session { padding: 0.75rem; margin-bottom: 0.5rem; border-radius: var(--border-radius); cursor: pointer; transition: var(--transition); color: var(--text-primary); border: 1px solid transparent; background: var(--card-bg); } .chat-session:hover { background: var(--background-light); border-color: var(--border-color); transform: translateX(2px); } .chat-session .session-title { font-weight: 500; margin-bottom: 0.25rem; font-size: 0.875rem; } .chat-session .session-meta { font-size: 0.75rem; color: var(--text-secondary); } .chat-mode-modal { background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); } .chat-mode-content { background: var(--card-bg); border-radius: 1rem; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); border: 1px solid var(--border-color); max-width: 500px; width: 90%; } .mode-option-mini { padding: 1rem; border: 2px solid var(--border-color); border-radius: 0.75rem; cursor: pointer; transition: all 0.3s ease; background: var(--card-bg); text-align: center; } .mode-option-mini:hover { border-color: var(--primary-color); background: var(--background-light); transform: translateY(-2px); } .mode-option-mini.selected { border-color: var(--primary-color); background: var(--primary-color); color: white; } .mode-icon-mini { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--primary-color); } .mode-option-mini.selected .mode-icon-mini { color: white; } .chat-main { flex: 1; display: flex; flex-direction: column; background: var(--background-color); } .chat-header { padding: 1.5rem; border-bottom: 1px solid var(--border-color); background: var(--card-bg); } .chat-title { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); margin: 0; } .chat-messages { flex: 1; overflow-y: auto; padding: 2rem; background: var(--card-bg); } .message { margin-bottom: 2rem; display: flex; gap: 1rem; animation: messageAppear 0.5s ease-out; } @keyframes messageAppear { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Thinking Indicator */ .thinking-indicator { margin-bottom: 1.5rem; display: flex; gap: 1rem; animation: messageAppear 0.5s ease-out; } .thinking-content { background: var(--card-bg); padding: 1rem 1.25rem; border-radius: var(--border-radius-lg); border: 1px solid var(--border-color); display: flex; align-items: center; gap: 0.75rem; color: var(--text-secondary); font-style: italic; max-width: 200px; } .thinking-dots { display: flex; gap: 0.25rem; } .thinking-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-color); animation: thinking 1.4s infinite ease-in-out; } .thinking-dot:nth-child(1) { animation-delay: -0.32s; } .thinking-dot:nth-child(2) { animation-delay: -0.16s; } .thinking-dot:nth-child(3) { animation-delay: 0s; } @keyframes thinking { 0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; } 40% { transform: scale(1.2); opacity: 1; } } .message.user { flex-direction: row-reverse; } .message-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.875rem; flex-shrink: 0; } .message.user .message-avatar { background: var(--primary-color); color: white; } .message.ai .message-avatar { background: var(--secondary-color); color: white; } .message-content { background: var(--card-bg); border-radius: var(--border-radius-lg); padding: 1.25rem; max-width: 70%; box-shadow: var(--shadow-sm); color: var(--text-primary); border: 1px solid var(--border-color); } .message.user .message-content { background: var(--primary-color); color: white; border-color: var(--primary-color); } .message-time { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.5rem; } .chat-input-area { padding: 1.5rem; background: var(--card-bg); border-top: 1px solid var(--border-color); } .chat-input-container { display: flex; gap: 0.75rem; align-items: flex-end; max-width: 1000px; margin: 0 auto; background: var(--card-bg); } .chat-input { flex: 1; resize: none; border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); padding: 1rem; min-height: 50px; max-height: 150px; background: var(--input-bg); color: var(--text-primary); transition: var(--transition); } .chat-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } .send-btn { background: var(--primary-color); color: white; border: none; border-radius: var(--border-radius-lg); padding: 0.75rem 1.5rem; font-weight: 500; transition: var(--transition); } .send-btn:hover { background: var(--primary-dark); } .empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-secondary); } .empty-state i { font-size: 4rem; color: var(--text-muted); margin-bottom: 1rem; } .suggested-prompts { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 2rem; } .suggested-prompts .btn { background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: var(--border-radius-lg); padding: 0.75rem 1.25rem; transition: var(--transition); } .suggested-prompts .btn:hover { background: var(--background-light); border-color: var(--primary-color); transform: translateY(-1px); } /* Mobile Responsive */ @media (max-width: 768px) { .chat-sidebar { position: fixed; left: -300px; top: 80px; height: calc(100vh - 80px); z-index: 1000; } .chat-sidebar.show { left: 0; } .chat-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 999; display: none; } .chat-overlay.show { display: block; } .mobile-sidebar-toggle { display: block; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-primary); font-size: 1.25rem; } } @media (min-width: 769px) { .mobile-sidebar-toggle { display: none; } } [data-theme="dark"] a{ color: var(--dark-primary) }