:root {
    --whatsapp-green: #25d366;
    --whatsapp-dark-green: #128c7e;
    --white: #ffffff;
    --light-gray: #f5f5f5;
}

.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.main-whatsapp-btn {
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.main-whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: var(--whatsapp-dark-green);
}

.main-whatsapp-btn i {
    font-size: 30px;
    color: var(--white);
}

.whatsapp-contacts {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 220px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: scale(0.8);
    opacity: 0;
    visibility: hidden;
    transform-origin: left bottom;
    transition: all 0.3s ease;
}

.floating-whatsapp:hover .whatsapp-contacts {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.contact-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    background-color: rgba(37, 211, 102, 0.1);
}

.contact-item i {
    width: 36px;
    height: 36px;
    background-color: rgba(37, 211, 102, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    font-size: 16px;
    color: var(--whatsapp-green);
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-number {
    font-size: 12px;
    color: #777;
}

.bubble-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bubble-tooltip::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.contact-item:hover .bubble-tooltip {
    opacity: 1;
    visibility: visible;
    top: -45px;
}

/* Animation for fun */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.main-whatsapp-btn {
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover .main-whatsapp-btn {
    animation: none;
}

/* custom */
.ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ellipsis-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* custom color */
.text-hijau-tua {
    color: #1f6306 !important;
}

.text-hijau-muda {
    color: #4caf50 !important;
}
