mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-23 21:06:50 +00:00
1235 lines
20 KiB
CSS
1235 lines
20 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
:root {
|
|
--bg-primary: #ffffff;
|
|
--bg-secondary: #f8f9fa;
|
|
--bg-tertiary: #f1f3f5;
|
|
--text-primary: #212529;
|
|
--text-secondary: #6c757d;
|
|
--text-tertiary: #adb5bd;
|
|
--border-color: #e9ecef;
|
|
--accent: #228be6;
|
|
--accent-light: #e7f5ff;
|
|
--success: #40c057;
|
|
--error: #fa5252;
|
|
--warning: #fab005;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
font-family:
|
|
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
sans-serif;
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.app {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
/* Header */
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
background: var(--bg-primary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.logo {
|
|
width: 24px;
|
|
height: 24px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.title {
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.logo img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.icon-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: none;
|
|
background: transparent;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
color: var(--text-secondary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.icon-btn:hover {
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Settings Panel */
|
|
.settings-panel {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
width: 100%;
|
|
max-width: 320px;
|
|
height: 100%;
|
|
background: var(--bg-primary);
|
|
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
|
|
z-index: 100;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transform: translateX(0);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.settings-panel.hidden {
|
|
transform: translateX(100%);
|
|
}
|
|
|
|
.settings-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.settings-header h2 {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.settings-content {
|
|
flex: 1;
|
|
padding: 16px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.setting-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.setting-group label {
|
|
display: block;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.connection-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--error);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.status-dot.connected {
|
|
background: var(--success);
|
|
}
|
|
|
|
.connection-row span:not(.status-dot) {
|
|
flex: 1;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.input {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.input:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.current-page {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
word-break: break-all;
|
|
padding: 10px 12px;
|
|
background: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
padding: 8px 14px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #1c7ed6;
|
|
}
|
|
|
|
.btn-primary.connected {
|
|
background: var(--text-tertiary);
|
|
}
|
|
|
|
/* Chat Area */
|
|
.chat-area {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.messages-container {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 16px;
|
|
}
|
|
|
|
.welcome-message {
|
|
text-align: center;
|
|
padding: 30px 16px;
|
|
}
|
|
|
|
.welcome-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
margin-bottom: 12px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.welcome-icon img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.welcome-message h3 {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.welcome-message p {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.suggestions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.suggestion-chip {
|
|
padding: 6px 10px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 14px;
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.suggestion-chip:hover {
|
|
background: var(--accent-light);
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* Message Bubbles */
|
|
.message {
|
|
margin-bottom: 12px;
|
|
animation: fadeInUp 0.3s ease;
|
|
}
|
|
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.message-user {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.message-user .message-content {
|
|
background: var(--accent);
|
|
color: white;
|
|
border-radius: 14px 14px 4px 14px;
|
|
padding: 10px 12px;
|
|
max-width: 85%;
|
|
}
|
|
|
|
.message-agent {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.message-agent .message-content {
|
|
background: var(--bg-secondary);
|
|
border-radius: 14px 14px 14px 4px;
|
|
padding: 14px;
|
|
max-width: 95%;
|
|
width: 100%;
|
|
}
|
|
|
|
.message-text {
|
|
font-size: 13px;
|
|
line-height: 1.65;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Streaming text */
|
|
.response-shell {
|
|
display: none;
|
|
margin-top: 12px;
|
|
padding: 12px 13px;
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(34, 139, 230, 0.12);
|
|
background: linear-gradient(
|
|
180deg,
|
|
rgba(255, 255, 255, 0.96),
|
|
rgba(231, 245, 255, 0.55)
|
|
);
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.response-shell.visible {
|
|
display: block;
|
|
}
|
|
|
|
.response-label {
|
|
margin-bottom: 8px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.streaming-text {
|
|
font-size: 13px;
|
|
line-height: 1.65;
|
|
word-break: break-word;
|
|
display: block;
|
|
}
|
|
|
|
.response-shell.visible .streaming-text:not(:empty) {
|
|
display: block;
|
|
}
|
|
|
|
/* Typing cursor animation for streaming */
|
|
.streaming-text:not(.finalized)::after {
|
|
content: '▋';
|
|
animation: blink 1s step-end infinite;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.streaming-text h1,
|
|
.streaming-text h2,
|
|
.streaming-text h3,
|
|
.streaming-text h4,
|
|
.streaming-text h5,
|
|
.streaming-text h6 {
|
|
margin: 0 0 10px;
|
|
line-height: 1.35;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.streaming-text h1 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.streaming-text h2 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.streaming-text h3 {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.streaming-text p {
|
|
margin: 0 0 10px;
|
|
}
|
|
|
|
.streaming-text p:last-child,
|
|
.streaming-text ul:last-child,
|
|
.streaming-text ol:last-child,
|
|
.streaming-text pre:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.streaming-text ul,
|
|
.streaming-text ol {
|
|
margin: 0 0 10px 18px;
|
|
padding: 0;
|
|
}
|
|
|
|
.streaming-text li {
|
|
margin: 0 0 6px;
|
|
}
|
|
|
|
.streaming-text a {
|
|
color: #1c7ed6;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.streaming-text a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.streaming-text code {
|
|
padding: 1px 5px;
|
|
border-radius: 6px;
|
|
background: rgba(33, 37, 41, 0.08);
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.streaming-text pre {
|
|
margin: 0 0 10px;
|
|
padding: 10px 12px;
|
|
border-radius: 10px;
|
|
background: rgba(15, 23, 42, 0.92);
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.streaming-text pre code {
|
|
padding: 0;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
color: #f8f9fa;
|
|
font-size: 12px;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
@keyframes blink {
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
/* Actions Container - Collapsible */
|
|
.actions-container {
|
|
margin-top: 10px;
|
|
border: 1px solid rgba(33, 37, 41, 0.08);
|
|
border-radius: 12px;
|
|
background: rgba(255, 255, 255, 0.92);
|
|
box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
|
|
display: none; /* Hidden by default, shown when first action is added */
|
|
}
|
|
|
|
.actions-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 10px 12px;
|
|
background: linear-gradient(
|
|
180deg,
|
|
rgba(255, 255, 255, 0.95),
|
|
rgba(241, 243, 245, 0.95)
|
|
);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.actions-header:hover {
|
|
background: linear-gradient(
|
|
180deg,
|
|
rgba(255, 255, 255, 1),
|
|
rgba(233, 236, 239, 0.95)
|
|
);
|
|
}
|
|
|
|
.actions-header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.actions-status-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.actions-status-icon.running {
|
|
color: var(--accent);
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
.actions-status-icon.success {
|
|
color: var(--success);
|
|
}
|
|
|
|
.actions-status-icon.error {
|
|
color: var(--error);
|
|
}
|
|
|
|
@keyframes spin {
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.actions-title {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.actions-count {
|
|
font-size: 11px;
|
|
color: var(--text-tertiary);
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.actions-toggle {
|
|
width: 20px;
|
|
height: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-tertiary);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.actions-container.expanded .actions-toggle {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
/* Actions Body */
|
|
.actions-body {
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: max-height 0.3s ease-out;
|
|
}
|
|
|
|
.actions-container.expanded .actions-body {
|
|
max-height: 200px;
|
|
overflow-y: auto !important;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* Scrollbar for actions list */
|
|
.actions-body::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.actions-body::-webkit-scrollbar-track {
|
|
background: var(--bg-tertiary);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.actions-body::-webkit-scrollbar-thumb {
|
|
background: var(--text-tertiary);
|
|
border-radius: 3px;
|
|
min-height: 30px;
|
|
}
|
|
|
|
.actions-body::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-secondary);
|
|
}
|
|
|
|
.actions-list {
|
|
padding: 10px 12px 12px;
|
|
min-height: fit-content;
|
|
}
|
|
|
|
/* Current Action Display (when collapsed) */
|
|
.current-action-display {
|
|
padding: 10px 12px;
|
|
border-top: 1px solid rgba(33, 37, 41, 0.06);
|
|
background: rgba(248, 249, 250, 0.78);
|
|
position: relative;
|
|
overflow: hidden;
|
|
min-height: 38px;
|
|
}
|
|
|
|
.current-action-display:empty {
|
|
display: none;
|
|
}
|
|
|
|
.actions-container.expanded .current-action-display {
|
|
display: none;
|
|
}
|
|
|
|
.current-action {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
animation: slideIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.current-action-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.current-action-icon.running {
|
|
color: var(--accent);
|
|
animation: pulse 1.5s ease infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0.4;
|
|
}
|
|
}
|
|
|
|
.current-action-icon.success {
|
|
color: var(--success);
|
|
}
|
|
|
|
.current-action-icon.error {
|
|
color: var(--error);
|
|
}
|
|
|
|
.current-action-icon svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
.current-action-copy {
|
|
display: flex;
|
|
flex: 1;
|
|
min-width: 0;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.current-action-text {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
flex: 1;
|
|
white-space: normal;
|
|
overflow: hidden;
|
|
text-overflow: unset;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.current-action-subtext {
|
|
font-size: 10px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.4;
|
|
white-space: normal;
|
|
}
|
|
|
|
/* Previous action fade effect */
|
|
.previous-action {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 8px 10px;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
animation: fadeOut 0.3s ease forwards;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.previous-action .current-action-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.previous-action .current-action-text {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.previous-action .current-action-subtext {
|
|
font-size: 10px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
@keyframes fadeOut {
|
|
from {
|
|
opacity: 0.6;
|
|
transform: translateY(0);
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
}
|
|
|
|
/* Action Step in expanded list */
|
|
.action-step {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
padding: 8px 0;
|
|
border-bottom: 1px solid rgba(33, 37, 41, 0.06);
|
|
}
|
|
|
|
.action-step:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.action-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
margin-top: 1px;
|
|
}
|
|
|
|
.action-icon.pending {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.action-icon.running {
|
|
background: var(--accent-light);
|
|
color: var(--accent);
|
|
animation: pulse 1.5s ease infinite;
|
|
}
|
|
|
|
.action-icon.success {
|
|
background: #d3f9d8;
|
|
color: var(--success);
|
|
}
|
|
|
|
.action-icon.error {
|
|
background: #ffe3e3;
|
|
color: var(--error);
|
|
}
|
|
|
|
.action-icon svg {
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
|
|
.action-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.action-name-row {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
}
|
|
|
|
.action-name {
|
|
font-size: 11px;
|
|
line-height: 1.45;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
min-width: 0;
|
|
}
|
|
|
|
.action-time {
|
|
font-size: 10px;
|
|
color: var(--text-tertiary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.action-detail {
|
|
margin-top: 3px;
|
|
font-size: 10px;
|
|
line-height: 1.45;
|
|
color: var(--text-secondary);
|
|
white-space: normal;
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Typing Indicator */
|
|
.typing-indicator {
|
|
display: flex;
|
|
gap: 4px;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.typing-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
background: var(--text-tertiary);
|
|
border-radius: 50%;
|
|
animation: typingBounce 1.4s ease infinite;
|
|
}
|
|
|
|
.typing-dot:nth-child(2) {
|
|
animation-delay: 0.2s;
|
|
}
|
|
.typing-dot:nth-child(3) {
|
|
animation-delay: 0.4s;
|
|
}
|
|
|
|
@keyframes typingBounce {
|
|
0%,
|
|
60%,
|
|
100% {
|
|
transform: translateY(0);
|
|
}
|
|
30% {
|
|
transform: translateY(-3px);
|
|
}
|
|
}
|
|
|
|
/* Input Area */
|
|
.input-area {
|
|
padding: 12px 16px 16px;
|
|
border-top: 1px solid var(--border-color);
|
|
background: var(--bg-primary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.input-wrapper {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 8px;
|
|
background: var(--bg-secondary);
|
|
border-radius: 18px;
|
|
padding: 4px 4px 4px 14px;
|
|
border: 1px solid var(--border-color);
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.input-wrapper:focus-within {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
#messageInput {
|
|
flex: 1;
|
|
border: none;
|
|
background: transparent;
|
|
font-size: 13px;
|
|
line-height: 1.4;
|
|
resize: none;
|
|
max-height: 80px;
|
|
padding: 6px 0;
|
|
font-family: inherit;
|
|
}
|
|
|
|
#messageInput:focus {
|
|
outline: none;
|
|
}
|
|
|
|
#messageInput::placeholder {
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.send-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: none;
|
|
background: var(--accent);
|
|
border-radius: 50%;
|
|
color: white;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.send-btn:hover:not(:disabled) {
|
|
background: #1c7ed6;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.send-btn:disabled {
|
|
background: var(--text-tertiary);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.send-btn svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.send-btn.stop-mode {
|
|
background: var(--error);
|
|
}
|
|
|
|
.send-btn.stop-mode:hover:not(:disabled) {
|
|
background: #e03131;
|
|
}
|
|
|
|
.status-hint {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-size: 11px;
|
|
color: var(--text-tertiary);
|
|
padding: 3px 8px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--border-color);
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.hint-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--error);
|
|
}
|
|
|
|
.status-hint.connected .hint-dot {
|
|
background: var(--success);
|
|
}
|
|
|
|
.status-hint.connected {
|
|
color: var(--success);
|
|
border-color: var(--success);
|
|
}
|
|
|
|
/* Scrollbar */
|
|
::-webkit-scrollbar {
|
|
width: 5px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border-color);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-tertiary);
|
|
}
|
|
|
|
/* Debug Mode Toggle */
|
|
.debug-toggle-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.toggle-switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 44px;
|
|
height: 24px;
|
|
}
|
|
|
|
.toggle-switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.toggle-slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: var(--border-color);
|
|
transition: 0.3s;
|
|
border-radius: 24px;
|
|
}
|
|
|
|
.toggle-slider:before {
|
|
position: absolute;
|
|
content: '';
|
|
height: 18px;
|
|
width: 18px;
|
|
left: 3px;
|
|
bottom: 3px;
|
|
background-color: white;
|
|
transition: 0.3s;
|
|
border-radius: 50%;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.toggle-switch input:checked + .toggle-slider {
|
|
background-color: var(--accent);
|
|
}
|
|
|
|
.toggle-switch input:checked + .toggle-slider:before {
|
|
transform: translateX(20px);
|
|
}
|
|
|
|
/* Debug Panel */
|
|
.debug-panel {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 50%;
|
|
background: var(--bg-primary);
|
|
border-top: 1px solid var(--border-color);
|
|
box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
|
|
z-index: 99;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transform: translateY(0);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.debug-panel.hidden {
|
|
transform: translateY(100%);
|
|
}
|
|
|
|
.debug-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 8px 12px;
|
|
background: var(--bg-tertiary);
|
|
border-bottom: 1px solid var(--border-color);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.debug-title {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.debug-title::before {
|
|
content: '';
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
background: var(--warning);
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.debug-content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.debug-output {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 12px;
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 11px;
|
|
line-height: 1.5;
|
|
background: #1e1e1e;
|
|
color: #d4d4d4;
|
|
}
|
|
|
|
.debug-welcome {
|
|
color: var(--text-tertiary);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.debug-welcome p {
|
|
margin-bottom: 8px;
|
|
color: #569cd6;
|
|
}
|
|
|
|
.debug-welcome ul {
|
|
list-style: none;
|
|
padding-left: 0;
|
|
}
|
|
|
|
.debug-welcome li {
|
|
margin-bottom: 4px;
|
|
color: #9cdcfe;
|
|
}
|
|
|
|
.debug-welcome code {
|
|
background: #333;
|
|
padding: 1px 4px;
|
|
border-radius: 3px;
|
|
color: #ce9178;
|
|
}
|
|
|
|
.debug-line {
|
|
margin-bottom: 4px;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.debug-line.command {
|
|
color: #4ec9b0;
|
|
}
|
|
|
|
.debug-line.command::before {
|
|
content: '> ';
|
|
color: #6a9955;
|
|
}
|
|
|
|
.debug-line.result {
|
|
color: #d4d4d4;
|
|
padding-left: 12px;
|
|
}
|
|
|
|
.debug-line.error {
|
|
color: #f14c4c;
|
|
}
|
|
|
|
.debug-line.success {
|
|
color: #4ec9b0;
|
|
}
|
|
|
|
.debug-line.info {
|
|
color: #569cd6;
|
|
}
|
|
|
|
.debug-input-area {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
background: var(--bg-secondary);
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.debug-input {
|
|
flex: 1;
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.debug-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.debug-send-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: none;
|
|
background: var(--warning);
|
|
border-radius: 6px;
|
|
color: white;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.debug-send-btn:hover {
|
|
background: #e09f00;
|
|
}
|
|
|
|
.debug-send-btn:disabled {
|
|
background: var(--text-tertiary);
|
|
cursor: not-allowed;
|
|
}
|