zioinfo-mail/_archive/messenger/static/style.css
DESKTOP-TKLFCPR\ython 28d3ba4836 refactor(cleanup): commit folder reorganization - scripts/, _archive/, docs/ restructure
- Move backend/frontend/messenger/ old paths to _archive/
- Reorganize scripts into scripts/deploy, check, push, setup, misc
- Move docs (pptx, docx) to docs/
- Add .claude agents and skills for fullstack/folder-cleanup harness
- workspace/ projects remain intact

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-01 19:43:09 +09:00

318 lines
12 KiB
CSS

/* ─── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--sidebar-bg: #1a1d21;
--sidebar-hover:#222529;
--sidebar-active:#1164a3;
--main-bg: #222529;
--msg-area-bg: #222529;
--input-bg: #2c2d30;
--border: #363636;
--text-primary: #d1d2d3;
--text-muted: #8b8c8e;
--text-bright: #ffffff;
--bot-bubble: #1a3a5c;
--bot-border: #1164a3;
--accent: #1d9bd1;
--green: #2bac76;
--yellow: #e8a317;
--red: #e01e5a;
--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--radius: 6px;
}
html, body { height: 100%; font-family: var(--font); background: var(--main-bg); color: var(--text-primary); }
/* ─── Layout ────────────────────────────────────────── */
#app { display: flex; height: 100vh; overflow: hidden; }
/* ─── Sidebar ───────────────────────────────────────── */
#sidebar {
width: 260px; min-width: 200px;
background: var(--sidebar-bg);
display: flex; flex-direction: column;
border-right: 1px solid var(--border);
flex-shrink: 0;
}
#workspace-header {
padding: 16px 16px 12px;
border-bottom: 1px solid var(--border);
}
#workspace-name {
font-size: 16px; font-weight: 700;
color: var(--text-bright); cursor: pointer;
display: flex; align-items: center; gap: 6px;
}
#workspace-name .status-dot {
width: 8px; height: 8px; border-radius: 50%;
background: var(--green); display: inline-block;
}
#user-display {
font-size: 12px; color: var(--text-muted); margin-top: 4px;
}
#sidebar-search {
margin: 8px 10px;
background: var(--sidebar-hover); border: 1px solid var(--border);
border-radius: var(--radius); padding: 6px 10px;
color: var(--text-primary); font-size: 13px; outline: none;
width: calc(100% - 20px);
}
#sidebar-search::placeholder { color: var(--text-muted); }
.sidebar-section { margin: 6px 0; }
.sidebar-section-header {
padding: 4px 10px; font-size: 12px; font-weight: 600;
color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em;
cursor: pointer; display: flex; align-items: center; gap: 4px;
user-select: none;
}
.sidebar-section-header:hover { color: var(--text-primary); }
.channel-item {
padding: 5px 10px 5px 20px; font-size: 14px;
color: var(--text-muted); cursor: pointer; border-radius: var(--radius);
margin: 1px 6px; display: flex; align-items: center; gap: 6px;
transition: background .12s;
}
.channel-item:hover { background: var(--sidebar-hover); color: var(--text-primary); }
.channel-item.active { background: var(--sidebar-active); color: var(--text-bright); font-weight: 500; }
.channel-item .ch-icon { color: var(--text-muted); font-size: 13px; }
.channel-item.active .ch-icon { color: var(--text-bright); }
.channel-item .unread-badge {
margin-left: auto; background: var(--red);
color: #fff; font-size: 10px; font-weight: 700;
min-width: 16px; height: 16px; border-radius: 8px;
display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
/* ─── User modal ────────────────────────────────────── */
#user-modal-overlay {
display: none; position: fixed; inset: 0;
background: rgba(0,0,0,.55); z-index: 100;
align-items: center; justify-content: center;
}
#user-modal-overlay.show { display: flex; }
#user-modal {
background: var(--sidebar-bg); border: 1px solid var(--border);
border-radius: 10px; padding: 28px 32px; width: 340px; text-align: center;
}
#user-modal h2 { font-size: 18px; color: var(--text-bright); margin-bottom: 6px; }
#user-modal p { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
#user-modal input {
width: 100%; padding: 10px 12px; background: var(--input-bg);
border: 1px solid var(--border); border-radius: var(--radius);
color: var(--text-bright); font-size: 14px; outline: none; margin-bottom: 14px;
}
#user-modal input:focus { border-color: var(--accent); }
#user-modal button {
width: 100%; padding: 10px; background: var(--accent);
color: #fff; border: none; border-radius: var(--radius);
font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity .15s;
}
#user-modal button:hover { opacity: .85; }
/* ─── Main area ─────────────────────────────────────── */
#main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
#channel-header {
padding: 12px 20px;
border-bottom: 1px solid var(--border);
background: var(--main-bg);
display: flex; align-items: center; gap: 10px;
}
#channel-header .ch-name {
font-size: 16px; font-weight: 700; color: var(--text-bright);
}
#channel-header .ch-desc {
font-size: 13px; color: var(--text-muted); margin-left: 8px;
}
#member-count { margin-left: auto; font-size: 12px; color: var(--text-muted); }
/* ─── Messages ──────────────────────────────────────── */
#messages {
flex: 1; overflow-y: auto; padding: 16px 20px 8px;
display: flex; flex-direction: column; gap: 2px;
}
#messages::-webkit-scrollbar { width: 5px; }
#messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.msg-group { display: flex; gap: 10px; padding: 4px 0; }
.msg-group:hover { background: rgba(255,255,255,.03); border-radius: var(--radius); }
.avatar {
width: 36px; height: 36px; border-radius: var(--radius);
font-size: 14px; font-weight: 700; display: flex; align-items: center;
justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.avatar.human { background: #4a9a6e; color: #fff; }
.avatar.bot { background: var(--accent); color: #fff; }
.msg-body { flex: 1; min-width: 0; }
.msg-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.msg-sender { font-size: 14px; font-weight: 700; color: var(--text-bright); }
.msg-sender.bot { color: var(--accent); }
.msg-time { font-size: 11px; color: var(--text-muted); }
.msg-content {
font-size: 14px; line-height: 1.55; color: var(--text-primary);
white-space: pre-wrap; word-break: break-word;
}
.msg-content code {
background: rgba(0,0,0,.35); padding: 1px 5px;
border-radius: 3px; font-family: "JetBrains Mono", "Consolas", monospace;
font-size: 12px;
}
.msg-content pre {
background: rgba(0,0,0,.45); border: 1px solid var(--border);
border-radius: var(--radius); padding: 10px 12px; margin-top: 6px;
overflow-x: auto; font-size: 12px; line-height: 1.5;
font-family: "JetBrains Mono", "Consolas", monospace;
}
/* Bot bubble */
.bot-bubble {
background: var(--bot-bubble); border-left: 3px solid var(--bot-border);
border-radius: 0 var(--radius) var(--radius) 0;
padding: 10px 12px; margin-top: 4px;
}
.bot-bubble .msg-content { color: #c9dff0; }
/* Interactive widgets */
.widget-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.btn-action {
padding: 7px 14px; border-radius: var(--radius);
font-size: 13px; font-weight: 500; cursor: pointer;
border: 1px solid transparent; transition: opacity .15s;
}
.btn-action:hover { opacity: .8; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-approve { background: var(--green); color: #fff; }
.btn-reject { background: var(--red); color: #fff; }
.btn-secondary { background: transparent; border-color: var(--border); color: var(--text-primary); }
.btn-action.clicked { opacity: .5; pointer-events: none; }
.btn-result {
font-size: 12px; color: var(--text-muted);
margin-top: 6px; padding: 4px 0;
}
/* Date divider */
.date-divider {
display: flex; align-items: center; gap: 10px;
margin: 14px 0; font-size: 12px; color: var(--text-muted);
}
.date-divider::before, .date-divider::after {
content: ""; flex: 1; height: 1px; background: var(--border);
}
/* Typing indicator */
#typing-indicator {
height: 20px; padding: 0 20px; font-size: 12px;
color: var(--text-muted); font-style: italic;
}
/* ─── Input area ────────────────────────────────────── */
#input-area {
padding: 8px 20px 16px;
border-top: 1px solid var(--border);
background: var(--main-bg);
}
#input-box {
background: var(--input-bg); border: 1px solid var(--border);
border-radius: var(--radius); display: flex; align-items: flex-end; gap: 6px;
padding: 8px 10px; transition: border-color .15s;
}
#input-box:focus-within { border-color: var(--accent); }
#msg-input {
flex: 1; background: transparent; border: none; outline: none;
color: var(--text-bright); font-size: 14px; resize: none;
max-height: 120px; line-height: 1.5; font-family: var(--font);
}
#msg-input::placeholder { color: var(--text-muted); }
.input-btn {
background: none; border: none; color: var(--text-muted);
cursor: pointer; padding: 4px; border-radius: var(--radius);
font-size: 18px; line-height: 1; transition: color .12s;
flex-shrink: 0;
}
.input-btn:hover { color: var(--text-primary); }
#send-btn { color: var(--accent); font-size: 20px; }
#send-btn:hover { color: var(--text-bright); }
#input-hint {
font-size: 11px; color: var(--text-muted);
margin-top: 4px; padding: 0 2px;
}
/* ─── Typing indicator ──────────────────────────────── */
#typing-indicator { min-height: 24px; padding: 2px 20px 0; }
.typing-bubble {
display: inline-flex; align-items: center; gap: 10px;
background: var(--bot-bubble); border-left: 3px solid var(--bot-border);
border-radius: 0 var(--radius) var(--radius) 0;
padding: 8px 14px; font-size: 13px; color: #8bb8d4;
}
.typing-dots { display: flex; gap: 4px; }
.typing-dots span {
width: 7px; height: 7px; border-radius: 50%;
background: var(--accent); display: inline-block;
animation: bounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce {
0%, 60%, 100% { transform: translateY(0); opacity: .5; }
30% { transform: translateY(-6px); opacity: 1; }
}
/* ─── ITSM 완료 / 별점 위젯 ─────────────────────── */
.star-rating-widget {
margin-top: 10px; padding: 12px 14px;
background: rgba(227,179,65,.08); border-left: 3px solid var(--yellow);
border-radius: 0 var(--radius) var(--radius) 0;
}
.star-rating-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.star-rating-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.star-btn-msg {
font-size: 24px; background: none; border: none;
color: var(--border); cursor: pointer;
transition: color .1s, transform .1s; line-height: 1;
}
.star-btn-msg:hover { color: var(--yellow); transform: scale(1.2); }
.star-btn-msg.lit { color: var(--yellow); }
.star-rating-done { font-size: 13px; color: var(--yellow); font-weight: 600; margin-top: 6px; }
/* ─── chatbot 채널 전용 스타일 ──────────────────────── */
.chatbot-channel .bot-bubble {
background: #12294a; border-left-color: #2a7abf;
}
.chatbot-badge {
display: inline-block; font-size: 10px; font-weight: 700;
background: var(--accent); color: #fff; border-radius: 4px;
padding: 1px 5px; margin-left: 6px; vertical-align: middle;
}
.channel-item[data-room="chatbot"] .ch-icon { color: #1d9bd1; }
.channel-item[data-room="chatbot"].active { background: #0f3460; }
/* ─── Connection status ─────────────────────────────── */
#conn-status {
position: fixed; bottom: 16px; right: 16px;
padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
display: none;
}
#conn-status.show { display: block; }
#conn-status.online { background: var(--green); color: #fff; }
#conn-status.offline{ background: var(--red); color: #fff; }
#conn-status.reconnecting { background: var(--yellow); color: #000; }
/* ─── Scrollbar ─────────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }