/* public/css/whatsapp-chat.css */

/* --- Floating Action Button (FAB) --- */
.whatsapp-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    /* background-color: #25D366; */
     /* Official WhatsApp Green */
     /* Changed background from WhatsApp Green to your brand's Royal Blue */
    background-color: #0056D2;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 30px; */
    /* Slightly adjusted font-size for a better fit with the new icon */
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 1010;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    /* Added hover color change to your brand's Navy Blue for consistency */
    background-color: #0F4C81;
}

/* --- Chat Widget Container --- */
.whatsapp-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 340px;
    max-width: calc(100% - 40px);
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1009;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.whatsapp-chat-widget.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* --- Widget Header --- */
.chat-header {
    background-color: #0F4C81; /* Navy Blue from your palette */
    color: #FFFFFF;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.chat-header .close-chat {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.chat-header .close-chat:hover {
    opacity: 1;
}

/* --- Widget Body --- */
.chat-body {
    padding: 20px;
    background-color: #F7F9FB; /* Neutral Light Gray from your palette */
}

.chat-body p {
    font-size: 15px;
    color: #555;
    background-color: #E8F1FA; /* Lighter Blue */
    padding: 12px;
    border-radius: 8px;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.chat-input-area {
    display: flex;
    flex-direction: column;
}

.chat-input-area textarea {
    width: 100%;
    height: 100px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 10px;
    font-size: 15px;
    resize: none;
    font-family: inherit;
    margin-bottom: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input-area textarea:focus {
    outline: none;
    border-color: #0056D2; /* Royal Blue */
    box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.15);
}

.btn-send-whatsapp {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: #0056D2; /* Royal Blue from your palette */
    color: #FFFFFF;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.btn-send-whatsapp:hover {
    background-color: #0F4C81; /* Navy Blue */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .whatsapp-fab {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
    .whatsapp-chat-widget {
        bottom: 85px;
        right: 15px;
        width: calc(100% - 30px);
    }
}