:root { --brand: #2563eb; --brand-d: #1e40af; --ink: #111827; --muted: #6b7280; --ring: rgba(37,99,235,.18); --surface: #fff; --border: #e5e7eb; --slate-50: #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0; --success: #10b981; --warning: #f59e0b; --danger: #dc2626; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: #fafafa; }
.container { max-width: 1000px; margin: 32px auto; padding: 0 16px; }
h1 { margin: 0 0 12px; font-size: 1.9rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
textarea { width: 100%; font: inherit; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #fff; }
textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.1rem; border-radius: 10px; border: 2px solid var(--brand); background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; transition: all 0.12s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { background: #f3f4f6; }
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-d) 100%); border-color: var(--brand-d); }
.btn-secondary { background: linear-gradient(135deg, #059669 0%, #047857 100%); border-color: #047857; color: #fff; }
.btn-paste { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); border-color: #5b21b6; color: #fff; }
.copy-btn { padding: 4px 10px; background: var(--slate-100); border: 1.5px solid var(--border); border-radius: 6px; font-size: 0.75rem; color: var(--muted); cursor: pointer; }
.copy-btn:hover { background: var(--slate-200); }
.card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 16px 18px; margin: 14px 0; }
.result-box { background: #fff; border: 2px solid #111827; border-radius: 16px; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.status-row { display: flex; gap: 16px; }
.status-indicator { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.status-dot.offline { background: var(--danger); }
.timing-bar { display: flex; gap: 16px; padding: 12px 16px; background: var(--slate-50); border-radius: 8px; font-size: 0.8rem; color: var(--muted); margin-top: 16px; }
.empty-chat { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 150px; color: var(--muted); text-align: center; padding: 20px; }
.disclaimer { margin-top: 20px; background: #fef9c3; border: 2px solid #eab308; border-radius: 12px; padding: 16px; font-size: 0.8rem; color: #854d0e; line-height: 1.5; }
.progress-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 9999; }
.progress-overlay.active { display: flex; }
.progress-card { background: white; border-radius: 16px; padding: 32px; max-width: 400px; width: 90%; text-align: center; }
.progress-spinner { margin: 0 auto 20px; width: 50px; height: 50px; border: 4px solid #f3f3f3; border-top: 4px solid var(--brand); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.progress-bar { width: 100%; height: 8px; background: var(--slate-200); border-radius: 4px; overflow: hidden; margin-top: 16px; }
.progress-fill { height: 100%; background: var(--brand); transition: width 0.5s; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 12px 24px; border-radius: 8px; z-index: 10000; opacity: 0; transition: opacity 0.3s; }
.toast.show { opacity: 1; }
