Files
connectai/media/sidebar.css
T
2026-05-11 12:44:38 +09:00

729 lines
26 KiB
CSS

:root {
--bg: #0d1117;
--bg-secondary: #0d1117;
--surface: #161b22;
--border: #30363d;
--border-bright: #484f58;
--text-primary: #c9d1d9;
--text-bright: #ffffff;
--text-dim: #8b949e;
--accent: #58a6ff;
--accent-glow: rgba(88, 166, 255, 0.15);
--success: #238636;
--warning: #d29922;
--error: #f85149;
--code-bg: #161b22;
--table-header-bg: #161b22;
--table-row-hover: #21262d;
--input-bg: #0d1117;
--control-bg: #161b22;
--control-bg-hover: #21262d;
--control-active-bg: rgba(88, 166, 255, 0.14);
--shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.18);
}
body.vscode-light {
--bg: #ffffff;
--bg-secondary: #f6f8fa;
--surface: #ffffff;
--border: #d0d7de;
--border-bright: #afb8c1;
--text-primary: #24292f;
--text-bright: #111118;
--text-dim: #57606a;
--accent: #0969da;
--accent-glow: rgba(9, 105, 218, 0.1);
--success: #1a7f37;
--warning: #9a6700;
--error: #cf222e;
--code-bg: #f6f8fa;
--table-header-bg: #f6f8fa;
--table-row-hover: #f3f4f6;
--input-bg: #ffffff;
--control-bg: #ffffff;
--control-bg-hover: #f6f8fa;
--control-active-bg: rgba(9, 105, 218, 0.1);
--shadow-soft: 0 8px 20px rgba(31, 35, 40, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
height: 100%;
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Helvetica, Arial, sans-serif;
font-size: 13px;
line-height: 1.6;
background: var(--bg);
color: var(--text-primary);
display: flex;
flex-direction: column;
overflow: hidden;
}
/* --- Header --- */
.header {
display: flex;
flex-direction: column;
background: var(--bg-secondary);
border-bottom: 1px solid var(--border);
flex-shrink: 0;
z-index: 100;
}
.header-top {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 12px 6px;
gap: 10px;
}
.header-controls {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 8px;
padding: 0 12px 12px;
}
.header-actions,
.tool-group,
.select-stack,
.select-line,
.status-pill {
display: flex;
align-items: center;
}
.header-actions { gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.tool-group {
gap: 4px;
padding: 3px;
border: 1px solid var(--border);
border-radius: 8px;
background: rgba(255, 255, 255, 0.02);
}
.select-stack { flex-direction: column; gap: 6px; min-width: 0; }
.select-line { gap: 6px; width: 100%; min-width: 0; }
.paired-row {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 8px;
width: 100%;
align-items: center;
}
.control-row {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 6px;
width: 100%;
align-items: center;
}
.record-row {
grid-template-columns: auto minmax(0, 1fr) auto;
}
.brand { font-weight: 700; font-size: 14px; color: var(--text-bright); letter-spacing: 0; display: flex; align-items: center; gap: 8px; min-width: 0; }
.logo { width: 22px; height: 22px; background: var(--accent); color: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; }
.status-pill {
height: 28px;
gap: 6px;
padding: 0 9px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--control-bg);
color: var(--text-dim);
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
flex-shrink: 0;
}
.status-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--text-dim);
box-shadow: 0 0 0 2px rgba(139, 148, 158, 0.12);
flex-shrink: 0;
}
.status-dot.ready {
background: #3fb950;
box-shadow: 0 0 0 2px rgba(63, 185, 80, 0.16);
}
.chat {
flex: 1;
overflow-y: auto;
padding: 16px 14px;
display: flex;
flex-direction: column;
gap: 24px;
scroll-behavior: smooth;
}
/* --- Messages --- */
.msg {
display: flex;
flex-direction: column;
gap: 8px;
position: relative;
animation: msgIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.msg-user {
align-items: flex-end;
}
.msg-ai {
align-items: flex-start;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.msg-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 11px; color: var(--text-dim); }
.msg-user .msg-head { flex-direction: row-reverse; }
.av { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
/* Tooltip System */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
content: attr(data-tooltip);
position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
background: #333; color: #fff; padding: 4px 8px; border-radius: 4px;
font-size: 10px; white-space: nowrap; opacity: 0; pointer-events: none;
transition: all 0.2s ease; z-index: 100; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
[data-tooltip]:hover::after { opacity: 1; bottom: -35px; }
#input::placeholder { color: var(--accent); opacity: 0.6; font-weight: 500; }
.msg-body {
color: var(--text-primary);
font-size: 13.5px;
word-break: break-word;
max-width: min(88%, 760px);
}
.msg-user .msg-body {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
padding: 10px 14px;
white-space: pre-wrap;
text-align: left;
}
.msg-ai .msg-body {
padding-left: 30px;
width: 100%;
max-width: 100%;
}
/* --- Markdown Style --- */
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
color: var(--text-bright);
margin: 1.5em 0 0.8em;
font-weight: 600;
line-height: 1.3;
}
.markdown-body h1 { font-size: 1.5em; border-bottom: 1px solid var(--border); padding-bottom: 0.3em; color: var(--accent); }
.markdown-body h2 { font-size: 1.45em; border-bottom: 1px solid var(--border); padding-bottom: 0.3em; }
.markdown-body h3 { font-size: 1.2em; }
.markdown-body p { margin: 0.75em 0 1.1em; }
.markdown-body ol, .markdown-body ul { margin: 0.7em 0 1.1em; padding-left: 1.45em; }
.markdown-body li { margin: 0.35em 0 0.65em; }
.markdown-body li + li { margin-top: 0.55em; }
.markdown-body table {
width: 100%;
border-collapse: collapse;
margin: 1.2em 0;
font-size: 12px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
overflow: hidden;
}
.markdown-body th { background: var(--table-header-bg); color: var(--accent); font-weight: 600; text-align: left; padding: 10px 12px; border: 1px solid var(--border); }
.markdown-body td { padding: 8px 12px; border: 1px solid var(--border); color: var(--text-primary); }
.markdown-body tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.markdown-body pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px; overflow-x: auto; margin: 12px 0; }
.markdown-body code { font-family: 'SF Mono', monospace; font-size: 11.5px; background: rgba(175, 184, 193, 0.2); padding: 0.2em 0.4em; border-radius: 4px; }
/* --- UI Elements --- */
.msg-actions {
position: absolute; bottom: -12px; right: 0; display: flex; gap: 4px; opacity: 0; transition: 0.2s; z-index: 20;
}
.msg:hover .msg-actions { opacity: 1; }
.action-btn {
background: var(--bg-secondary); border: 1px solid var(--border);
color: var(--text-dim); padding: 4px 10px; border-radius: 6px; font-size: 10px; cursor: pointer; transition: 0.2s;
display: flex; align-items: center; gap: 4px;
}
.action-btn:hover { color: var(--text-bright); border-color: var(--accent); background: var(--accent-glow); }
.icon-btn {
background: var(--control-bg);
border: 1px solid var(--border);
color: var(--text-dim);
min-width: 28px;
height: 28px;
padding: 0 8px;
border-radius: 6px;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
font-size: 12px;
font-weight: 700;
line-height: 1;
flex: 0 0 auto;
}
.icon-btn:hover { color: var(--text-bright); border-color: var(--border-bright); background: var(--control-bg-hover); box-shadow: var(--shadow-soft); }
.icon-btn.active { color: var(--accent); border-color: var(--accent); background: var(--control-active-bg); }
.select-wrap {
position: relative;
min-width: 0;
flex: 1 1 0;
}
.select-wrap::after {
content: '';
position: absolute;
right: 10px;
top: 50%;
width: 6px;
height: 6px;
border-right: 1.5px solid var(--text-dim);
border-bottom: 1.5px solid var(--text-dim);
transform: translateY(-65%) rotate(45deg);
pointer-events: none;
}
select {
width: 100%;
min-width: 0;
height: 30px;
background: var(--control-bg);
color: var(--text-primary);
border: 1px solid var(--border);
padding: 0 28px 0 10px;
border-radius: 6px;
font-size: 11px;
font-weight: 600;
cursor: pointer;
outline: none;
appearance: none;
transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
select:hover { border-color: var(--border-bright); background: var(--control-bg-hover); }
select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
/* --- Input & Attachments --- */
.input-wrap {
padding: 12px 14px 16px; background: var(--bg); border-top: 1px solid var(--border); flex-shrink: 0;
}
.input-box {
background: var(--input-bg); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px;
display: flex; flex-direction: column; gap: 8px; transition: 0.2s;
position: relative; /* Toast 위치 앙커 */
}
.input-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
textarea {
width: 100%; background: transparent; border: none; color: var(--text-bright);
font-family: inherit; font-size: 13.5px; resize: none; outline: none; min-height: 24px; max-height: 160px;
}
.attachment-preview {
display: none; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.attachment-preview.visible { display: flex; }
.file-chip {
display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border);
padding: 4px 8px; border-radius: 6px; font-size: 11px; color: var(--text-primary);
}
.file-chip .remove { cursor: pointer; color: var(--text-dim); }
.file-chip .remove:hover { color: var(--error); }
.input-footer { display: flex; align-items: center; justify-content: space-between; }
.footer-left { display: flex; align-items: center; gap: 8px; }
.send-btn {
background: var(--accent); color: #fff; border: none; padding: 6px 14px; border-radius: 6px;
font-weight: 600; font-size: 12px; cursor: pointer;
}
.send-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.footer-right { display: flex; align-items: center; gap: 6px; }
.cancel-btn {
background: transparent; color: var(--text-dim); border: 1px solid var(--border);
padding: 6px 10px; border-radius: 6px; font-weight: 600; font-size: 11px;
cursor: pointer; align-items: center; gap: 4px; transition: all 0.15s ease;
}
.cancel-btn:hover { background: rgba(248, 81, 73, 0.12); color: var(--error); border-color: var(--error); }
.stop-btn {
background: rgba(248, 81, 73, 0.15); color: var(--error); border: 1px solid var(--error);
padding: 6px 14px; border-radius: 6px; font-weight: 700; font-size: 12px;
cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
animation: stopPulse 1.2s ease-in-out infinite;
}
.stop-btn:hover { background: rgba(248, 81, 73, 0.3); }
@keyframes stopPulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(248,81,73,0.4); }
50% { box-shadow: 0 0 0 5px rgba(248,81,73,0); }
}
/* --- Drag and Drop Overlay --- */
body.drag-over::after {
content: '📂 파일을 여기에 놓으세요';
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background: rgba(88, 166, 255, 0.2);
backdrop-filter: blur(4px);
border: 2px dashed var(--accent);
display: flex; align-items: center; justify-content: center;
color: var(--text-bright); font-size: 18px; font-weight: 700;
z-index: 9999; pointer-events: none;
animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* --- Toast Notification --- */
.toast-notif {
position: absolute; bottom: calc(100% + 8px); left: 50%;
transform: translateX(-50%) translateY(4px);
background: var(--surface); border: 1px solid var(--border-bright);
color: var(--text-primary); font-size: 11px; font-weight: 600;
padding: 7px 14px; border-radius: 20px; white-space: nowrap;
opacity: 0; pointer-events: none;
transition: opacity 0.2s ease, transform 0.2s ease;
z-index: 500; box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.toast-notif.toast-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-notif.toast-warn { border-color: var(--error); color: var(--error); background: rgba(248,81,73,0.08); }
.toast-notif.toast-success { border-color: var(--success); color: var(--success); background: rgba(35,134,54,0.08); }
/* --- Overlays & Others --- */
.thinking-bar { height: 2px; background: transparent; position: relative; overflow: hidden; margin-top: -1px; }
.thinking-bar.active {
display: block;
background: linear-gradient(90deg, transparent, #2196f3, #bb86fc, transparent);
background-size: 200% 100%;
animation: thinking 1.5s infinite linear;
}
@keyframes thinking { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.history-overlay {
position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8);
backdrop-filter: blur(10px); z-index: 1000; display: none; flex-direction: column; padding: 20px;
}
.history-overlay.visible { display: flex; }
.stream-active::after {
content: ''; display: inline-block; width: 6px; height: 14px; background: var(--accent);
margin-left: 4px; animation: blink 0.8s step-end infinite; vertical-align: middle;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.welcome { text-align: center; padding: 40px 20px; color: var(--text-dim); }
.welcome-logo { font-size: 48px; color: var(--accent); margin-bottom: 16px; opacity: 0.8; }
.welcome-title { font-size: 20px; font-weight: 700; color: var(--text-bright); margin-bottom: 8px; }
/* --- History List --- */
.history-item {
padding: 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border);
margin-bottom: 10px; cursor: pointer; transition: 0.2s;
}
.history-item:hover { border-color: var(--accent); background: var(--accent-glow); }
/* --- Approval UI --- */
.approval-box {
display: flex;
flex-direction: column;
gap: 12px;
margin: 15px 0;
padding: 16px;
background: var(--bg-secondary);
border: 1px solid var(--border-bright);
border-radius: 12px;
animation: msgIn 0.3s ease-out;
}
.approval-title { font-weight: 700; color: var(--accent); font-size: 12px; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.approval-btns { display: flex; gap: 10px; }
.btn-approve { flex: 1; background: var(--success); color: white; border: none; padding: 10px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 12px; transition: 0.2s; }
.btn-approve:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-reject { flex: 1; background: var(--error); color: white; border: none; padding: 10px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 12px; transition: 0.2s; }
.btn-reject:hover { filter: brightness(1.1); transform: translateY(-1px); }
.panel {
display: none;
flex-direction: column;
gap: 8px;
padding-bottom: 10px;
}
.field-label {
color: var(--text-dim);
font-size: 10px;
font-weight: 700;
line-height: 1.2;
}
.panel textarea {
font-size: 11.5px;
padding: 8px;
border-radius: 8px;
border: 1px solid var(--border);
background: var(--input-bg);
color: var(--text-bright);
width: 100%;
resize: vertical;
font-family: inherit;
outline: none;
}
.panel textarea:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
}
.secondary-btn {
height: 30px;
background: var(--control-bg);
border: 1px solid var(--border);
color: var(--text-primary);
padding: 0 10px;
font-size: 11px;
font-weight: 700;
border-radius: 6px;
cursor: pointer;
}
.secondary-btn:hover {
border-color: var(--accent);
background: var(--control-active-bg);
color: var(--text-bright);
}
/* --- Agent Map Modal --- */
.map-agent-row {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
margin-bottom: 14px;
}
.map-agent-name {
font-size: 13px;
font-weight: 700;
color: var(--text-bright);
}
.map-section {
margin-bottom: 16px;
padding: 12px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 10px;
}
.map-section-head {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12px;
margin-bottom: 10px;
}
.map-section-title {
font-size: 12px;
font-weight: 800;
color: var(--text-bright);
margin-bottom: 4px;
}
.map-section-hint {
font-size: 10.5px;
color: var(--text-dim);
line-height: 1.4;
max-width: 360px;
}
.map-btn-group {
display: flex;
gap: 6px;
flex-shrink: 0;
}
.map-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 6px;
}
.map-list:empty::before {
content: '아직 연결된 항목이 없습니다.';
font-size: 11px;
color: var(--text-dim);
font-style: italic;
padding: 8px 4px;
display: block;
}
.map-item {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
background: var(--input-bg);
border: 1px solid var(--border);
border-radius: 6px;
font-size: 11.5px;
color: var(--text-primary);
}
.map-item-icon {
flex-shrink: 0;
font-size: 13px;
}
.map-item-path {
flex: 1;
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
font-size: 11px;
word-break: break-all;
color: var(--text-bright);
}
.map-item-meta {
font-size: 10px;
color: var(--text-dim);
}
.map-item-remove {
background: transparent;
border: 1px solid var(--border);
color: var(--text-dim);
border-radius: 4px;
padding: 2px 6px;
font-size: 11px;
cursor: pointer;
}
.map-item-remove:hover {
border-color: var(--error);
color: var(--error);
}
.map-footer {
display: flex;
gap: 8px;
align-items: center;
margin-top: 10px;
padding-top: 12px;
border-top: 1px solid var(--border);
}
.map-footer .send-btn {
min-width: 80px;
}
.map-status {
margin-top: 10px;
font-size: 11px;
min-height: 16px;
color: var(--text-dim);
}
.map-status.ok { color: var(--success); }
.map-status.error { color: var(--error); }
/* --- Physics & Micro-interactions --- */
button {
transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
user-select: none;
outline: none;
}
button:active {
transform: scale(0.96);
filter: brightness(0.9);
}
/* --- Hierarchical Grouping --- */
.input-group {
background: rgba(255, 255, 255, 0.02);
border-radius: 12px;
padding: 8px;
margin-top: 10px;
border: 1px solid rgba(255, 255, 255, 0.05);
display: flex;
gap: 8px;
}
/* --- Storytelling Stepper --- */
.stepper-container {
display: none;
margin: 12px 16px;
padding: 12px;
background: rgba(var(--accent-rgb), 0.05);
border-radius: 8px;
border: 1px solid rgba(var(--accent-rgb), 0.1);
animation: slideIn 0.3s ease-out;
}
.stepper-container.active { display: block; }
.steps {
display: flex;
justify-content: space-between;
position: relative;
}
.step {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
flex: 1;
}
.step-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--text-dim);
transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.step.active .step-dot {
background: var(--accent);
box-shadow: 0 0 12px var(--accent);
transform: scale(1.5);
}
.step.complete .step-dot {
background: var(--success);
box-shadow: 0 0 8px var(--success);
}
.step-label {
font-size: 9px;
color: var(--text-dim);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.step.active .step-label { color: var(--accent); }
.step.complete .step-label { color: var(--success); }
@media (min-width: 360px) {
.header-controls {
grid-template-columns: minmax(0, 1fr);
align-items: start;
}
}
@media (max-width: 520px) {
.paired-row {
grid-template-columns: minmax(0, 1fr);
}
.header-top {
align-items: flex-start;
}
}
@keyframes slideIn {
from { opacity: 0; transform: translateX(-10px); }
to { opacity: 1; transform: translateX(0); }
}