@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap'); *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --bg: #0e1117; --bg2: #141921; --bg3: #1a2130; --border: rgba(255,255,255,0.08); --accent: #3d7eff; --accent2: #7ee8a2; --accent3: #ffd166; --text: #e8edf5; --text-muted: #7a8aa0; --radius: 12px; --font: 'Space Grotesk', sans-serif; --mono: 'JetBrains Mono', monospace; } html, body, #root { height: 100%; } body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; overflow: hidden; } /* ── HOME SCREEN ──────────────────────────────────────────── */ .home-screen { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; } .home-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; } .bg-orb { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(61,126,255,0.12) 0%, transparent 70%); animation: orb-pulse 6s ease-in-out infinite alternate; } @keyframes orb-pulse { 0% { transform: scale(1) translateY(0); opacity: 0.4; } 100% { transform: scale(1.5) translateY(-20px); opacity: 0.1; } } .home-card { position: relative; z-index: 1; background: rgba(20,25,33,0.9); border: 1px solid var(--border); border-radius: 24px; padding: 48px 52px; width: 520px; max-width: 95vw; backdrop-filter: blur(16px); box-shadow: 0 32px 80px rgba(0,0,0,0.6); animation: card-in 0.6s cubic-bezier(0.16,1,0.3,1); } @keyframes card-in { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform: translateY(0); } } .logo-mark { font-size: 36px; color: var(--accent); margin-bottom: 12px; display: block; } .home-title { font-size: 32px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; } .home-title span { color: var(--accent); } .home-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; line-height: 1.7; } .features-row { display: flex; gap: 12px; margin-bottom: 32px; } .feat { flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 12px 8px; text-align: center; font-size: 12px; } .feat span { font-size: 20px; display: block; margin-bottom: 6px; } .feat p { color: var(--text-muted); } .err-msg { color: #ef476f; font-size: 12px; margin-bottom: 10px; } .start-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--accent), #5e9bff); border: none; border-radius: 12px; color: white; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font); letter-spacing: 0.02em; transition: all 0.2s; display: flex; align-items: center; justify-content: center; } .start-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(61,126,255,0.4); } .start-btn:disabled { opacity: 0.5; cursor: not-allowed; } /* ── SPINNER ──────────────────────────────────────────────── */ .spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; display: inline-block; animation: spin 0.7s linear infinite; } .spinner.sm { width: 14px; height: 14px; } @keyframes spin { to { transform: rotate(360deg); } } /* ── APP LAYOUT ───────────────────────────────────────────── */ .app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; } .app-header { display: flex; align-items: center; gap: 16px; padding: 0 20px; height: 52px; background: var(--bg2); border-bottom: 1px solid var(--border); flex-shrink: 0; } .header-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; } .header-logo { color: var(--accent); font-size: 20px; } .header-status { margin-left: auto; } .header-actions { display: flex; gap: 8px; } .badge { font-size: 11px; padding: 4px 10px; border-radius: 20px; font-weight: 600; letter-spacing: 0.05em; display: flex; align-items: center; gap: 6px; } .badge.live { background: rgba(126,232,162,0.12); color: var(--accent2); border: 1px solid rgba(126,232,162,0.25); } .badge.done { background: rgba(61,126,255,0.12); color: var(--accent); border: 1px solid rgba(61,126,255,0.25); } .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); animation: blink 1.4s ease infinite; } @keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } } .hdr-btn { background: var(--bg3); border: 1px solid var(--border); color: var(--text); padding: 6px 14px; border-radius: 8px; font-size: 12px; cursor: pointer; font-family: var(--font); transition: all 0.15s; } .hdr-btn:hover { border-color: var(--accent); color: var(--accent); } .hdr-btn.accent { background: var(--accent); border-color: var(--accent); color: white; } .hdr-btn.accent:hover { opacity: 0.85; color: white; } .layout { flex: 1; display: flex; gap: 0; overflow: hidden; } /* ── LEFT PANEL ───────────────────────────────────────────── */ .left-panel { flex: 1.1; display: flex; flex-direction: column; border-right: 1px solid var(--border); overflow: hidden; } .problem-box { flex-shrink: 0; max-height: 220px; border-bottom: 1px solid var(--border); overflow-y: auto; } .problem-header { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--bg2); font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); position: sticky; top: 0; z-index: 1; } .problem-body { padding: 12px 16px; font-size: 13px; color: var(--text); } .no-problem { color: var(--text-muted); font-style: italic; } .chat-box { flex: 1; display: flex; flex-direction: column; overflow: hidden; } .chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; } .chat-messages::-webkit-scrollbar { width: 4px; } .chat-messages::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 2px; } .msg { display: flex; gap: 10px; align-items: flex-start; animation: msg-in 0.25s ease; } @keyframes msg-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } } .msg.user { flex-direction: row-reverse; } .msg-avatar { font-size: 11px; font-weight: 700; flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--bg3); border-radius: 50%; border: 1px solid var(--border); color: var(--text-muted); } .msg-bubble { background: var(--bg3); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; max-width: 85%; font-size: 13.5px; line-height: 1.65; } .msg.user .msg-bubble { background: rgba(61,126,255,0.12); border-color: rgba(61,126,255,0.25); } .typing { display: flex; align-items: center; gap: 4px; padding: 12px 16px; } .typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: bounce 1.2s infinite; } .typing span:nth-child(2) { animation-delay: 0.2s; } .typing span:nth-child(3) { animation-delay: 0.4s; } @keyframes bounce { 0%,80%,100% { transform: scale(0.7); opacity:0.4; } 40% { transform: scale(1); opacity:1; } } .chat-input-row { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--bg2); } .chat-input { flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; color: var(--text); font-family: var(--font); font-size: 13.5px; resize: none; outline: none; transition: border-color 0.2s; } .chat-input:focus { border-color: var(--accent); } .chat-actions { display: flex; gap: 6px; align-items: center; } .icon-btn { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 16px; color: var(--text-muted); transition: all 0.15s; } .icon-btn:hover:not(:disabled) { border-color: var(--accent3); color: var(--accent3); } .icon-btn:disabled { opacity: 0.4; cursor: not-allowed; } .send-btn { background: var(--accent); border: none; border-radius: 8px; padding: 8px 16px; color: white; font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; gap: 6px; } .send-btn:hover:not(:disabled) { background: #5e9bff; } .send-btn:disabled { opacity: 0.4; cursor: not-allowed; } /* ── RIGHT PANEL ──────────────────────────────────────────── */ .right-panel { width: 400px; display: flex; flex-direction: column; background: var(--bg2); } .panel-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); } .changed-badge { color: var(--accent3); font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; } .code-editor-wrap { flex: 1; display: flex; flex-direction: column; overflow: hidden; } .code-editor-header { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #161d29; border-bottom: 1px solid var(--border); } .dot { width: 10px; height: 10px; border-radius: 50%; } .dot.red { background: #ef5350; } .dot.yellow { background: #ffd166; } .dot.green { background: #7ee8a2; } .code-lang { margin-left: auto; font-size: 11px; color: var(--text-muted); font-family: var(--mono); } .code-editor { flex: 1; background: #0d1219; border: none; color: #e8edf5; font-family: var(--mono); font-size: 13px; line-height: 1.7; padding: 14px 16px; resize: none; outline: none; overflow-y: auto; } .submit-code-btn { margin: 10px; padding: 10px; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-family: var(--font); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; flex-shrink: 0; } .submit-code-btn:hover:not(:disabled) { border-color: var(--accent2); color: var(--accent2); } .submit-code-btn:disabled { opacity: 0.3; cursor: not-allowed; } /* ── WHITEBOARD OVERLAY ───────────────────────────────────── */ .wb-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 100; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); animation: fade-in 0.2s ease; } @keyframes fade-in { from { opacity:0; } to { opacity:1; } } .wb-modal { background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,0.7); max-width: 95vw; } .wb-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; } .close-btn { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: color 0.15s; } .close-btn:hover { color: var(--text); } .whiteboard-wrap { display: flex; flex-direction: column; } .wb-toolbar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--bg3); border-bottom: 1px solid var(--border); flex-wrap: wrap; } .wb-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-right: 4px; } .color-swatches { display: flex; gap: 5px; } .swatch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s; } .swatch:hover, .swatch.active { border-color: white; transform: scale(1.25); } .size-slider { width: 70px; accent-color: var(--accent); } .wb-btn { background: var(--bg2); border: 1px solid var(--border); color: var(--text-muted); padding: 5px 10px; border-radius: 6px; font-size: 11px; cursor: pointer; font-family: var(--font); transition: all 0.15s; } .wb-btn:hover, .wb-btn.active { border-color: var(--accent); color: var(--accent); } .wb-btn.send-wb { background: var(--accent); color: white; border-color: var(--accent); margin-left: auto; } .wb-btn.send-wb:hover { background: #5e9bff; } .wb-canvas { display: block; cursor: crosshair; } /* ── REPORT OVERLAY ───────────────────────────────────────── */ .report-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 200; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); animation: fade-in 0.2s ease; } .report-modal { background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; width: 800px; max-width: 95vw; height: 85vh; display: flex; flex-direction: column; box-shadow: 0 32px 80px rgba(0,0,0,0.7); overflow: hidden; } .report-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; flex-shrink: 0; } .report-body { flex: 1; overflow-y: auto; padding: 24px 28px; } .report-body::-webkit-scrollbar { width: 5px; } .report-body::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; } /* ── MARKDOWN STYLES ──────────────────────────────────────── */ .md-body { font-size: 13.5px; line-height: 1.7; } .md-body h1 { font-size: 20px; font-weight: 700; margin: 16px 0 8px; color: var(--text); } .md-body h2 { font-size: 16px; font-weight: 700; margin: 14px 0 6px; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 6px; } .md-body h3 { font-size: 14px; font-weight: 600; margin: 10px 0 4px; color: var(--accent); } .md-body p { margin: 6px 0; } .md-body strong { color: var(--accent2); font-weight: 600; } .md-body em { color: var(--text-muted); } .md-body code { background: var(--bg3); padding: 2px 5px; border-radius: 4px; font-family: var(--mono); font-size: 12px; color: var(--accent3); } .md-body pre { background: #0d1219; border: 1px solid var(--border); border-radius: 8px; padding: 14px; overflow-x: auto; margin: 10px 0; } .md-body pre code { background: none; padding: 0; font-size: 12.5px; color: #e8edf5; } .md-body li { margin: 3px 0 3px 18px; list-style: none; position: relative; } .md-body li::before { content: "›"; position: absolute; left: -14px; color: var(--accent); } .md-body hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; } .config-section { margin-bottom: 20px; } .input-label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; } .config-input { width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; color: var(--text); font-size: 13.5px; font-family: var(--mono); outline: none; transition: border-color 0.2s; } .config-input:focus { border-color: var(--accent); } .key-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; } .key-hint a { color: var(--accent); text-decoration: none; }