/* TerveysNavi Chatbot Widget */
.nsi-chat-trigger { position: fixed; bottom: 24px; right: 24px; z-index: 9999; width: 60px; height: 60px; border-radius: 50%; background: var(--tv-teal, #0D9488); color: white; border: none; cursor: pointer; box-shadow: 0 4px 20px rgba(13,148,136,0.35); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.nsi-chat-trigger:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(13,148,136,0.45); }
.nsi-chat-trigger.open { transform: rotate(45deg); }

.nsi-chat-window { position: fixed; bottom: 96px; right: 24px; z-index: 9998; width: 380px; max-height: 520px; background: white; border-radius: 20px; box-shadow: 0 16px 64px rgba(0,0,0,0.15); display: none; flex-direction: column; overflow: hidden; border: 1px solid rgba(0,0,0,0.06); }
.nsi-chat-window.visible { display: flex; animation: chatSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes chatSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.nsi-chat-header { background: var(--tv-teal, #0D9488); color: white; padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.nsi-chat-header .chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.nsi-chat-header .chat-title { font-weight: 700; font-size: 0.92rem; }
.nsi-chat-header .chat-subtitle { font-size: 0.72rem; opacity: 0.7; margin-top: 2px; }

.nsi-chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: 340px; min-height: 200px; }
.nsi-chat-msg { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 0.88rem; line-height: 1.6; }
.nsi-chat-msg.bot { align-self: flex-start; background: #f0f7f7; color: #1E293B; border-bottom-left-radius: 4px; }
.nsi-chat-msg.user { align-self: flex-end; background: var(--tv-teal, #0D9488); color: white; border-bottom-right-radius: 4px; }
.nsi-chat-msg.typing { align-self: flex-start; background: #f0f7f7; color: #64748B; font-style: italic; }

.nsi-chat-input-wrap { border-top: 1px solid rgba(0,0,0,0.06); padding: 12px 16px; display: flex; gap: 8px; }
.nsi-chat-input { flex: 1; border: 1px solid rgba(0,0,0,0.1); border-radius: 100px; padding: 10px 18px; font-size: 0.88rem; font-family: inherit; outline: none; transition: border-color 0.2s; }
.nsi-chat-input:focus { border-color: var(--tv-teal, #0D9488); }
.nsi-chat-send { width: 40px; height: 40px; border-radius: 50%; background: var(--tv-teal, #0D9488); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: background 0.2s; flex-shrink: 0; }
.nsi-chat-send:hover { background: var(--tv-teal-light, #14B8A6); }
.nsi-chat-disclaimer { padding: 8px 16px; font-size: 0.65rem; color: #64748B; text-align: center; border-top: 1px solid rgba(0,0,0,0.04); background: #fafbfc; }

@media (max-width: 480px) {
    .nsi-chat-window { width: calc(100vw - 32px); right: 16px; bottom: 88px; max-height: 70vh; }
    .nsi-chat-trigger { bottom: 16px; right: 16px; }
}
