:root {
    --whatsapp-green: #25D366;
    --whatsapp-dark: #075E54;
    --whatsapp-light: #128C7E;
    --whatsapp-chat: #DCF8C6;
    --whatsapp-time: #667781;
    --whatsapp-bg: #F0F2F5;
}

.whatsapp-tooltip {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
    background: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    position: relative;
    animation: pulse 2s infinite;
}

.whatsapp-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF3333;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: bounce 1s infinite alternate;
}

.tooltip-content {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.whatsapp-tooltip.active .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-header {
    background: var(--whatsapp-dark);
    color: white;
    padding: 15px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    align-items: center;
    position: relative;
}

.whatsapp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.whatsapp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.whatsapp-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.whatsapp-info p {
    margin: 3px 0 0;
    font-size: 11px;
    opacity: 0.8;
}

.close-tooltip {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

.close-tooltip:hover {
    opacity: 1;
}

.tooltip-message {
    padding: 15px;
    background: var(--whatsapp-bg);
    position: relative;
}

.tooltip-message p {
    margin: 0;
    padding: 12px;
    background: var(--whatsapp-chat);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    position: relative;
}

.tooltip-message p:before {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 10px;
    width: 10px;
    height: 10px;
    background: var(--whatsapp-chat);
    transform: rotate(45deg);
}

.message-time {
    display: block;
    text-align: right;
    font-size: 11px;
    color: var(--whatsapp-time);
    margin-top: 5px;
}

.tooltip-actions {
    padding: 15px;
    text-align: center;
}

.whatsapp-btn {
    display: inline-block;
    background: var(--whatsapp-green);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: var(--whatsapp-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
    margin-right: 8px;
    font-size: 16px;
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 576px) {
    .whatsapp-tooltip {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
        /* bottom: 300px; */
    }
    
    .tooltip-content {
        width: 280px;
        right: -10px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .tooltip-content {
        background: #2A2F32;
        color: #E9EDEF;
    }
    
    .tooltip-message {
        background: #1E2428;
    }
    
    .tooltip-message p {
        background: #005C4B;
        color: #E9EDEF;
    }
    
    .tooltip-message p:before {
        background: #005C4B;
    }
    
    .message-time {
        color: #8696A0;
    }
}