:root{--pink-gradient: linear-gradient(45deg, #ec4899, #db2777)}body{background-color:#111827;color:#fff;font-family:Google Sans,sans-serif}.chat-container-wrapper{background:#111827}.message{max-width:85%;margin-bottom:12px;padding:12px 16px;border-radius:20px;position:relative;opacity:0;transform:translateY(20px);animation:messageSlideIn .3s ease forwards;font-size:.95rem;line-height:1.4}.message-content{margin-bottom:2px}@keyframes messageSlideIn{to{opacity:1;transform:translateY(0)}}.user-message{background:var(--pink-gradient);color:#fff;margin-left:auto;border-bottom-right-radius:4px}.bot-message{background:#374151;color:#fff;margin-right:auto;border-bottom-left-radius:4px}.bot-message .message-content{overflow:hidden;white-space:pre-wrap;word-break:break-word}.message-time{font-size:.6rem;opacity:.6;display:block;text-align:right;margin-top:2px;color:#fff9}.user-message .message-time{color:#fffc}.bot-message .message-time{color:#fff9}.typing-indicator{background:#374151;padding:8px 16px;border-radius:20px;display:inline-flex;align-items:center;margin-bottom:12px;animation:fadeIn .3s ease-in-out;color:#fff}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.status-dot{width:8px;height:8px;border-radius:50%;margin-right:0;position:relative;display:inline-block;background-color:#10b981}.status-dot.online{background-color:#10b981}.status-dot.offline{background-color:#ef4444}.status-dot:after{content:"";position:absolute;width:100%;height:100%;border-radius:50%;animation:pulse 2s infinite;background:inherit}@keyframes pulse{0%{transform:scale(1);opacity:.5}70%{transform:scale(2);opacity:0}to{transform:scale(1);opacity:0}}.typing-dots{display:inline-flex;align-items:center;gap:4px;margin-right:8px}.typing-dots span{width:5px;height:5px;background:#9ca3af;border-radius:50%;animation:bounce 1.4s infinite ease-in-out;display:inline-block}.typing-dots span:nth-child(1){animation-delay:0s}.typing-dots span:nth-child(2){animation-delay:.2s}.typing-dots span:nth-child(3){animation-delay:.4s}@keyframes bounce{0%,60%,to{transform:translateY(0)}30%{transform:translateY(-4px)}}.typing-animation{display:inline-block}#chat-container::-webkit-scrollbar{width:6px}#chat-container::-webkit-scrollbar-thumb{background:#4b5563;border-radius:3px}#chat-container::-webkit-scrollbar-track{background:#1f2937}#send-btn{min-width:42px;width:42px;height:42px;padding:0;flex-shrink:0}#send-btn i{font-size:18px}.dropdown{position:relative;display:inline-block}.dropdown-content{display:none;position:absolute;right:0;top:100%;background-color:#1f2937;min-width:160px;box-shadow:0 8px 16px #0000001a;border-radius:8px;z-index:1;margin-top:8px;border:1px solid #374151}.dropdown-content.show{display:block;animation:fadeIn .2s ease-out}.dropdown-button{padding:12px 14px;display:flex;align-items:center;gap:8px;color:#fff;transition:background-color .2s}.dropdown-button:hover{background-color:#374151}.dropdown-button i{font-size:18px}.message img,.message video{border-radius:12px;margin-bottom:8px;max-height:300px;object-fit:cover}.message video{width:100%;background-color:#000}.message img.loading,.message video.loading{background:#f3f4f6;min-height:200px;position:relative}.message img.loading:before{content:"Loading...";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#9ca3af;font-size:1rem}@media screen and (min-width: 1024px){body{background:linear-gradient(135deg,#111827,#1f2937);height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem}.chat-container-wrapper{display:flex;width:80%;max-width:1200px;height:80vh;background:#111827;border-radius:16px;overflow:hidden;box-shadow:0 10px 25px #0006}.sidebar{width:300px;background:#f8f9fa;border-right:1px solid #e5e7eb;display:none}.chat-main{flex:1;max-width:unset;height:100%;margin:0;background:#111827}#chat-container{height:calc(100% - 140px)}.message{max-width:60%}.message img,.message video{max-height:400px}.sidebar{display:flex;flex-direction:column;padding:1.5rem}.chat-header .status-dot{background-color:#10b981;margin-left:0}#info-btn-desktop{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .2s}#info-btn-desktop i{font-size:24px;color:#ec4899}#info-btn-desktop:hover{background-color:#f3f4f6}.chat-header{padding:1.5rem;background:#1f2937;border-bottom:1px solid #374151;display:flex;align-items:center;justify-content:space-between;color:#fff}.chat-header .status-dot{display:inline-block;width:8px;height:8px;background-color:inherit}.chat-header .status-dot.online{background-color:#10b981}.chat-header .status-dot.offline{background-color:#ef4444}.chat-header .status-dot:after{content:"";position:absolute;width:100%;height:100%;border-radius:50%;animation:pulse 2s infinite;background:inherit}}@media screen and (min-width: 1024px){.mobile-header{display:none}}@media screen and (min-width: 1024px){.chat-header{padding:1.5rem;background:#fff;border-bottom:1px solid #e5e7eb}.input-area{padding:1.5rem;background:#fff;border-top:1px solid #e5e7eb}}.sidebar{display:none;width:300px;background:#1f2937;border-right:1px solid #374151}.chat-container-wrapper{width:100%;height:100%}.mobile-header .status-dot{margin-right:6px}@media screen and (min-width: 1024px){.chat-header .status-dot{margin-right:0}}@media screen and (min-width: 1024px){.chat-container-wrapper{display:flex;width:80%;max-width:1200px;height:80vh;background:#111827;border-radius:16px;overflow:hidden;box-shadow:0 10px 25px #0003}.sidebar{display:flex;flex-direction:column;padding:1.5rem}.chat-header{display:flex!important;padding:1.5rem;background:#1f2937;border-bottom:1px solid #374151;position:sticky;top:0;z-index:10;color:#fff}.chat-header .status-dot{display:inline-block;width:8px;height:8px;background-color:#10b981}.chat-header h2{color:#1f2937;font-size:1.125rem}#info-btn-desktop{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%}#info-btn-desktop i{font-size:24px;color:#ec4899}}.chat-header.hidden{display:none}.modal-header,.modal-body{margin-bottom:1.5rem}.modal-footer{margin-top:1rem;display:flex;justify-content:flex-end}.hidden{display:none!important}#character-name-input{margin:1rem 0;width:100%;padding:.75rem 1rem;border-radius:.5rem;border:2px solid #4b5563;font-size:1rem;transition:all .2s ease;background:#374151;color:#fff}#character-name-input:focus{border-color:#ec4899;box-shadow:0 0 0 2px #8b5cf61a;outline:none}.chat-header{display:none;padding:1.5rem;background:#1f2937;border-bottom:1px solid #374151;z-index:10;color:#fff}@media screen and (min-width: 1024px){.chat-header{display:flex}.mobile-header{display:none}}#change-name-desktop{font-size:.875rem;padding:.5rem 1rem;color:#fff;border:1px solid #374151;border-radius:.5rem;transition:all .2s ease}#change-name-desktop:hover{background-color:#374151;border-color:#d1d5db}#change-name-desktop i{font-size:1.125rem}@media screen and (min-width: 1024px){.chat-header{padding:1rem 1.5rem}.chat-header .flex.items-center.gap-2{gap:1rem}}body{overflow:hidden;height:100vh;height:-webkit-fill-available}html{height:-webkit-fill-available}.chat-container-wrapper{width:100%;height:100%;overflow:hidden;position:fixed;top:0;left:0}.chat-main{height:100%;max-height:100vh;max-height:-webkit-fill-available;display:flex;flex-direction:column;background:#111827;border-color:#374151}#chat-container{flex:1;overflow-y:auto;height:calc(100vh - 140px);padding:1rem;background:#111827;color:#fff}.mobile-header,.chat-header{flex-shrink:0;background:#111827;border-color:#374151}.border-t.p-4.bg-white{flex-shrink:0;background:#1f2937!important;border-color:#374151}#user-input{background:#374151;color:#fff;border-color:#4b5563}#user-input:focus{border-color:#ec4899}#user-input::placeholder{color:#9ca3af}@media screen and (min-width: 1024px){body{overflow:auto;height:100vh;padding:2rem}.chat-container-wrapper{position:static;height:80vh}#chat-container{height:calc(100% - 140px)}.chat-container-wrapper,.chat-main{background:#111827}}.modal{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:none;align-items:center;justify-content:center;z-index:1000;opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease}.modal.show{opacity:1;visibility:visible;display:flex}.modal-content{background:#1f2937;padding:1.5rem;border-radius:12px;width:90%;max-width:500px;transform:translateY(-20px);transition:transform .3s ease;position:relative;z-index:1001;color:#fff}.modal.show .modal-content{transform:translateY(0)}.modal button{background:var(--pink-gradient)}.modal button:hover{opacity:.9}.text-gray-500{color:#9ca3af!important}a{color:#ec4899}a:hover{color:#db2777}.typing-indicator span.text-sm{color:#9ca3af}.text-gray-500,.text-gray-600,.text-gray-800{color:#9ca3af!important}.hover\:bg-gray-100:hover{background-color:#374151!important}.modal-content h2,.modal-content p,.modal-content ul li{color:#fff}.modal-content .text-gray-600{color:#9ca3af!important}.status-text,.typing-indicator span.text-sm{color:#e5e7eb}@media screen and (min-width: 1024px){.chat-header h2{color:#fff!important}#info-btn-desktop:hover{background-color:#374151}}.sidebar{background:#1f2937}.sidebar h2{color:#fff}.sidebar p{color:#9ca3af}.text-gray-800,.text-gray-700,.text-gray-600{color:#e5e7eb!important}.mobile-header{background:linear-gradient(to right,#1f2937,#111827)}@media screen and (min-width: 1024px){body{background:linear-gradient(135deg,#111827,#1f2937);height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem}.chat-container-wrapper{box-shadow:0 10px 25px #0006}}.phone-interface{position:fixed;top:0;left:0;width:100%;height:100%;background:linear-gradient(to bottom,#1f2937,#111827);z-index:1000;display:flex;flex-direction:column;justify-content:space-between;padding:2rem}.phone-header,.caller-info{display:flex;flex-direction:column;align-items:center;gap:1rem}.caller-avatar{width:120px;height:120px;border-radius:50%;border:3px solid #ec4899}.caller-details{text-align:center}.caller-name{color:#fff;font-size:1.5rem;font-weight:600}.call-status{color:#9ca3af;font-size:1rem}.call-duration{color:#fff;font-size:1.25rem;margin-top:1rem}.call-controls{display:flex;justify-content:center;padding:2rem}.control-btn{width:80px;height:80px;min-width:80px;min-height:80px;border-radius:50%;background:#ef4444;color:#fff;display:flex;align-items:center;justify-content:center;font-size:2rem;transition:all .2s;padding:0;flex-shrink:0}.control-btn:hover{transform:scale(1.1)}.control-btn.active{background:#ec4899}.end-call{background:#ef4444;color:#fff!important}.end-call:hover{background:#dc2626}.end-call i{color:#fff!important}.hidden{display:none}@keyframes pulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.calling .call-status{animation:pulse 1s infinite}@keyframes ringing{0%,to{transform:rotate(-10deg)}50%{transform:rotate(10deg)}}.ringing .ri-phone-fill{color:#10b981;animation:ringing .5s infinite}.call-status.ringing{color:#10b981;animation:pulse 1s infinite}.call-status.connected{color:#10b981}.ring-animation{position:absolute;width:140px;height:140px;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%)}.ring-animation:before{content:"";position:absolute;width:100%;height:100%;border-radius:50%;border:3px solid #10b981;animation:ringExpand 1.5s infinite}@keyframes ringExpand{0%{transform:scale(.3);opacity:1}to{transform:scale(2);opacity:0}}@media screen and (max-width: 380px){.control-btn{width:56px;height:56px;min-width:56px;min-height:56px;font-size:1.25rem}}
