Create src/App.css
Browse files- src/App.css +44 -0
src/App.css
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
:root {
|
| 2 |
+
--bg-main: #0f172a;
|
| 3 |
+
--bg-sidebar: #1e293b;
|
| 4 |
+
--bg-chat: #0b1120;
|
| 5 |
+
--text-main: #e2e8f0;
|
| 6 |
+
--accent: #3b82f6;
|
| 7 |
+
--accent-hover: #2563eb;
|
| 8 |
+
--user-msg: #3b82f6;
|
| 9 |
+
--bot-msg: #1e293b;
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
| 13 |
+
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--bg-main); color: var(--text-main); height: 100vh; display: flex; }
|
| 14 |
+
|
| 15 |
+
.app-container { display: flex; width: 100%; height: 100%; }
|
| 16 |
+
|
| 17 |
+
/* Sidebar */
|
| 18 |
+
.sidebar { width: 280px; background: var(--bg-sidebar); padding: 20px; display: flex; flex-direction: column; border-left: 1px solid #334155; }
|
| 19 |
+
.sidebar h1 { color: var(--accent); margin-bottom: 5px; }
|
| 20 |
+
.sidebar h3 { color: #94a3b8; margin-bottom: 30px; font-weight: normal; }
|
| 21 |
+
.sidebar select { width: 100%; padding: 10px; background: #334155; color: white; border: none; border-radius: 8px; margin-bottom: 20px; outline: none; }
|
| 22 |
+
.sidebar button { padding: 12px; background: #334155; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 16px; transition: 0.2s; }
|
| 23 |
+
.sidebar button:hover { background: #475569; }
|
| 24 |
+
|
| 25 |
+
/* Chat Area */
|
| 26 |
+
.chat-area { flex: 1; display: flex; flex-direction: column; background: var(--bg-chat); }
|
| 27 |
+
.chat-header { padding: 20px; text-align: center; border-bottom: 1px solid #334155; background: var(--bg-main); }
|
| 28 |
+
.messages-container { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
|
| 29 |
+
|
| 30 |
+
/* Messages */
|
| 31 |
+
.message { max-width: 75%; padding: 15px; border-radius: 15px; line-height: 1.6; position: relative; }
|
| 32 |
+
.message.user { align-self: flex-end; background: var(--user-msg); color: white; border-bottom-left-radius: 2px; }
|
| 33 |
+
.message.bot { align-self: flex-start; background: var(--bot-msg); color: var(--text-main); border: 1px solid #334155; border-bottom-right-radius: 2px; }
|
| 34 |
+
|
| 35 |
+
/* Thinking Block */
|
| 36 |
+
.thinking-block { background: #0f172a; border: 1px dashed #475569; padding: 10px; border-radius: 8px; margin-bottom: 10px; font-size: 0.9em; color: #94a3b8; }
|
| 37 |
+
.thinking-toggle { cursor: pointer; color: var(--accent); font-weight: bold; display: flex; align-items: center; gap: 5px; }
|
| 38 |
+
|
| 39 |
+
/* Input Area */
|
| 40 |
+
.input-area { padding: 20px; background: var(--bg-main); border-top: 1px solid #334155; display: flex; gap: 10px; }
|
| 41 |
+
.input-area input { flex: 1; padding: 15px; background: #1e293b; color: white; border: 1px solid #334155; border-radius: 12px; font-size: 16px; outline: none; }
|
| 42 |
+
.input-area input:focus { border-color: var(--accent); }
|
| 43 |
+
.input-area button { padding: 0 25px; background: var(--accent); color: white; border: none; border-radius: 12px; font-size: 16px; cursor: pointer; font-weight: bold; transition: 0.2s; }
|
| 44 |
+
.input-area button:hover { background: var(--accent-hover); }
|