/* ============================================================
   Armour Hub - Live Chat Floating Module Styles
   Position: Bottom-Right Corner
   Colors: Navy (#0B1B2B), Gold (#D4AF37), WhatsApp Green (#25D366)
   ============================================================ */

/* Floating Trigger Button */
.live-chat-floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #0B1B2B;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    z-index: 1500;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: chatPulse 2.5s infinite;
}

@keyframes chatPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.live-chat-floating-btn:hover {
    transform: scale(1.1);
    background: #D4AF37;
    color: #0B1B2B;
}

/* Online Badge on Button */
.chat-btn-status-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background-color: #25D366;
    border: 2.5px solid #0B1B2B;
    border-radius: 50%;
}

/* Chat Box Window */
.live-chat-window {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 480px;
    max-height: calc(100vh - 120px);
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 1500;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpFade 0.3s ease;
}

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

.live-chat-window.open {
    display: flex;
}

/* Chat Header */
.chat-window-header {
    background-color: #0B1B2B;
    color: #FFFFFF;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #D4AF37;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar-wrapper {
    position: relative;
    width: 38px;
    height: 38px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 1.1rem;
}

.chat-status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #25D366;
    border-radius: 50%;
    border: 2px solid #0B1B2B;
}

.chat-header-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
}

.chat-status-text {
    font-size: 0.75rem;
    color: #25D366;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: #CCCCCC;
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.chat-close-btn:hover {
    color: #D4AF37;
}

/* Chat Body */
.chat-window-body {
    flex-grow: 1;
    padding: 18px;
    overflow-y: auto;
    background-color: #F8F9FA;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.chat-bubble.bot {
    background: #FFFFFF;
    color: #333333;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #ECECEC;
    align-self: flex-start;
}

.chat-bubble.user {
    background: #0B1B2B;
    color: #FFFFFF;
    border-bottom-right-radius: 2px;
    align-self: flex-end;
}

.chat-quick-actions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quick-chip {
    background: #FFFFFF;
    border: 1px solid #D4AF37;
    color: #0B1B2B;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 20px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-chip:hover {
    background: #D4AF37;
    color: #0B1B2B;
}

/* Chat Footer / Input */
.chat-window-footer {
    padding: 12px 16px;
    background: #FFFFFF;
    border-top: 1px solid #EEEEEE;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-input-bar {
    display: flex;
    gap: 8px;
}

.chat-input-field {
    flex-grow: 1;
    padding: 10px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 25px;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
}

.chat-input-field:focus {
    border-color: #D4AF37;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0B1B2B;
    color: #D4AF37;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.chat-send-btn:hover {
    background: #D4AF37;
    color: #0B1B2B;
}

.btn-chat-direct-whatsapp {
    background: #25D366;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.btn-chat-direct-whatsapp:hover {
    background: #1eb956;
}

@media (max-width: 480px) {
    .live-chat-window {
        right: 15px;
        bottom: 85px;
        width: calc(100vw - 30px);
        height: 440px;
    }
    .live-chat-floating-btn {
        right: 15px;
        bottom: 15px;
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }
}
