/* Custom scrollbar for the chat window to keep it looking clean */
#chat-messages::-webkit-scrollbar {
    width: 6px;
}
#chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
#chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1; 
    border-radius: 10px;
}
#chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8; 
}

/* Smooth transition for the chat window */
.chat-window-transition {
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
}
.chat-hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}
.chat-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* css/widget.css */
#vip-chat-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: system-ui, -apple-system, sans-serif;
}

#vip-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #2563eb;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#vip-chat-toggle:hover {
    transform: scale(1.05);
}

#vip-chat-panel {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

#vip-chat-panel.vip-open {
    display: flex;
}

.vip-header {
    background-color: #1e3a8a;
    color: white;
    padding: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vip-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

#vip-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #f9fafb;
}

.vip-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.vip-msg.user {
    align-self: flex-end;
    background-color: #2563eb;
    color: white;
    border-bottom-right-radius: 4px;
}

.vip-msg.bot {
    align-self: flex-start;
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}

.vip-input-area {
    padding: 16px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
}

#vip-chat-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

#vip-chat-input:focus {
    border-color: #2563eb;
}

#vip-chat-send {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}