Spaces:
Running
Running
File size: 7,680 Bytes
7abca39 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | :root {
--bg-dark: #0f172a;
--surface: rgba(30, 41, 59, 0.7);
--surface-border: rgba(255, 255, 255, 0.1);
--primary: #3b82f6;
--primary-glow: rgba(59, 130, 246, 0.5);
--text-main: #f8fafc;
--text-muted: #94a3b8;
--danger: #ef4444;
--danger-bg: rgba(239, 68, 68, 0.1);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg-dark);
color: var(--text-main);
overflow: hidden;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
/* Background elements */
.glow-orb {
position: absolute;
border-radius: 50%;
filter: blur(80px);
z-index: -1;
opacity: 0.5;
}
.orb-1 { top: -10%; left: -10%; width: 40vw; height: 40vw; background: rgba(59, 130, 246, 0.3); }
.orb-2 { bottom: -20%; right: -10%; width: 50vw; height: 50vw; background: rgba(139, 92, 246, 0.2); }
.orb-3 { top: 40%; left: 40%; width: 30vw; height: 30vw; background: rgba(16, 185, 129, 0.1); }
/* Main Container Layout */
.container {
display: flex;
width: 95vw;
max-width: 1400px;
height: 90vh;
background: var(--surface);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid var(--surface-border);
border-radius: 20px;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
overflow: hidden;
}
/* LEFT PANEL */
.info-panel {
flex: 0 0 400px;
border-right: 1px solid var(--surface-border);
padding: 2rem;
display: flex;
flex-direction: column;
overflow-y: auto;
background: rgba(15, 23, 42, 0.4);
}
.logo-area {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 2rem;
}
.logo-area i { font-size: 2rem; color: var(--primary); }
.logo-area h2 { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.5px; position: relative;}
.beta-badge {
position: absolute; top: -10px; right: -40px;
background: var(--danger); font-size: 0.6rem; padding: 2px 6px; border-radius: 4px; font-weight: bold;
}
.hero-claims h1 {
font-size: 2.2rem;
line-height: 1.1;
margin-bottom: 0.5rem;
background: linear-gradient(to right, #60a5fa, #a78bfa);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero-claims i { font-style: italic; }
.sub-hero { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.5; }
.claims-list { list-style: none; margin-bottom: 2rem; }
.claims-list li {
display: flex; gap: 1rem; margin-bottom: 1.5rem;
}
.claim-icon {
width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.05);
display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #60a5fa; flex-shrink: 0;
}
.claim-text strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; color: #e2e8f0; }
.claim-text span { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; display: block; }
/* Config Section */
.config-card {
background: rgba(0,0,0,0.2); border: 1px solid var(--surface-border); border-radius: 12px; padding: 1.5rem; margin-top: auto;
}
.config-card h3 { font-size: 0.9rem; margin-bottom: 1rem; color: #cbd5e1; display: flex; align-items: center; gap: 8px;}
.alert-box {
display: flex; gap: 10px; padding: 12px; border-radius: 8px; font-size: 0.75rem; line-height: 1.4; margin-bottom: 1rem;
}
.alert-box.warning { background: var(--danger-bg); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }
.alert-box i { font-size: 1rem; }
.input-group { margin-bottom: 1rem; }
.input-group label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;}
.input-group label .req { color: var(--danger); }
.input-group input {
width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--surface-border); border-radius: 6px;
padding: 10px 12px; color: var(--text-main); font-family: monospace; font-size: 0.85rem; outline: none; transition: 0.2s;
}
.input-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-glow); }
/* RIGHT PANEL: CHAT */
.chat-container { flex: 1; display: flex; flex-direction: column; position: relative; }
.chat-header {
height: 70px; border-bottom: 1px solid var(--surface-border); display: flex; justify-content: space-between; align-items: center; padding: 0 2rem;
background: rgba(255,255,255,0.02);
}
.header-title { font-weight: 600; font-size: 1.1rem; display: flex; align-items: center; gap: 10px;}
.header-title i { color: #a78bfa; }
.status-indicator { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.offline { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.dot.online { background: #10b981; box-shadow: 0 0 8px #10b981; }
.chat-bubbles { flex: 1; padding: 2rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1.5rem; }
.bubble { display: flex; gap: 1rem; max-width: 85%; }
.bubble.assistant { align-self: flex-start; }
.bubble.user { align-self: flex-end; flex-direction: row-reverse; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.assistant .avatar { background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: white; }
.user .avatar { background: rgba(255,255,255,0.1); color: #cbd5e1; }
.message {
padding: 1rem 1.2rem; border-radius: 12px; font-size: 0.95rem; line-height: 1.6;
}
.assistant .message { background: rgba(255,255,255,0.03); border: 1px solid var(--surface-border); border-top-left-radius: 2px;}
.user .message { background: var(--primary); color: white; border-top-right-radius: 2px;}
.message p { margin-bottom: 0.5rem; }
.message p:last-child { margin-bottom: 0; }
.message pre { background: rgba(0,0,0,0.3); padding: 1rem; border-radius: 8px; overflow-x: auto; margin: 10px 0; border: 1px solid rgba(255,255,255,0.1); }
.message code { font-family: monospace; font-size: 0.85em; }
/* Input Area */
.chat-input-area {
padding: 1.5rem 2rem; border-top: 1px solid var(--surface-border); background: rgba(15, 23, 42, 0.6);
}
#chat-form {
display: flex; gap: 1rem; background: rgba(0,0,0,0.2); border: 1px solid var(--surface-border); padding: 0.5rem; border-radius: 12px; align-items: flex-end;
}
#chat-form:focus-within { border-color: rgba(96, 165, 250, 0.5); }
textarea {
flex: 1; background: transparent; border: none; color: white; font-family: inherit; font-size: 0.95rem; padding: 0.8rem; resize: none; outline: none; max-height: 150px; line-height: 1.5;
}
#send-btn {
width: 44px; height: 44px; border-radius: 10px; border: none; background: var(--primary); color: white; font-size: 1.1rem; cursor: pointer; transition: 0.2s; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
#send-btn:hover:not(:disabled) { background: #2563eb; transform: translateY(-1px); }
#send-btn:disabled { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.3); cursor: not-allowed; }
/* Responsive */
@media (max-width: 900px) {
.container { flex-direction: column; }
.info-panel { flex: none; height: 40vh; border-right: none; border-bottom: 1px solid var(--surface-border); padding: 1.5rem;}
.hero-claims { display: none; } /* Hide claims on small mobile space */
}
|