:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{width:100%;height:100%}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Inter,Roboto,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh;color:#1f2937}.app{min-height:100vh;padding:1rem;display:flex;justify-content:center;align-items:center}.container{max-width:1200px;width:100%;margin:0 auto;background:#fffffff2;border-radius:24px;box-shadow:0 25px 50px -12px #00000040;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);overflow:hidden;min-height:calc(100vh - 2rem);display:flex;flex-direction:column}.header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:2rem;position:relative}.header-content{display:flex;justify-content:space-between;align-items:center}.header h1{font-size:2rem;font-weight:700;margin:0;letter-spacing:-.025em}.status-indicator{display:flex;align-items:center;gap:.75rem;background:#ffffff1a;padding:.75rem 1rem;border-radius:12px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.status-dot{width:8px;height:8px;border-radius:50%;animation:pulse 2s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.status-text{font-weight:600;font-size:.875rem}.qr-section{padding:3rem 2rem;text-align:center;background:#f8fafc}.qr-content h3{font-size:1.5rem;font-weight:700;margin-bottom:.5rem;color:#1f2937}.qr-content p{color:#6b7280;margin-bottom:2rem}.qr-container{display:inline-flex;padding:2rem;background:#fff;border-radius:16px;box-shadow:0 10px 25px -5px #0000001a}.qr-image{width:256px;height:256px;border-radius:8px}.qr-loading{text-align:center;padding:2rem}.qr-loading p{color:#6b7280;margin-bottom:1rem;font-size:1rem}.loading-spinner{width:40px;height:40px;border:4px solid #e5e7eb;border-top:4px solid #667eea;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.main-interface{padding:2rem}.tab-navigation{display:flex;gap:.5rem;margin-bottom:2rem;background:#f1f5f9;padding:.5rem;border-radius:12px}.tab-button{flex:1;padding:.75rem 1rem;border:none;background:transparent;color:#64748b;font-weight:600;border-radius:8px;cursor:pointer;transition:all .2s ease}.tab-button:hover{color:#475569}.tab-button.active{background:#fff;color:#1f2937;box-shadow:0 4px 6px -1px #0000001a}.tab-content{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 4px 6px -1px #0000001a}.send-section{max-width:600px;margin:0 auto}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:600;color:#374151}.form-input,.form-textarea{width:100%;padding:.75rem 1rem;border:2px solid #e5e7eb;border-radius:12px;font-size:1rem;transition:all .2s ease;background:#f9fafb}.form-input:focus,.form-textarea:focus{outline:none;border-color:#667eea;background:#fff;box-shadow:0 0 0 3px #667eea1a}.send-button{width:100%;padding:1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease}.send-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 25px -5px #667eea66}.send-button:disabled{opacity:.6;cursor:not-allowed}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.section-header h3{font-size:1.25rem;font-weight:700;color:#1f2937}.load-button{padding:.5rem 1rem;background:#667eea;color:#fff;border:none;border-radius:8px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s ease}.load-button:hover{background:#5a67d8;transform:translateY(-1px)}.contacts-list,.chats-list{max-height:400px;overflow-y:auto;border-radius:12px;background:#f8fafc}.contact-item,.chat-item{display:flex;align-items:center;padding:1rem;border-bottom:1px solid #e5e7eb;cursor:pointer;transition:all .2s ease}.contact-item:hover,.chat-item:hover{background:#f1f5f9}.contact-avatar,.chat-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;margin-right:1rem;position:relative}.group-indicator{position:absolute;bottom:-2px;right:-2px;font-size:.75rem;background:#10b981;border-radius:50%;width:16px;height:16px;display:flex;align-items:center;justify-content:center}.contact-info,.chat-info{flex:1}.contact-name,.chat-name{font-weight:600;color:#1f2937;margin-bottom:.25rem}.contact-number,.chat-id{font-size:.875rem;color:#6b7280}.unread-badge{background:#ef4444;color:#fff;border-radius:50%;padding:.25rem .5rem;font-size:.75rem;font-weight:600;min-width:20px;text-align:center}.chat-messages-section{height:500px;display:flex;flex-direction:column}.chat-header{display:flex;align-items:center;gap:1rem;padding-bottom:1rem;border-bottom:1px solid #e5e7eb;margin-bottom:1rem}.back-button{padding:.5rem 1rem;background:#6b7280;color:#fff;border:none;border-radius:8px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s ease}.back-button:hover{background:#4b5563}.chat-header h3{font-size:1.25rem;font-weight:700;color:#1f2937;margin:0}.messages-container{flex:1;overflow-y:auto;padding:1rem;background:#f8fafc;border-radius:12px;display:flex;flex-direction:column;gap:.75rem}.message{display:flex;margin-bottom:.5rem}.message.sent{justify-content:flex-end}.message.received{justify-content:flex-start}.message-content{max-width:70%;padding:.75rem 1rem;border-radius:18px;position:relative}.message.sent .message-content{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-bottom-right-radius:4px}.message.received .message-content{background:#fff;color:#1f2937;border:1px solid #e5e7eb;border-bottom-left-radius:4px}.message-text{font-size:.875rem;line-height:1.4;margin-bottom:.25rem}.message-time{font-size:.75rem;opacity:.7;text-align:right}.message.sent .message-time{color:#fffc}.message.received .message-time{color:#6b7280}.no-messages{display:flex;align-items:center;justify-content:center;height:100%;color:#6b7280;font-style:italic}.notification{position:fixed;top:2rem;right:2rem;padding:1rem 1.5rem;border-radius:12px;color:#fff;font-weight:600;z-index:1000;animation:slideIn .3s ease;box-shadow:0 10px 25px -5px #0000001a}.notification.success{background:#10b981}.notification.error{background:#ef4444}.notification.info{background:#3b82f6}@keyframes slideIn{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@media (min-width: 1400px){.container{max-width:1400px}}@media (max-width: 768px){.app{padding:.5rem}.container{border-radius:16px;min-height:calc(100vh - 1rem);width:100%;margin:0 auto}.header{padding:1.5rem}.header h1{font-size:1.5rem}.header-content{flex-direction:column;gap:1rem;text-align:center}.main-interface{padding:1rem}.tab-navigation{flex-direction:column}.tab-content{padding:1rem}.chat-messages-section{height:400px}.message-content{max-width:85%}.notification{top:1rem;right:1rem;left:1rem}}.contacts-list::-webkit-scrollbar,.chats-list::-webkit-scrollbar,.messages-container::-webkit-scrollbar{width:6px}.contacts-list::-webkit-scrollbar-track,.chats-list::-webkit-scrollbar-track,.messages-container::-webkit-scrollbar-track{background:#f1f5f9;border-radius:3px}.contacts-list::-webkit-scrollbar-thumb,.chats-list::-webkit-scrollbar-thumb,.messages-container::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.contacts-list::-webkit-scrollbar-thumb:hover,.chats-list::-webkit-scrollbar-thumb:hover,.messages-container::-webkit-scrollbar-thumb:hover{background:#94a3b8}
