shashankmacherla's picture
Upload full llm_project
6d5c79f verified
Raw History Blame Contribute Delete
3.05 kB
:root {
--bg: #0d1117;
--panel: #161b22;
--border: #30363d;
--text: #e6edf3;
--muted: #8b949e;
--accent: #58a6ff;
--user-bg: #1f6feb;
--bot-bg: #21262d;
--success: #3fb950;
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
background: var(--bg);
color: var(--text);
height: 100vh;
display: flex;
flex-direction: column;
}
header {
padding: 12px 24px;
background: var(--panel);
border-bottom: 1px solid var(--border);
display: flex;
justify-content: space-between;
align-items: center;
}
header h1 { margin: 0; font-size: 18px; }
#status { color: var(--muted); font-size: 13px; }
main {
flex: 1;
display: grid;
grid-template-columns: 1fr 320px;
overflow: hidden;
}
#chat-panel {
display: flex;
flex-direction: column;
padding: 16px;
overflow: hidden;
}
#chat {
flex: 1;
overflow-y: auto;
padding-right: 8px;
}
.msg {
padding: 10px 14px;
border-radius: 10px;
margin-bottom: 10px;
max-width: 85%;
white-space: pre-wrap;
word-wrap: break-word;
line-height: 1.5;
}
.user {
background: var(--user-bg);
margin-left: auto;
}
.bot {
background: var(--bot-bg);
border: 1px solid var(--border);
}
.bot .label { color: var(--accent); font-size: 12px; margin-bottom: 4px; display: block; }
form {
margin-top: 12px;
display: flex;
flex-direction: column;
gap: 8px;
}
textarea {
background: var(--panel);
color: var(--text);
border: 1px solid var(--border);
border-radius: 8px;
padding: 10px;
font-family: inherit;
font-size: 14px;
resize: vertical;
}
.controls {
display: flex;
gap: 12px;
align-items: center;
flex-wrap: wrap;
}
.controls label {
font-size: 12px;
color: var(--muted);
display: flex;
flex-direction: column;
gap: 4px;
}
.controls input {
width: 70px;
background: var(--panel);
color: var(--text);
border: 1px solid var(--border);
border-radius: 6px;
padding: 6px;
}
button {
margin-left: auto;
padding: 10px 20px;
background: var(--accent);
color: var(--bg);
border: none;
border-radius: 6px;
font-weight: 600;
cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }
#sidebar {
background: var(--panel);
border-left: 1px solid var(--border);
padding: 16px;
overflow-y: auto;
font-size: 13px;
}
#sidebar h2 {
font-size: 13px;
text-transform: uppercase;
color: var(--muted);
letter-spacing: 0.05em;
margin: 16px 0 8px;
}
#sidebar h2:first-child { margin-top: 0; }
pre {
background: var(--bg);
padding: 10px;
border-radius: 6px;
font-size: 12px;
overflow-x: auto;
margin: 0;
}
#sidebar ul { list-style: none; padding: 0; margin: 0; }
#sidebar li { margin: 6px 0; }
#sidebar a { color: var(--accent); text-decoration: none; }
#sidebar a:hover { text-decoration: underline; }
.dot {
width: 8px; height: 8px; border-radius: 50%;
display: inline-block; margin-right: 6px;
}
.dot.ok { background: var(--success); }
.dot.cpu { background: #d29922; }