:root { --fluent-bg: #0b0f19; --fluent-surface: #151c2c; --fluent-surface-hover: #1c263c; --fluent-border: rgba(255,255,255,0.08); --brand-blue: #2563eb; --color-success: #10b981; --color-warning: #f59e0b; --color-error: #ef4444; --color-info: #3b82f6; --text-primary: #f8fafc; --text-secondary: #94a3b8; }
* { box-sizing: border-box; margin: 0; padding: 0; font-family: sans-serif; }
body { background-color: var(--fluent-bg); color: var(--text-primary); display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.fluent-app { width: 100%; max-width: 480px; height: 100vh; max-height: 900px; background: #111827; display: flex; flex-direction: column; position: relative; border: 1px solid var(--fluent-border); border-radius: 16px; overflow: hidden; }
.fluent-header { height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; background: #172136; border-bottom: 1px solid var(--fluent-border); }
.header-left { display: flex; align-items: center; gap: 10px; }
.avatar-chip { width: 34px; height: 34px; border-radius: 8px; background: var(--brand-blue); display: flex; align-items: center; justify-content: center; color: white; }
.app-title { font-size: 1rem; font-weight: bold; }
.server-pill { font-size: 0.72rem; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }
.status-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); }
.icon-tool-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--fluent-border); color: white; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; }
.segmented-nav { display: flex; background: rgba(15,23,42,0.8); padding: 4px; margin: 10px 14px 4px 14px; border-radius: 10px; gap: 4px; }
.nav-segment { flex: 1; background: transparent; border: none; color: var(--text-secondary); padding: 8px; border-radius: 6px; font-size: 0.78rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; }
.nav-segment.active { background: var(--fluent-surface-hover); color: #60a5fa; font-weight: bold; }
.count-badge { background: var(--brand-blue); color: white; font-size: 0.65rem; padding: 1px 5px; border-radius: 8px; }
.tab-page { flex: 1; display: none; flex-direction: column; overflow-y: auto; padding: 12px 14px; }
.tab-page.active { display: flex; }
.suggestion-chips { display: flex; gap: 6px; margin-bottom: 8px; }
.chip { background: rgba(255,255,255,0.05); border: 1px solid var(--fluent-border); color: var(--text-secondary); font-size: 0.74rem; padding: 6px 10px; border-radius: 14px; cursor: pointer; }
.chat-feed { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.chat-message-row { display: flex; gap: 8px; max-width: 90%; }
.chat-message-row.user { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar { width: 30px; height: 30px; border-radius: 6px; background: rgba(59,130,246,0.2); color: #60a5fa; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.msg-bubble { background: var(--fluent-surface); border: 1px solid var(--fluent-border); border-radius: 10px; padding: 8px 12px; font-size: 0.85rem; }
.chat-message-row.user .msg-bubble { background: var(--brand-blue); border: none; }
.chat-input-container { margin-top: 10px; }
.input-wrapper { display: flex; background: var(--fluent-surface); border: 1px solid var(--fluent-border); border-radius: 10px; padding: 4px; }
.input-wrapper input { flex: 1; background: transparent; border: none; color: white; padding: 8px; outline: none; }
.fluent-send-btn { background: var(--brand-blue); border: none; color: white; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; }
.fluent-card { background: var(--fluent-surface); border: 1px solid var(--fluent-border); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.fluent-card.highlight { background: #162238; }
.card-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.card-title { font-size: 0.88rem; font-weight: bold; display: flex; align-items: center; gap: 6px; }
.btn-text { background: none; border: none; color: #60a5fa; font-size: 0.78rem; cursor: pointer; }
.code-banner { background: #0b0f19; border: 1px solid var(--fluent-border); border-radius: 6px; padding: 6px; margin-bottom: 8px; font-size: 0.76rem; color: #38bdf8; font-family: monospace; }
.quick-toolbar { display: flex; gap: 8px; }
.action-btn { flex: 1; padding: 8px; border-radius: 6px; border: none; font-size: 0.8rem; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; }
.action-btn.primary { background: var(--brand-blue); color: white; }
.action-btn.secondary { background: rgba(255,255,255,0.08); color: white; border: 1px solid var(--fluent-border); }
.action-btn.outline-danger { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.filter-bar { display: flex; gap: 6px; margin-bottom: 10px; }
.filter-chip { background: rgba(255,255,255,0.05); border: 1px solid var(--fluent-border); color: var(--text-secondary); font-size: 0.72rem; padding: 4px 8px; border-radius: 10px; cursor: pointer; }
.filter-chip.active { background: var(--brand-blue); color: white; }
.logs-container { display: flex; flex-direction: column; gap: 8px; }
.fluent-log-item { background: var(--fluent-surface); border: 1px solid var(--fluent-border); border-left: 4px solid var(--color-info); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; }
.fluent-log-item.SUCCESS { border-left-color: var(--color-success); }
.fluent-log-item.WARNING { border-left-color: var(--color-warning); }
.fluent-log-item.ERROR { border-left-color: var(--color-error); }
.log-top-row { display: flex; justify-content: space-between; }
.severity-pill { font-size: 0.65rem; font-weight: bold; padding: 2px 5px; border-radius: 4px; }
.severity-pill.INFO { background: rgba(59,130,246,0.2); color: #60a5fa; }
.severity-pill.SUCCESS { background: rgba(16,185,129,0.2); color: #34d399; }
.severity-pill.WARNING { background: rgba(245,158,11,0.2); color: #fbbf24; }
.severity-pill.ERROR { background: rgba(239,68,68,0.2); color: #f87171; }
.fluent-field { margin-bottom: 10px; }
.fluent-field label { display: block; font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 4px; }
.fluent-field input { width: 100%; background: #0b0f19; border: 1px solid var(--fluent-border); padding: 8px; border-radius: 6px; color: white; outline: none; }
.card-btn-row { display: flex; gap: 8px; margin-top: 10px; }
.empty-state { text-align: center; padding: 30px; color: var(--text-secondary); font-size: 0.85rem; }
