
                :root {
                    --primary-color: #4CAF50;
                }
                .messenger-list-item { cursor: pointer; transition: background 0.3s ease; }
                .messenger-list-item:hover { background-color: #f0f2f5; }
                .messenger-list-item.active { background-color: #e6f3ea; }
                .messages-container { 
                    background: #f6f8fa; 
                    padding: 15px; 
                    border-radius: 10px; 
                    height: calc(100% - 120px); 
                    overflow-y: auto; 
                }
                .messages { 
                    display: flex; 
                    flex-direction: column; 
                    gap: 12px; 
                    padding: 10px; 
                }
                .message-card {
                    max-width: 70%;
                    border-radius: 18px;
                    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
                    position: relative;
                    margin: 8px 12px;
                    transition: transform 0.2s ease, box-shadow 0.2s ease;
                    word-wrap: break-word;
                }

                .message > p{
                 margin-bottom: unset !important;
                }
                .messenger-search[type="text"] {
                    margin: 10px 10px !important;
                    width: calc(100% - 20px);
                    border: none;
                    padding: 8px 10px;
                    border-radius: 6px;
                    outline: none;
                }
                .message-card:hover {
                    transform: translateY(-2px);
                    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
                }
                .message-card.sent {
                    background-color: #4CAF50;
                    color: #ffffff;
                    align-self: flex-end;
                    border-bottom-right-radius: 4px;
                }
                .message-card.sent::after {
                    content: '';
                    position: absolute;
                    bottom: 8px;
                    right: -8px;
                    border: 8px solid transparent;
                    border-left-color: #4CAF50;
                    border-bottom-color: #4CAF50;
                }
                .message-card.received {
                    background-color: #ffffff;
                    color: #555555;
                    align-self: flex-start;
                    border-bottom-left-radius: 4px;
                }
                .message-card.received::after {
                    content: '';
                    position: absolute;
                    bottom: 8px;
                    left: -8px;
                    border: 8px solid transparent;
                    border-right-color: #ffffff;
                    border-bottom-color: #ffffff;
                }
                .message-time {
                    font-size: 11px;
                    opacity: 0.8;
                    margin-top: 6px;
                    display: block;
                    text-align: right;
                    font-style: italic;
                }
                .message-card.sent .message-time { color: white !important; }
                .message-card.received .message-time { color: #888888; }
                .messenger-messagingView {
                    border: 1px solid #e0e0e0;
                    background: #ffffff;
                    border-radius: 10px;
                    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
                }
                .m-header-messaging {
                    background: #f8f9fa;
                    border-bottom: 1px solid #e0e0e0;
                    padding: 10px;
                    border-radius: 10px 10px 0 0;
                    position: relative;
                }
                .messenger-sendCard {
                    background: #ffffff;
                    padding: 12px;
                    border-top: 1px solid #e0e0e0;
                    display: none;
                    align-items: center;
                    border-radius: 0 0 10px 10px;
                }
                .messenger-sendCard.show {
                    display: flex;
                }
                .m-send {
                    border-radius: 20px;
                    border: 1px solid #d0d0d0;
                    padding: 12px 15px;
                    font-size: 14px;
                    transition: border-color 0.3s ease, box-shadow 0.3s ease;
                    flex-grow: 1;
                    margin: 0 10px;
                }
                .m-send:focus {
                    border-color: #4CAF50;
                    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
                    outline: none;
                }
                .send-button, .emoji-button {
                    background: #4CAF50;
                    color: #ffffff;
                    border: none;
                    border-radius: 50%;
                    padding: 10px;
                    transition: background 0.3s ease, transform 0.2s ease;
                }
                .send-button:hover, .emoji-button:hover {
                    background: #45a049;
                    transform: scale(1.1);
                }
                .upload-attachment { display: none; }
                .fas.fa-plus-circle {
                    color: #4CAF50;
                    font-size: 24px;
                    cursor: pointer;
                    transition: transform 0.2s ease;
                }
                .fas.fa-plus-circle:hover { transform: scale(1.1); }
                .messenger-search {
                    border-radius: 20px;
                    padding: 10px 15px;
                    border: 1px solid #d0d0d0;
                    transition: border-color 0.3s ease;
                }
                .messenger-search:focus {
                    border-color: #4CAF50;
                    outline: none;
                }
                .m-header nav {
                    background: #f8f9fa;
                    padding: 3px;
                    border-radius: 10px;
                }
                .messenger-headTitle { font-weight: 600; color: #333; }
                .header-avatar {
                    width: 40px;
                    height: 40px;
                    border-radius: 50%;
                    background-size: cover;
                    background-position: center;
                    background-repeat: no-repeat;
                    display: inline-block;
                }
                .ads-section { 
                    padding: 20px; 
                    background-color: #f9f9f9; 
                    border-radius: 8px; 
                    margin-bottom: 0; 
                    height: 100vh; 
                }
                .ads-title { 
                    text-align: center; 
                    margin-bottom: 10px; 
                    color: #333; 
                    font-size: 25px; 
                    font-weight: 600; 
                }
                .ads-grid { display: block; gap: 15px; }
                .ad-card { 
                    background-color: #fff; 
                    border: 1px solid #ddd; 
                    border-radius: 8px; 
                    overflow: hidden; 
                    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
                    transition: transform 0.3s, box-shadow 0.3s; 
                }
                .ad-card:hover { 
                    transform: translateY(-5px); 
                    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); 
                }
                .ad-image { width: 100%; height: 150px; object-fit: cover; }
                .ad-card-body { padding: 10px; }
                .ad-card-body h4 { margin: 0; font-size: 18px; color: #333; }
                .ad-card-body h5 { margin: 5px 0; font-size: 15px; color: #666; }
                .ad-card-body p { font-size: 14px; color: #555; line-height: 1.5; }
                .messenger-infoView > div { margin: auto; margin-top: 0%; text-align: center; }
                .m-header-right {
                    display: none; /* Hide icons by default */
                }
                .m-header-right.show {
                    display: flex; /* Show icons when a contact is selected */
                }
                .m-header-right a {
                    font-size: 18px;
                    margin-left: 10px;
                    transition: color 0.3s ease, transform 0.2s ease;
                    text-decoration: none;
                }
                .m-header-right a.video-call-btn {
                    color: #333;
                }
                .m-header-right a.audio-call-btn {
                    color: #2196F3;
                }
                .m-header-right a.favorite-btn {
                    color: #808080 !important;
                }
                .m-header-right a.favorite-btn.favorite-active {
                    color: #FF0000 !important;
                     border: 2px solid  #FF0000 !important;
                     border-radius: 50%;
                     padding: 2px;
                }
                .m-header-right a:hover {
                    color: #4CAF50;
                }
                .m-header-right a.favorite-btn.favorite-active:hover {
                    color: #CC0000 !important;
                }
                .m-header-right a.audio-call-btn:hover {
                    color: #1976D2;
                }
                .app-modal {
                    display: none;
                    position: fixed;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background: rgba(0, 0, 0, 0.5);
                    z-index: 10001;
                    justify-content: center;
                    align-items: center;
                    transition: opacity 0.3s ease;
                }
                .app-modal.show {
                    display: flex;
                    opacity: 1;
                }
                .app-modal-container {
                    background: #fff;
                    border-radius: 10px;
                    width: 23%;
                    max-width: 400px;
                    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
                    overflow: hidden;
                }
                .app-modal-card {
                    padding: 20px;
                }
                .app-modal-header {
                    font-size: 18px;
                    font-weight: 600;
                    color: #333;
                    margin-bottom: 10px;
                }
                .app-modal-body {
                    margin-bottom: 20px;
                }
                .app-modal-footer {
                    display: flex;
                    justify-content: flex-end;
                    gap: 10px;
                }
                .app-btn {
                    padding: 8px 16px;
                    border-radius: 5px;
                    text-decoration: none;
                    font-size: 14px;
                    cursor: pointer;
                    transition: background 0.3s ease;
                }
                .app-btn.cancel {
                    background: #f0f0f0;
                    color: #333;
                }
                .app-btn.cancel:hover {
                    background: #e0e0e0;
                }
                .app-btn.a-btn-success {
                    background: #4CAF50;
                    color: #fff;
                }
                .app-btn.a-btn-success:hover {
                    background: #45a049;
                }
                /* Favorite Animation Styles */
                .favorite-animation {
                    position: absolute;
                    top: 50%;
                    right: 60px;
                    transform: translateY(-50%);
                    background: rgba(255, 204, 224, 0.9);
                    color: #FF0000;
                    padding: 8px 16px;
                    border-radius: 20px;
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    font-size: 14px;
                    font-weight: 500;
                    z-index: 10002;
                    opacity: 0;
                    animation: favoritePop 1.5s ease-in-out forwards;
                }
                .favorite-animation.remove {
                    background: rgba(200, 200, 200, 0.9);
                    color: #808080;
                }
                .favorite-animation i {
                    font-size: 16px;
                    animation: heartPulse 0.8s ease-in-out infinite;
                }
                @keyframes favoritePop {
                    0% { opacity: 0; transform: translateY(-50%) scale(0.8); }
                    20% { opacity: 1; transform: translateY(-50%) scale(1.1); }
                    80% { opacity: 1; transform: translateY(-50%) scale(1); }
                    100% { opacity: 0; transform: translateY(-50%) scale(0.8); }
                }
                @keyframes heartPulse {
                    0% { transform: scale(1); }
                    50% { transform: scale(1.3); }
                    100% { transform: scale(1); }
                }
                /* Catchy Message Styling */
                .message-hint.catchy {
                    background: linear-gradient(45deg, #4CAF50, #2196F3);
                    color: white;
                    padding: 15px;
                    border-radius: 10px;
                    font-weight: bold;
                    font-size: 16px;
                    text-align: center;
                    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
                    animation: pulseCatchy 2s infinite;
                }
                @keyframes pulseCatchy {
                    0% { transform: scale(1); }
                    50% { transform: scale(1.05); }
                    100% { transform: scale(1); }
                }
                @media screen and (max-width:500px) {
                    .messenger-messagingView .m-header { 
                        padding: var(--headers-padding); 
                        margin-top: 59px; 
                    }
                    .messenger-messagingView .m-body { 
                        position: relative; 
                        padding-top: 15px; 
                        overflow-x: hidden; 
                        overflow-y: auto; 
                        height: 100%; 
                        z-index: 1000; 
                    }
                    .messenger-messagingView { 
                        position: fixed !important; 
                        top: 0 !important; 
                        left: 0 !important; 
                        width: 100% !important; 
                        height: 100% !important; 
                    }
                    .messenger-sendCard { 
                        position: fixed !important; 
                        bottom: env(safe-area-inset-bottom, 0) !important; 
                        z-index: 10000 !important; 
                    }
                    .m-header-right a {
                        font-size: 16px;
                        margin-left: 8px;
                    }
                    .favorite-animation {
                        right: 50px;
                        font-size: 12px;
                        padding: 6px 12px;
                    }
                    .favorite-animation i {
                        font-size: 14px;
                    }
                }
                @media screen and (max-width: 1060px) {
                    .messenger-infoView { display: none !important; }
                    .main-content { padding: 0; overflow: hidden; }
                    .messenger-messagingView .m-body { 
                        position: relative; 
                        padding-top: 15px; 
                        overflow-x: hidden; 
                        overflow-y: auto; 
                        height: 90vh; 
                    }
                }
                .zenbot-float-btn {
                    position: fixed;
                    bottom: 20px;
                    right: 20px;
                    background-color: #30e938;
                    color: white;
                    font-size: 24px;
                    padding: 14px;
                    border-radius: 50%;
                    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
                    z-index: 9999;
                    transition: transform 0.2s ease;
                    border: none;
                    cursor: pointer;
                    animation: pulse 2s infinite;
                }
                .zenbot-float-btn:hover { transform: scale(1.1); }
                .zenbot-modal {
                    display: none;
                    position: fixed;
                    top: 0;
                    right: 0;
                    bottom: 0;
                    width: 100%;
                    max-width: 400px;
                    background-color: white;
                    z-index: 10000;
                    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
                    transform: translateX(100%);
                    transition: transform 0.3s ease-out;
                    overflow: hidden;
                }
                .zenbot-modal.show { transform: translateX(0); }
                .zenbot-modal-content { display: flex; flex-direction: column; height: 100%; max-height: 100%; }
                .zenbot-header { background: #30e938; color: white; padding: 15px; display: flex; justify-content: space-between; align-items: center; }
                .zenbot-close-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
                .zenbot-chat-body { flex: 1; padding: 15px; overflow-y: auto; background: #fff5f9; display: flex; flex-direction: column; gap: 10px; }
                .zenbot-bot-message { 
                    background: #ffcce0; 
                    padding: 10px 15px; 
                    border-radius: 18px; 
                    max-width: 80%; 
                    align-self: flex-start; 
                    word-wrap: break-word; 
                    position: relative;
                }
                .zenbot-bot-message::after {
                    content: '';
                    position: absolute;
                    bottom: 8px;
                    left: -8px;
                    border: 8px solid transparent;
                    border-right-color: #ffcce0;
                    border-bottom-color: #ffcce0;
                }
                .zenbot-user-message { 
                    background: #30e938; 
                    color: white; 
                    padding: 10px 15px; 
                    border-radius: 18px; 
                    max-width: 80%; 
                    align-self: flex-end; 
                    word-wrap: break-word; 
                    position: relative;
                }
                .zenbot-user-message::after {
                    content: '';
                    position: absolute;
                    bottom: 8px;
                    right: -8px;
                    border: 8px solid transparent;
                    border-left-color: #30e938;
                    border-bottom-color: #30e938;
                }
                .zenbot-form { position: sticky; bottom: 0; background: white; }
                .zenbot-input { 
                    flex: 1; 
                    padding: 10px 15px; 
                    border: 1px solid #ddd; 
                    border-radius: 20px; 
                    outline: none; 
                    font-size: 14px; 
                    width: 85%; 
                }
                .zenbot-send-btn { 
                    background: #30e938; 
                    color: white; 
                    border: none; 
                    border-radius: 20px; 
                    padding: 0 15px; 
                    cursor: pointer; 
                    font-size: 18px; 
                }
                .zenbot-typing { 
                    display: flex; 
                    gap: 5px; 
                    padding: 10px 15px; 
                    align-self: flex-start; 
                }
                .zenbot-typing span { 
                    width: 8px; 
                    height: 8px; 
                    background: #ffcce0; 
                    border-radius: 50%; 
                    display: inline-block; 
                    animation: bounce 1.5s infinite ease-in-out; 
                }
                .zenbot-typing span:nth-child(2) { animation-delay: 0.2s; }
                .zenbot-typing span:nth-child(3) { animation-delay: 0.4s; }
                @keyframes bounce {
                    0%, 100% { transform: translateY(0); }
                    50% { transform: translateY(-5px); }
                }
                @keyframes pulse {
                    0% { transform: scale(1); }
                    50% { transform: scale(1.1); }
                    100% { transform: scale(1); }
                }
                @media screen and (max-width: 600px) {
                    .zenbot-modal { 
                        display: none; 
                        position: fixed; 
                        inset: 0; 
                        width: 100%; 
                        max-width: 100%; 
                        background-color: white; 
                        z-index: 10000; 
                        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1); 
                        transform: translateX(100%); 
                        transition: transform 0.3s ease-out; 
                        overflow: hidden; 
                    }
                    .zenbot-modal-content { 
                        display: flex; 
                        flex-direction: column; 
                        height: 100%; 
                        max-height: 100%; 
                    }
                    .zenbot-chat-body { 
                        flex: 1; 
                        overflow-y: auto; 
                        padding: 15px; 
                        background: #fff5f9; 
                        display: flex; 
                        flex-direction: column; 
                        gap: 10px; 
                    }
                    .zenbot-modal { 
                        width: 100%; 
                        height: 100%; 
                        max-width: 100%; 
                        border-radius: 0; 
                        box-shadow: none; 
                    }
                    .zenbot-form { padding: 10px; }
                    .zenbot-chat-body { padding: 10px; }
                    .zenbot-input { font-size: 13px; }
                    .zenbot-send-btn { padding: 0 12px; font-size: 16px; }
                    .zenbot-float-btn { bottom: 15px; right: 15px; font-size: 22px; padding: 12px; }
                }
                .app-modal-card {
                    width: auto;
                    max-width: 400px;
                    margin: auto;
                    padding: 20px 40px;
                    border-radius: 5px;
                    text-align: center;
                    box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.27);
                    transform: unset !important;
                }
                .messenger-favorites {
                    display: flex;
                    flex-direction: row;
                    overflow-x: auto;
                    white-space: nowrap;
                    padding: 8px;
                    gap: 10px;
                    max-width: 100%;
                    scrollbar-width: thin;
                    scrollbar-color: #4CAF50 #f0f2f5;
                }
                .messenger-favorites::-webkit-scrollbar {
                    height: 8px;
                }
                .messenger-favorites::-webkit-scrollbar-track {
                    background: #f0f2f5;
                    border-radius: 4px;
                }
                .messenger-favorites::-webkit-scrollbar-thumb {
                    background: #4CAF50;
                    border-radius: 4px;
                }
                .messenger-favorites .messenger-list-item {
                    display: inline-flex;
                    flex-direction: column;
                    align-items: center;
                    width: 70px;
                    min-width: 70px;
                    padding: 8px;
                    margin: 0;
                    text-align: center;
                }
                .messenger-favorites .avatar {
                    width: 50px;
                    height: 50px;
                    margin: 0 auto 5px;
                }
                .messenger-favorites p {
                    margin: 0;
                    font-size: 12px;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    max-width: 100%;
                }
                .messenger-favorites span {
                    display: none;
                }

                .center-el {
                    left: 23% !important;
                }
                .m-header-right a.favorite-btn.favorite-active i {
    border: 2px solid  #FF0000 !important;
    transform: scale(1.1);
    transition: transform 0.2s ease, color 0.2s ease;
}
.m-header-right a.favorite-btn i {
    color: #808080 !important;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Existing styles (unchanged, included for context) */
.m-header-right a.favorite-btn {
    color: #808080 !important;
}
.m-header-right a.favorite-btn.favorite-active {
    color: #FF0000 !important;
    border: 2px solid  #FF0000 !important;
}
.m-header-right a.favorite-btn.favorite-active:hover {
    color: #CC0000 !important;
}

/* New styles for favorite icon */
.m-header-right a.favorite-btn.favorite-active i {
    color: #FF0000 !important;
    transform: scale(1.1);
    transition: transform 0.2s ease, color 0.2s ease;
}
.m-header-right a.favorite-btn i {
    color: #808080 !important;
    transition: transform 0.2s ease, color 0.2s ease;
}

.m-header-right a.favorite-btn i {
    color: #808080; /* Default gray color for non-favorited state */
}
.m-header-right a.favorite-btn.favorite-active i {
    color: #FF0000 !important; /* Red color for favorited state */
}
.m-header-right a.favorite-btn.favorite-active:hover i {
    color: #CC0000 !important; /* Slightly darker red on hover */
}
         