body,html,#root{height:100%;margin:0;font-family:Arial,sans-serif}.chat-root{display:flex;height:100vh}.sidebar{width:220px;border-right:1px solid #ddd;padding:16px;box-sizing:border-box}.sidebar h3{margin-top:0}.sidebar ul{list-style:none;padding:0}.sidebar li{padding:6px 8px;border-radius:6px;margin-bottom:6px}.sidebar li.me{background:#e6f7ff;font-weight:600}.chat-area{flex:1;display:flex;flex-direction:column}.header{padding:12px;border-bottom:1px solid #eee}.join-form{margin:auto;display:flex;flex-direction:column;gap:8px;width:320px}.join-form input,.join-form button{padding:10px;font-size:16px}.messages{padding:12px;flex:1;overflow-y:auto;background:#fafafa}.chat-message{margin-bottom:10px;padding:8px 10px;border-radius:8px;max-width:70%}.chat-message .meta{font-size:12px;color:#666;display:flex;gap:8px}.chat-message .text{margin-top:6px;font-size:15px}.user-message{background:#d1ffd6;margin-left:auto}.bot-message{background:#fff;margin-right:auto}.system-message{background:#fff6d1;text-align:center;max-width:100%}.send-form{display:flex;gap:8px;padding:12px;border-top:1px solid #eee}.send-form input{flex:1;padding:10px;font-size:16px}.send-form button{padding:10px}.chat-wrapper{background-color:#2d3748;border-left:1px solid #3c3c3c;display:flex;flex-direction:column;width:300px;height:100vh;color:#e0e0e0;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;box-sizing:border-box;padding:15px}.chat-wrapper h3{color:#f4f87f;margin-top:0;margin-bottom:15px;font-size:1.2em;text-align:center;border-bottom:1px solid #3c3c3c;padding-bottom:10px}.messages{flex-grow:1;overflow-y:auto;padding-right:10px;margin-bottom:15px;display:flex;flex-direction:column;gap:10px;background-color:#1a202c}.messages::-webkit-scrollbar{width:8px}.messages::-webkit-scrollbar-track{background:#232323;border-radius:4px}.messages::-webkit-scrollbar-thumb{background:#555;border-radius:4px}.messages::-webkit-scrollbar-thumb:hover{background:#777}.chat-message{padding:8px 12px;border-radius:8px;max-width:80%;word-wrap:break-word;font-size:.9em;line-height:1.4}.chat-message .meta{font-size:.75em;color:#aaa;margin-bottom:4px;display:flex;justify-content:space-between}.chat-message .sender{font-weight:700;color:#888;margin-right:10px}.chat-message .time{color:#666}.chat-message .text{color:#e0e0e0}.user-message{background-color:#007bff;align-self:flex-end;color:#fff;border-bottom-right-radius:0}.user-message .meta .sender,.user-message .meta .time{color:#fffc}.bot-message{background-color:#3a3a3a;align-self:flex-start;border:1px solid #4a4a4a;border-bottom-left-radius:0}.bot-message .meta .sender,.bot-message .meta .time{color:#999}.system-message{background-color:#4a4a4a;color:#c9c9c9;text-align:center;align-self:center;width:fit-content;max-width:90%;font-style:italic;font-size:.8em;padding:6px 10px;border-radius:5px;margin-bottom:5px}.system-message .meta{display:none}.send-form{display:flex;gap:10px;margin-top:auto}.send-form input[type=text]{flex-grow:1;padding:10px;border:1px solid #4a4a4a;border-radius:5px;background-color:#3a3a3a;color:#e0e0e0;font-size:.9em;outline:none}.send-form input[type=text]::placeholder{color:#888}.send-form input[type=text]:focus{border-color:#007bff}.send-form button{flex:1;padding:.4rem;background:linear-gradient(110deg,#48bb78,#38a169);color:#fff;border:none;border-radius:5px;font-size:1rem;cursor:pointer;transition:all .3s ease;font-weight:300;display:flex;align-items:center;justify-content:center;gap:.3rem}.send-form button:hover{background-color:#0056b3}.send-form button:disabled{background-color:#555;cursor:not-allowed}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Baloo Bhai,cursive;background:#f0f2f5;color:#333}.project-info h1{font-size:2.5rem;text-align:center;margin-top:1rem;margin-bottom:1rem;color:#03040c;font-weight:700;text-shadow:2px 2px 4px rgba(0,0,0,.1)}.join-container{display:flex;justify-content:center;align-items:center;height:90vh;background:linear-gradient(135deg,#000,#430101);color:#fff}.join-form{background-color:#fff;padding:2rem;border-radius:20px;box-shadow:0 8px 20px #0003;text-align:center;width:100%;max-width:400px;border:1px solid #e2e8f0}.join-form h1{margin-bottom:1.5rem;color:#444;font-size:1.8rem}.join-form input{width:100%;padding:.75rem;margin-bottom:1rem;border:2px solid #e2e8f0;border-radius:8px;font-size:1rem;transition:all .3s ease;font-family:inherit}.join-form input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.join-form button{width:100%;padding:.75rem;background-color:#000;color:#fff;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:all .3s ease;font-weight:600;font-family:inherit}.join-form button:hover:not(:disabled){background-color:#333;transform:translateY(-2px);box-shadow:0 4px 12px #0000004d}.join-form button:disabled{background-color:#ccc;cursor:not-allowed;transform:none;box-shadow:none}.editor-container{display:flex;height:100vh;background-color:#f7fafc}.sidebar{width:280px;padding:1.5rem;background:linear-gradient(180deg,#1a202c,#2d3748);color:#edf2f7;display:flex;flex-direction:column;justify-content:space-between;overflow-y:auto;border-right:2px solid #4a5568;box-shadow:2px 0 10px #0000001a}.room-info{text-align:center;padding:1rem;background-color:#2d3748;border-radius:10px;margin-bottom:1rem}.room-info h2{font-size:1.2rem;margin-bottom:1rem;color:#fbd38d;font-weight:600}.copy-button{padding:.6rem 1.2rem;background:linear-gradient(135deg,#48bb78,#38a169);color:#fff;border:none;border-radius:8px;cursor:pointer;transition:all .3s ease;font-weight:600;font-size:.9rem}.copy-button:hover{background:linear-gradient(135deg,#38a169,#2f855a);transform:translateY(-2px);box-shadow:0 4px 12px #48bb784d}.copy-success{display:block;margin-top:.5rem;color:#68d391;font-size:.9rem;font-weight:600;animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}h3{margin-top:2rem;font-size:1.1rem;font-weight:600;border-bottom:2px solid #4a5568;padding-bottom:.5rem;color:#e2e8f0}ul{list-style:none;margin-top:.8rem}ul li{background:linear-gradient(135deg,#2d3748,#4a5568);margin-bottom:8px;padding:.8rem;border-radius:8px;font-size:.9rem;text-align:center;border:1px solid #4a5568;transition:all .3s ease;cursor:default}ul li:hover{background:linear-gradient(135deg,#4a5568,#718096);transform:translate(5px)}.typing-indicator{margin-top:1rem;font-size:.9rem;color:#fbd38d;text-align:center;font-style:italic;animation:pulse 1.5s infinite}.language-selector{margin-top:1.5rem;padding:.8rem;background:linear-gradient(135deg,#4a5568,#2d3748);color:#0c0000;border:2px solid #4a5568;border-radius:8px;font-size:1rem;cursor:pointer;transition:all .3s ease;font-weight:500}.language-selector:hover{background:linear-gradient(135deg,#2d3748,#1a202c);border-color:#667eea;transform:translateY(-2px)}.language-selector:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea4d}.run-section{margin-top:1.5rem}.run-buttons{display:flex;gap:.8rem;margin-bottom:1rem}.run-button{flex:1;padding:.8rem;background:linear-gradient(135deg,#48bb78,#38a169);color:#fff;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:all .3s ease;font-weight:600;display:flex;align-items:center;justify-content:center;gap:.5rem}.run-button:hover:not(:disabled){background:linear-gradient(135deg,#38a169,#2f855a);transform:translateY(-2px);box-shadow:0 4px 12px #48bb7866}.run-button:disabled{background:linear-gradient(135deg,#4a5568,#2d3748);cursor:not-allowed;opacity:.8;transform:none;box-shadow:none}.run-button.running{animation:pulse 1.5s infinite}.clear-button{padding:.8rem 1rem;background:linear-gradient(135deg,#4a5568,#2d3748);color:#fff;border:none;border-radius:8px;cursor:pointer;transition:all .3s ease;font-weight:600}.clear-button:hover{background:linear-gradient(135deg,#2d3748,#1a202c);transform:translateY(-2px);box-shadow:0 4px 12px #4a556866}.output-section{margin-top:1rem}.output-container{background-color:#1a202c;border:2px solid #4a5568;border-radius:8px;padding:1rem;font-family:Fira Code,Courier New,monospace;font-size:.85rem;min-height:160px;max-height:220px;overflow-y:auto;white-space:pre-wrap;color:#e2e8f0;line-height:1.5;box-shadow:inset 0 2px 8px #0000004d}.running-indicator{color:#fbd38d;margin-bottom:.8rem;font-style:italic;font-weight:600;animation:pulse 1.5s infinite}.output-empty{color:#a0aec0;font-style:italic;opacity:.8}.editor-status{background:linear-gradient(135deg,#2d3748,#4a5568);padding:.8rem 1.2rem;color:#e2e8f0;font-size:.9rem;margin-bottom:1rem;border-radius:8px;border-left:4px solid #48bb78;display:flex;justify-content:space-between;align-items:center;box-shadow:0 2px 8px #0000001a}.leave-button{margin-top:1.5rem;padding:.8rem;background:linear-gradient(135deg,#e53e3e,#c53030);color:#fff;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:all .3s ease;font-weight:600}.leave-button:hover{background:linear-gradient(135deg,#c53030,#9c2626);transform:translateY(-2px);box-shadow:0 4px 12px #e53e3e66}.editor-wrapper{flex-grow:1;background-color:#f7fafc;padding:1.5rem;display:flex;flex-direction:column}.output-container::-webkit-scrollbar{width:8px}.output-container::-webkit-scrollbar-track{background:#1a202c;border-radius:4px}.output-container::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#4a5568,#2d3748);border-radius:4px}.output-container::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#718096,#4a5568)}.sidebar::-webkit-scrollbar{width:6px}.sidebar::-webkit-scrollbar-track{background:#1a202c}.sidebar::-webkit-scrollbar-thumb{background:#4a5568;border-radius:3px}.sidebar::-webkit-scrollbar-thumb:hover{background:#718096}@keyframes pulse{0%{opacity:1}50%{opacity:.7}to{opacity:1}}@media (max-width: 768px){.editor-container{flex-direction:column}.sidebar{width:100%;padding:1rem;max-height:50vh;border-right:none;border-bottom:2px solid #4a5568}.editor-wrapper{padding:1rem;margin:0}.join-form{width:90%;padding:1.5rem}.project-info h1{font-size:2rem}.output-container{min-height:120px;max-height:150px;font-size:.8rem}.run-buttons{flex-direction:column;gap:.5rem}.run-button,.clear-button{width:100%}.editor-status{flex-direction:column;gap:.5rem;text-align:center}.room-info h2{font-size:1rem}}@media (max-width: 1024px) and (min-width: 769px){.editor-container{flex-direction:row}.sidebar{width:250px}.editor-wrapper{padding:1.5rem}.project-info h1{font-size:2.2rem}}@media (min-width: 1025px){.editor-container{flex-direction:row}.sidebar{width:280px}.editor-wrapper{padding:2rem}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.run-button.running:before{content:"⚡";animation:spin 1s linear infinite;margin-right:.5rem}.output-container pre{margin:0;font-family:inherit}.output-container pre:has-text("✅"){color:#68d391}.output-container pre:has-text("❌"){color:#fc8181}.copy-button:active,.run-button:active:not(:disabled),.clear-button:active,.leave-button:active{transform:translateY(0)}button:focus-visible{outline:2px solid #667eea;outline-offset:2px}input:focus-visible{outline:2px solid #667eea;outline-offset:2px}select:focus-visible{outline:2px solid #667eea;outline-offset:2px}.ask-ai-button{background-color:#3b82f6;color:#fff;border:none;padding:8px 12px;border-radius:6px;margin-top:10px;cursor:pointer;font-size:14px;transition:background .2s}.ask-ai-button:hover{background-color:#2563eb}.ai-panel{position:fixed;top:0;right:0;width:45%;height:100%;background-color:#0f172a;color:#fff;padding:20px;border-left:2px solid #1e293b;overflow-y:auto;z-index:100}.ai-panel pre{background:#1e293b;padding:10px;border-radius:6px;white-space:pre-wrap;font-size:14px}.replace-button{background-color:#22c55e;color:#fff;border:none;padding:8px 12px;border-radius:6px;margin-top:10px;cursor:pointer}.replace-button:hover{background-color:#16a34a}.close-ai{background-color:#ef4444;color:#fff;border:none;padding:8px 12px;border-radius:6px;margin-top:10px;cursor:pointer}.close-ai:hover{background-color:#dc2626}
