:root{--bg-color:#0f172a;--panel-bg:#1e293bb3;--glass-border:#ffffff1a;--text-primary:#f8fafc;--text-secondary:#94a3b8;--accent-color:#3b82f6;--accent-hover:#2563eb;--user-msg-bg:#3b82f6;--bot-msg-bg:#334155cc}*{box-sizing:border-box;margin:0;padding:0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}body{background-color:var(--bg-color);color:var(--text-primary);background-image:radial-gradient(circle at 15%,#3b82f626,#0000 25%),radial-gradient(circle at 85% 30%,#8b5cf626,#0000 25%);justify-content:center;align-items:center;width:100vw;height:100vh;display:flex;overflow:hidden}#root{width:100%;height:100%;display:flex}.glass-panel{background:var(--panel-bg);-webkit-backdrop-filter:blur(16px);border:1px solid var(--glass-border)}.app-container{background:var(--panel-bg);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);flex-direction:column;width:100%;height:100vh;display:flex;overflow:hidden}.login-container{border-radius:16px;flex-direction:column;justify-content:center;align-items:center;width:400px;padding:3rem 2rem;display:flex}.login-container h1{background:linear-gradient(90deg,#60a5fa,#a78bfa);-webkit-text-fill-color:transparent;-webkit-background-clip:text;margin-bottom:.5rem;font-size:2rem}.login-container p{color:var(--text-secondary);text-align:center;margin-bottom:2rem}.input-group{width:100%;margin-bottom:1.5rem}.input-group input{border:1px solid var(--glass-border);width:100%;color:var(--text-primary);background:#0f172a99;border-radius:8px;outline:none;padding:1rem;transition:all .2s}.input-group input:focus{border-color:var(--accent-color);box-shadow:0 0 0 2px #3b82f64d}.btn-primary{background:var(--accent-color);color:#fff;cursor:pointer;border:none;border-radius:8px;width:100%;padding:1rem;font-weight:600;transition:background .2s}.btn-primary:hover{background:var(--accent-hover)}.chat-layout{width:100%;height:100%;display:flex;overflow:hidden}.sidebar{border-right:1px solid var(--glass-border);background:#0f172a4d;flex-direction:column;flex-shrink:0;width:260px;height:100%;padding:1.5rem;display:flex}.sidebar-header{background:linear-gradient(90deg,#60a5fa,#a78bfa);-webkit-text-fill-color:transparent;-webkit-background-clip:text;margin-bottom:2rem;font-size:1.2rem;font-weight:700}.model-selector{margin-bottom:2rem}.model-selector select{border:1px solid var(--glass-border);width:100%;color:var(--text-primary);background:#0f172a99;border-radius:8px;outline:none;padding:.75rem}.nav-links{flex-direction:column;gap:.5rem;display:flex}.nav-link{color:var(--text-secondary);cursor:pointer;border-radius:8px;align-items:center;gap:.75rem;padding:.75rem 1rem;transition:all .2s;display:flex}.nav-link:hover,.nav-link.active{color:var(--text-primary);background:#ffffff0d}.chat-main{flex-direction:column;flex:1;display:flex;overflow:hidden}.chat-messages{flex-direction:column;flex:1;gap:1.5rem;padding:2rem;display:flex;overflow-y:auto}.chat-messages::-webkit-scrollbar{width:6px}.chat-messages::-webkit-scrollbar-track{background:0 0}.chat-messages::-webkit-scrollbar-thumb{background:var(--glass-border);border-radius:4px}.message{flex-direction:column;max-width:80%;animation:.3s ease-out fadeIn;display:flex}.message.user{align-self:flex-end}.message.assistant,.message.system{align-self:flex-start}.message-bubble{border-radius:12px;max-width:80%;padding:1rem;font-size:.95rem;line-height:1.5}.message-bubble p{margin-top:0;margin-bottom:.75rem}.message-bubble p:last-child{margin-bottom:0}.message-bubble h1,.message-bubble h2,.message-bubble h3,.message-bubble h4{margin-top:1rem;margin-bottom:.5rem}.message-bubble ul,.message-bubble ol{margin-top:.5rem;margin-bottom:.75rem;padding-left:1.5rem}.message-bubble li{margin-bottom:.25rem}.message.user .message-bubble{background:var(--user-msg-bg);border-bottom-right-radius:4px}.message.assistant .message-bubble{background:var(--bot-msg-bg);border:1px solid var(--glass-border);border-bottom-left-radius:4px}.message.system{align-self:center;max-width:100%}.message.system .message-bubble{color:#c4b5fd;background:#8b5cf61a;border:1px dashed #8b5cf64d;border-radius:8px;font-size:.9rem}.chat-input-container{border-top:1px solid var(--glass-border);padding:1.5rem}.chat-input-wrapper{border:1px solid var(--glass-border);background:#0f172acc;border-radius:12px;align-items:flex-end;padding:.5rem;transition:border-color .2s;display:flex}.chat-input-wrapper:focus-within{border-color:#ffffff4d}.chat-input{color:var(--text-primary);resize:none;background:0 0;border:none;outline:none;flex:1;min-height:44px;max-height:200px;padding:.75rem;font-family:inherit}.chat-send-btn{background:var(--text-primary);color:var(--bg-color);cursor:pointer;border:none;border-radius:8px;justify-content:center;align-items:center;width:44px;height:44px;margin-left:.5rem;transition:transform .1s;display:flex}.chat-send-btn:hover{transform:scale(1.05)}.chat-send-btn:disabled{opacity:.5;cursor:not-allowed}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.typing-indicator{gap:.5rem;padding:.5rem;display:flex}.typing-dot{background:var(--text-secondary);border-radius:50%;width:8px;height:8px;animation:1.4s ease-in-out infinite both typing}.typing-dot:first-child{animation-delay:-.32s}.typing-dot:nth-child(2){animation-delay:-.16s}@keyframes typing{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.chat-item .chat-actions{opacity:0;transition:opacity .2s}.chat-item:hover .chat-actions{opacity:1}
