﻿
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.3s ease;
}

    .whatsapp-button:hover {
        background-color: #1DA851;
    }

.power-button {
    width: 60px;
    height: 60px;
    background-color: #ef394e;
    color: white;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.3s ease;
}

    .power-button:hover {
        background-color: #b93040;
    }

.whatsapp-actions {
    position: absolute;
    bottom: 70px;
    right: 7px;
    display: none;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

    .whatsapp-actions.show {
        display: flex;
    }

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f1f1f1;
    color: #333;
    font-size: 20px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background 0.3s ease;
}

    .action-icon:hover {
        background-color: #ddd;
    }

@media (max-width: 600px) {
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

.whatsapp-button.glow-effect {
    animation: pulseGlow 2s infinite;
}

.power-button.glow-effect {
    animation: powerGlowRed 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0px rgba(37, 211, 102, 0.6);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 15px rgba(37, 211, 102, 0.8), 0 0 30px rgba(37, 211, 102, 0.4);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0px rgba(37, 211, 102, 0.6);
        transform: scale(1);
    }
}


@keyframes powerGlowRed {
    0% {
        box-shadow: 0 0 0px rgba(239, 57, 78, 0.6);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 15px rgba(239, 57, 78, 0.8), 0 0 30px rgba(239, 57, 78, 0.4);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0px rgba(239, 57, 78, 0.6);
        transform: scale(1);
    }
}


.action-icon i {
    color: white;
}

/* دکمه تماس */
.action-icon.phone {
    background-color: #007BFF; /* آبی */
}

/* دکمه پیام */
.action-icon.message {
    background-color: #FF5722; /* نارنجی */
}

/* دکمه ایمیل (مثال) */
.action-icon.email {
    background-color: #9C27B0; /* بنفش */
}

.action-icon.whatsapp {
    background-color: #1DA851;
}

.action-icon.power {
    background-color: #ef394e;
}
.action-icon.profile {
    background-color: #007bff;
}
