﻿/* @package PCWIN IT - CODE CSS 
 * @author & Copyright PCWIN KALLABA – All rights reserved | Powered by PCWIN IT BUSINESS (https://pcwin.ch)
 * @note FILE DO NOT MODIFY! */
#pcwin-chatbot { position: fixed; bottom: 28px; right: 7px; z-index: 999999; font-family: var(--font-primary, sans-serif); }
/* Chat Button (Bubble) */
.chat-toggle-btn {width: 60px; height: 60px; background: linear-gradient(135deg, #0056b3, #00d2ff); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-size: 24px; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 2px solid rgba(255, 255, 255, 0.2);    margin-right: 10px}
.chat-toggle-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
/* Chat Window */
.chat-window { position: absolute; bottom: 70px; right: 0; width: 400px; height: auto; max-height: 650px; min-height: 600px; background: rgba(10, 25, 47, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-radius: 15px; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.95); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); overflow: hidden; }
.chat-window.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
/* Header */
.chat-header { background: rgba(0, 86, 179, 0.8); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.chat-title { color: white; font-weight: bold; font-size: 14px; display: flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 310px; }
.chat-close { color: rgba(255,255,255,0.7); cursor: pointer; font-size: 20px; transition: color 0.2s; }
.chat-close:hover { color: white; }
/* Body (Messages) */
.chat-body { padding: 15px; flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; max-height: 650px; }
/* Scrollbar für Body */
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.chat-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
/* Messages */
.chat-message { max-width: 100%; padding: 10px 15px; border-radius: 15px; font-size: 14px; line-height: 1.4; animation: fadeIn 0.3s ease; }
.message-bot { align-self: flex-start; background: rgba(255, 255, 255, 0.1); color: white; border-bottom-left-radius: 2px; }
.message-user { align-self: flex-end; background: linear-gradient(135deg, #0056b3, #00a8ff); color: white; border-bottom-right-radius: 2px; }
/* Quick Replies */
.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick-reply-btn { background: rgba(0, 210, 255, 0.1); border: 1px solid rgba(0, 210, 255, 0.3); color: #00d2ff; padding: 6px 12px; border-radius: 20px; font-size: 12px; cursor: pointer; transition: all 0.2s; }
.quick-reply-btn:hover { background: rgba(0, 210, 255, 0.2); transform: translateY(-2px); }
/* Input Area */
.chat-input-area { padding: 15px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; gap: 10px; background: rgba(0,0,0,0.2); }
.chat-input { flex-grow: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 10px 15px; color: white; font-size: 14px; outline: none; transition: border-color 0.2s; }
.chat-input:focus { border-color: #00d2ff; }
.chat-input::placeholder { color: rgba(255,255,255,0.5); }
.chat-send-btn { background: #00d2ff; color: #0a192f; border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: transform 0.2s, background 0.2s; }
.chat-send-btn:hover { transform: scale(1.1); background: white; }
/* Typing Indicator */
.typing-indicator { display: flex; gap: 4px; padding: 12px 16px; background: rgba(255, 255, 255, 0.1); border-radius: 15px; border-bottom-left-radius: 2px; align-self: flex-start; width: fit-content; }
.typing-dot { width: 6px; height: 6px; background: rgba(255,255,255,0.7); border-radius: 50%; animation: typing 1.4s infinite ease-in-out; }
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 998px) { #pcwin-chatbot { bottom: 85px; right: 7px; } .chat-window { bottom: 70px; } }
@media (max-width: 998px) { .chat-window { width: calc(100vw - 30px); max-height: 80vh; right: 0; } .chat-message { font-size: 1.1rem !important; } .quick-reply-btn { font-size: 1.1rem !important; padding: 8px 16px !important; } .chat-input { font-size: 1.1rem !important; } .chat-title { font-size: 1.1rem !important; } .chat-message { max-width: 100%; padding: 10px 15px; border-radius: 15px; font-size: 1.1rem !important; line-height: 1.3; animation: fadeIn 0.3s ease; } .chat-toggle-btn {margin-right: 0px}} @media (max-width: 480px) { .chat-window { width: calc(100vw - 30px); right: 0; } }