/* Floating Icon */ 
#techno-chatbot-floating-icon { position: fixed; width: 60px; height: 60px; background: var(--techno-chaticon-bg); color: var(--techno-chaticon-text); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; z-index: var(--techno-chatbot-z-index); box-shadow: 0 4px 12px rgba(0,0,0,0.2); overflow: hidden; }
#techno-chatbot-floating-icon *::selection, #techno-chatbot-floating-icon *::-moz-selection, #techno-chatbot-floating-icon *::-webkit-selection { background: transparent; } 
#techno-chatbot-floating-icon img { object-fit: var(--techno-chatbot-iconsize); max-width: 100%; max-height: 100%; width: 100%; height: 100%; }

/* Floating Text */ 
#techno-chatbot-floating-text { position: fixed; font-size: var(--techno-chatbot-floatingtxtsize); background: var(--techno-floatingtxt-bg); color: var(--techno-floatingtxt-text); padding: 5px 10px; }

/* Chat Window */ 
#techno-chatbot-window { position: fixed; width: 320px; height: var(--techno-chatbot-height); max-height: 95%; background: var(--techno-chatbox-bg); border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); display: flex; flex-direction: column; overflow: hidden; z-index: var(--techno-chatbot-z-index); } 
#techno-chatbot-window.techno-chatbot-hidden { display: none; } 

/* Header */ 
.techno-chatbot-header { background: var(--techno-header-bg); color: var(--techno-header-text); font-size: var(--techno-chatbot-headingsize); padding: 12px; display: flex; justify-content: space-between; align-items: center; } 
.techno-chatbot-header button { background: none; border: none; color: var(--techno-header-text); font-size: 18px; cursor: pointer; } 

/* Header Menu */
.techno-chatbot-menu { display: inline-flex; margin-left: auto; margin-right: 5px; font-size: 14px; position: relative; }
.techno-chatbot-menu > a { color: var(--techno-header-text); cursor: pointer; text-decoration: none; padding: 3px 10px; border: 1px solid var(--techno-header-text); }
.techno-chatbot-menu > a.active { background: var(--techno-header-text); color: var(--techno-header-bg); font-weight: 500; }
.techno-chatbot-menu ul { position: absolute; right: 0; background: var(--techno-header-bg); list-style: none; padding: 0; margin: 0; top: 30px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); display: flex ; border: 1px solid var(--techno-header-text); overflow: hidden; max-height: 0px; transition: 0.3s all ease-in; opacity: 0;}
.techno-chatbot-menu > a.active + ul { max-height: 9999px; opacity: 1; }
.techno-chatbot-menu ul a { text-decoration: none; color: var(--techno-header-text); display: block; padding: 5px 10px; cursor: pointer; border-bottom: 1px solid rgba(0, 0, 0, 0.5); font-weight: 500; }
.techno-chatbot-menu ul a:hover{ background: var(--techno-header-text); color: var(--techno-header-bg); }

/* Messages */ 
#techno-chatbot-messages { display: flex; flex: 1; flex-direction: column; padding: 10px; overflow-y: auto; font-size: var(--techno-chatbot-chatmsgsize); } 

/* Input */ 
.techno-chatbot-input-wrapper { background: var(--techno-input-bg); color: var(--techno-input-txt); display: flex; border-top: 1px solid rgba(44, 42, 42, 0.15); } 
#techno-chatbot-input { flex: 1; padding: 10px; border: none; outline: none; font-size: var(--techno-chatbot-inputtxtsize); } 
#techno-chatbot-send { background: var(--techno-sendbtn-bg); color: var(--techno-sendbtn-txt); border: none; padding: 0 15px; cursor: pointer; font-size: var(--techno-chatbot-sendbtnsize); } 
.techno-chatbot-message { margin-bottom: 8px; padding: 8px 12px; border-radius: 15px; max-width: 80%; word-wrap: break-word; } 
.techno-chatbot-message.visitor { background: var(--techno-visitor-bubble-bg); color: var(--techno-visitor-bubble-text); margin-left: auto; text-align: right; } 
.techno-chatbot-message.admin { background: var(--techno-admin-bubble-bg); color: var(--techno-admin-bubble-text); margin-right: auto; }

/* Typing */
.techno-chatbot-message.typing { display: flex; gap: 4px; align-items: center; width: 50px; justify-content: center; } 
.techno-chatbot-message.typing span { width: 6px; height: 6px; background: var(--techno-admin-bubble-text); border-radius: 50%; animation: technoTyping 1.2s infinite ease-in-out; } 
.techno-chatbot-message.typing span:nth-child(2) { animation-delay: 0.2s; } 
.techno-chatbot-message.typing span:nth-child(3) { animation-delay: 0.4s; } 
@keyframes technoTyping { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } }