.dexbelle-ai-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.dexbelle-ai-bubble {
    position: absolute;
    bottom: 72px;
    right: 0;
    background: #ffffff;
    color: #1e293b;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    white-space: nowrap;
    animation: bounceBubble 2s infinite ease-in-out;
    border: 1px solid #e2e8f0;
}
.bubble-arrow {
    position: absolute;
    bottom: -6px;
    right: 24px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.05));
}
@keyframes bounceBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.dexbelle-ai-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.dexbelle-ai-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}
.ai-avatar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.dexbelle-ai-box {
    position: absolute;
    bottom: 74px;
    right: 0;
    width: 360px;
    max-height: 540px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.dexbelle-ai-header {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-avatar {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.header-meta h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.online-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}
.status-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}
#dexbelle-ai-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}
#dexbelle-ai-close:hover {
    color: #fff;
}
.dexbelle-ai-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    max-height: 280px;
    min-height: 210px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13.5px;
}
.dexbelle-ai-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 88%;
}
.bot-row {
    align-self: flex-start;
}
.user-row {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.agent-avatar-small {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ec4899, #db2777);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(236, 72, 153, 0.3);
    margin-bottom: 2px;
}
.dexbelle-ai-msg {
    padding: 10px 14px;
    border-radius: 14px;
    line-height: 1.5;
    word-break: break-word;
}
.dexbelle-ai-msg.bot {
    background: #ffffff;
    color: #1e293b;
    border-bottom-left-radius: 4px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.dexbelle-ai-msg.user {
    background: #2563eb;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}
.dexbelle-ai-msg a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
}
.dexbelle-ai-msg img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
}
.typing-row {
    align-self: flex-start;
}
.dexbelle-ai-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 14px;
    background: #ffffff;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.typing-dot {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Hide/Show Bar Style */
.dexbelle-ai-quick-toggle-bar {
    background: #ffffff;
    padding: 6px 14px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}
#dexbelle-quick-toggle-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
}
#dexbelle-quick-toggle-btn:hover {
    background: #eff6ff;
}
#toggle-chevron {
    transition: transform 0.2s ease;
}
#toggle-chevron.rotated {
    transform: rotate(180deg);
}

.dexbelle-ai-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    max-height: 140px;
    overflow-y: auto;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.dexbelle-ai-quick-replies.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    border-top: none;
}
.ai-quick-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s ease;
}
.ai-quick-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.dexbelle-ai-input-area {
    display: flex;
    padding: 12px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    align-items: center;
    gap: 8px;
}
#dexbelle-ai-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 24px;
    outline: none;
    font-size: 13.5px;
    background: #f8fafc;
}
#dexbelle-ai-input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
#dexbelle-ai-send {
    background: #2563eb;
    color: #ffffff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.1s;
}
#dexbelle-ai-send:hover {
    opacity: 0.9;
    transform: scale(1.05);
}
.dexbelle-ai-footer-brand {
    text-align: center;
    font-size: 10.5px;
    color: #94a3b8;
    padding: 6px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    letter-spacing: 0.5px;
}
