/* BANGLA TRA Chatbot Styles */
#bangla-tra-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.chat-widget-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--chat-primary, #D4AF37);
    color: #0A0A0A;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-widget-btn:hover {
    transform: scale(1.1);
}

.chat-widget-btn svg {
    width: 28px;
    height: 28px;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 550px;
    max-height: 80vh;
    background-color: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chat-header {
    background-color: var(--chat-primary, #D4AF37);
    color: #0A0A0A;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.chat-header p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.close-chat {
    background: none;
    border: none;
    color: #0A0A0A;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #0A0A0A;
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.chat-msg {
    max-width: 85%;
    font-size: 14px;
    line-height: 1.5;
    padding: 12px 16px;
    border-radius: 16px;
    animation: fadeIn 0.3s ease;
}

.chat-msg.bot {
    background-color: #1a1a1a;
    color: #FAF9F6;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

.chat-msg.user {
    background-color: var(--chat-primary, #D4AF37);
    color: #0A0A0A;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-product-card {
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 10px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-product-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.chat-product-card .title {
    font-weight: 600;
    color: #FAF9F6;
    font-size: 14px;
}

.chat-product-card .price {
    color: var(--chat-primary, #D4AF37);
    font-weight: 700;
    font-size: 14px;
}

.chat-product-card .actions {
    display: flex;
    gap: 8px;
}

.chat-product-card .btn {
    flex: 1;
    padding: 8px;
    text-align: center;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.chat-product-card .btn-cart {
    background-color: var(--chat-primary, #D4AF37);
    color: #0A0A0A;
    border: none;
}

.chat-product-card .btn-cart:hover {
    opacity: 0.9;
}

.chat-product-card .btn-view {
    background-color: transparent;
    color: #FAF9F6;
    border: 1px solid rgba(255,255,255,0.2);
}

.chat-product-card .btn-view:hover {
    background-color: rgba(255,255,255,0.05);
}

.quick-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-chip {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--chat-primary, #D4AF37);
    color: var(--chat-primary, #D4AF37);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-chip:hover {
    background-color: var(--chat-primary, #D4AF37);
    color: #0A0A0A;
}

.chat-footer {
    padding: 15px 20px;
    background-color: #111;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.chat-input-wrapper {
    display: flex;
    background: #0A0A0A;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 5px;
    align-items: center;
}

.chat-input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    color: #FAF9F6;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
}

.chat-input-wrapper input::placeholder {
    color: rgba(255,255,255,0.3);
}

.chat-send-btn {
    background-color: var(--chat-primary, #D4AF37);
    color: #0A0A0A;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.chat-send-btn:hover {
    opacity: 0.9;
}

.typing-indicator {
    display: none;
    padding: 12px 16px;
    background-color: #1a1a1a;
    border-radius: 16px;
    align-self: flex-start;
    width: 60px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out both;
    margin: 0 2px;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    #bangla-tra-chatbot {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-window {
        bottom: 70px;
        right: -10px;
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        max-height: 600px;
    }
}
