/* WhatsApp Widget Styles */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.whatsapp-widget.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.whatsapp-btn:hover {
    background: #22C55E;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn i {
    color: white;
    font-size: 24px;
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: scale(0);
    transition: transform 0.3s ease;
    transform-origin: bottom right;
}

.chat-popup.show {
    transform: scale(1);
}

.chat-header {
    background: #075E54;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: between;
}

.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.chat-header .close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.chat-body {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
}

.message.support {
    text-align: left;
}

.message.user {
    text-align: right;
}

.message-bubble {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.support .message-bubble {
    background: #f1f1f1;
    border-bottom-left-radius: 5px;
}

.message.user .message-bubble {
    background: #dcf8c6;
    border-bottom-right-radius: 5px;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.whatsapp-redirect-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.whatsapp-redirect-btn:hover {
    background: #22C55E;
    color: white;
}

/* Demo content styles */
.analytics-content {
    padding-bottom: 100px;
    /* Space for floating widget */
}

.metric-card {
    transition: transform 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
}