*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{height:100vh}.App{height:100vh;display:flex;flex-direction:column}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
  Theme: GitHub Dark
  Description: Dark theme as seen on github.com
  Author: github.com
  Maintainer: @Hirse
  Updated: 2021-05-15

  Outdated base version: https://github.com/primer/github-syntax-dark
  Current colors taken from GitHub's CSS
*/.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#79c0ff}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-comment,.hljs-code,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}.message-wrapper{display:flex;padding:.75rem 1rem;width:100%}.message-wrapper.user{justify-content:flex-end}.message-wrapper.assistant{justify-content:flex-start}.message-bubble{max-width:70%;position:relative;display:flex;flex-direction:column;gap:.5rem}.message-wrapper.user .message-bubble{background-color:#2f7cf6;border-radius:18px 18px 4px;padding:.75rem 1rem}.message-wrapper.assistant .message-bubble{background-color:#3e3f4b;border-radius:18px 18px 18px 4px;padding:.75rem 1rem}.message-content{color:#ececf1;line-height:1.6;word-wrap:break-word}.message-content p{margin:0;white-space:pre-wrap;word-wrap:break-word}.message-content ul,.message-content ol{margin:.5rem 0;padding-left:1.5rem}.message-content li{margin:.25rem 0}.message-content h1,.message-content h2,.message-content h3,.message-content h4,.message-content h5,.message-content h6{margin:.75rem 0 .5rem}.message-content blockquote{border-left:3px solid #565869;padding-left:1rem;margin:.5rem 0;color:#b4b4b4}.message-content code{background-color:#2d2d2d;padding:.2rem .4rem;border-radius:4px;font-family:Consolas,Monaco,Courier New,monospace;font-size:.9em}.message-file{margin-bottom:.5rem}.message-file img{max-width:100%;max-height:300px;border-radius:8px}.message-file a{color:#19c37d;text-decoration:none;display:inline-flex;align-items:center;gap:.5rem}.message-file a:hover{text-decoration:underline}.code-block-wrapper{margin:.75rem 0;border-radius:6px;overflow:hidden;background-color:#1e1e1e}.code-block-header{display:flex;justify-content:space-between;align-items:center;padding:.5rem 1rem;background-color:#2d2d2d;border-bottom:1px solid #3e3e3e}.code-language{font-size:.75rem;color:#8e8ea0;text-transform:uppercase;font-weight:600}.copy-code-btn{background:none;border:none;color:#ececf1;cursor:pointer;font-size:.85rem;padding:.25rem .5rem;border-radius:4px;transition:background-color .2s}.copy-code-btn:hover{background-color:#3e3e3e}.code-block-wrapper pre{margin:0;padding:1rem;overflow-x:auto}.code-block-wrapper code{background:none;padding:0;font-size:.9rem}.copy-message-btn{background:none;border:none;color:#8e8ea0;cursor:pointer;font-size:.75rem;padding:.25rem;border-radius:4px;transition:all .2s;align-self:flex-end}.copy-message-btn:hover{color:#ececf1;background-color:#ffffff1a}.message-input{display:flex;gap:.5rem;padding:1rem;background-color:#343541;border-top:1px solid #4d4d4f;max-width:800px;margin:0 auto;width:100%}.attach-button{padding:.75rem 1rem;background-color:#40414f;color:#ececf1;border:1px solid #565869;border-radius:6px;cursor:pointer;font-size:1.2rem;transition:background-color .2s;display:flex;align-items:center;justify-content:center}.attach-button:hover{background-color:#4d4d4f}.input-container{flex:1;display:flex;flex-direction:column;gap:.5rem}.selected-file{display:flex;align-items:center;gap:.5rem;padding:.5rem;background-color:#40414f;border:1px solid #565869;border-radius:6px;color:#ececf1;font-size:.85rem}.selected-file span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.remove-file{background:none;border:none;color:#ececf1;cursor:pointer;font-size:1.5rem;padding:0;line-height:1}.remove-file:hover{color:#ff6b6b}.input-field{flex:1;padding:.75rem 1rem;background-color:#40414f;border:1px solid #565869;border-radius:6px;color:#ececf1;font-size:1rem;outline:none;transition:border-color .2s}.input-field:focus{border-color:#8e8ea0}.input-field::placeholder{color:#8e8ea0}.send-button{padding:.75rem 1rem;background-color:#19c37d;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:1.2rem;font-weight:700;transition:background-color .2s;display:flex;align-items:center;justify-content:center;min-width:48px}.send-button:hover{background-color:#1a7f5a}.send-button:disabled{background-color:#565869;cursor:not-allowed}.sidebar-toggle{position:fixed;top:1rem;left:1rem;z-index:1000;background-color:#202123;color:#ececf1;border:1px solid #4d4d4f;border-radius:4px;padding:.5rem;cursor:pointer;font-size:1.2rem;transition:background-color .2s}.sidebar-toggle:hover{background-color:#2a2b32}.sidebar{position:fixed;left:0;top:0;height:100vh;width:260px;background-color:#202123;border-right:1px solid #4d4d4f;padding:4rem 1rem 1rem;transition:transform .3s ease;z-index:999;display:flex;flex-direction:column}.sidebar.closed{transform:translate(-100%)}.new-chat-btn{width:100%;padding:.75rem;background-color:#343541;color:#ececf1;border:1px solid #565869;border-radius:6px;cursor:pointer;font-size:1rem;transition:background-color .2s;margin-bottom:1rem}.new-chat-btn:hover{background-color:#40414f}.chat-history{flex:1;overflow-y:auto}.chat-history h3{color:#8e8ea0;font-size:.75rem;text-transform:uppercase;margin-bottom:.5rem;padding:0 .5rem}.chat-list{display:flex;flex-direction:column;gap:.25rem}.chat-item{display:flex;align-items:center;justify-content:space-between;padding:.75rem;border-radius:6px;cursor:pointer;transition:background-color .2s;color:#ececf1}.chat-item:hover,.chat-item.active{background-color:#343541}.chat-item-content{flex:1;display:flex;flex-direction:column;gap:.25rem;overflow:hidden}.chat-title{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-model{font-size:.75rem;color:#8e8ea0}.delete-chat-btn{background:none;border:none;cursor:pointer;padding:.25rem;opacity:0;transition:opacity .2s;font-size:1rem}.chat-item:hover .delete-chat-btn,.delete-chat-btn:hover{opacity:1}.chat-history::-webkit-scrollbar{width:6px}.chat-history::-webkit-scrollbar-track{background:#202123}.chat-history::-webkit-scrollbar-thumb{background:#4d4d4f;border-radius:3px}.model-selector{display:flex;align-items:center}.model-dropdown{padding:.5rem 1rem;background-color:#40414f;color:#ececf1;border:1px solid #565869;border-radius:6px;font-size:.9rem;cursor:pointer;outline:none;transition:border-color .2s}.model-dropdown:hover{border-color:#8e8ea0}.model-dropdown:focus{border-color:#8e8ea0}.model-dropdown option{background-color:#40414f;color:#ececf1}.app-layout{display:flex;height:100vh}.chat-container{display:flex;flex-direction:column;flex:1;height:100vh;background-color:#343541;margin-left:0;transition:margin-left .3s ease}.chat-container.sidebar-open{margin-left:260px}.chat-container.sidebar-closed{margin-left:0}.chat-header{padding:1rem;background-color:#202123;border-bottom:1px solid #4d4d4f;display:flex;align-items:center;justify-content:space-between;gap:1rem}.chat-header h1{color:#ececf1;font-size:1.25rem;font-weight:600;margin:0;flex:1;text-align:center}.user-info{display:flex;align-items:center;gap:.75rem;color:#ececf1;font-size:.875rem}.logout-btn{padding:.5rem 1rem;background-color:#444654;color:#ececf1;border:1px solid #565869;border-radius:6px;cursor:pointer;font-size:.875rem;transition:all .2s}.logout-btn:hover{background-color:#565869;border-color:#6e6e80}.loading-screen{display:flex;justify-content:center;align-items:center;height:100vh;background-color:#343541;color:#ececf1;font-size:1.25rem}.messages-container{flex:1;overflow-y:auto;padding:1rem 0;display:flex;flex-direction:column;gap:.5rem}.messages-container::-webkit-scrollbar{width:8px}.messages-container::-webkit-scrollbar-track{background:#343541}.messages-container::-webkit-scrollbar-thumb{background:#565869;border-radius:4px}.messages-container::-webkit-scrollbar-thumb:hover{background:#6e6e80}.loading-indicator{display:flex;justify-content:flex-start;padding:.75rem 1rem}.loading-dots{display:flex;gap:.5rem;padding:.75rem 1rem;background-color:#3e3f4b;border-radius:18px}.loading-dots span{width:8px;height:8px;background-color:#8e8ea0;border-radius:50%;animation:bounce 1.4s infinite ease-in-out both}.loading-dots span:nth-child(1){animation-delay:-.32s}.loading-dots span:nth-child(2){animation-delay:-.16s}@keyframes bounce{0%,80%,to{transform:scale(0);opacity:.5}40%{transform:scale(1);opacity:1}}.login-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#1a1a1a,#2d2d2d)}.login-box{background:#2f2f2f;padding:40px;border-radius:12px;box-shadow:0 4px 20px #0000004d;width:100%;max-width:400px}.login-box h1{color:#fff;text-align:center;margin-bottom:10px;font-size:32px}.login-subtitle{color:#999;text-align:center;margin-bottom:30px;font-size:14px}.input-group{margin-bottom:20px}.input-group input{width:100%;padding:14px;background:#1a1a1a;border:1px solid #444;border-radius:8px;color:#fff;font-size:16px;transition:border-color .3s}.input-group input:focus{outline:none;border-color:#10a37f}.input-group input::placeholder{color:#666}.error-message{background:#f44;color:#fff;padding:12px;border-radius:6px;margin-bottom:20px;font-size:14px;text-align:center}.login-box button{width:100%;padding:14px;background:#10a37f;color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:background .3s}.login-box button:hover:not(:disabled){background:#0e8f6f}.login-box button:disabled{background:#555;cursor:not-allowed}
