* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s;
}

.whatsapp-icon:hover {
    transform: scale(1.1);
}

.whatsapp-icon svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.popup {
    width: 350px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.profile-info {
    display: flex;
    align-items: center;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.popup-header h3 {
    font-size: 16px;
    font-weight: 500;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.popup-body {
    padding: 15px;
    background-color: #E5DDD5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23d5d5d5' fill-opacity='0.4'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-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h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.message-container {
    margin-bottom: 10px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.input-area {
    display: flex;
    background-color: #F0F0F0;
    border-radius: 20px;
    padding: 5px;
}

.message-input {
    flex-grow: 1;
    border: none;
    background-color: transparent;
    padding: 10px;
    outline: none;
    font-size: 14px;
}

.send-btn {
    background-color: #25D366;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.send-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.popup-footer {
    padding: 10px;
    text-align: center;
    background-color: white;
    font-size: 12px;
    color: #888;
}

.message {
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    max-width: 80%;
    word-break: break-word;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    position: relative;
}

.message-time {
    font-size: 11px;
    color: #999;
    text-align: right;
    margin-top: 4px;
}

.message-sender {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 4px;
    color: #075E54;
}

.message-image {
    max-width: 100%;
    border-radius: 4px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.sent-message {
    background-color: #DCF8C6;
    align-self: flex-end;
    margin-left: auto;
}

.received-message {
    background-color: white;
    align-self: flex-start;
    margin-right: auto;
}