/* Widget Container */
.widget-container {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Position Classes */
.widget-container.bottom-right {
    bottom: 90px;
    right: 30px;
}

.widget-container.bottom-left {
    bottom: 30px;
    left: 30px;
}

.widget-container.top-right {
    top: 100px;
    right: 30px;
}

.widget-container.top-left {
    top: 100px;
    left: 30px;
}

/* Chat Support Widget */
.chat-support-widget {
    background: #fff;
    border-radius: 50px;
    padding: 12px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

.chat-support-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.chat-support-widget .chat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.chat-support-widget .chat-text {
    font-weight: 700;
    color: #115ded;
    font-size: 15px;
}

/* Social Links Popup */
.social-links-popup {
    position: absolute;
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    gap: 10px;
    bottom: 70px;
    right: 0;
    min-width: 200px;
    animation: fadeInUp 0.3s ease;
}

.social-links-popup.show {
    display: flex;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.social-link-item:hover {
    background: #f5f5f5;
    transform: translateX(5px);
}

.social-link-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.social-link-item.zalo .icon {
    background: #0180C7;
}

.social-link-item.facebook .icon {
    background: #1877f2;
}

.social-link-item .text {
    font-weight: 500;
    font-size: 14px;
}

/* Phone Call Widget */
.phone-call-widget {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 50px;
    padding: 12px 24px;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: fadeInUp 0.5s ease 0.2s both;
}

.phone-call-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.5);
}

.phone-call-widget .phone-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    animation: ring 2s ease-in-out infinite;
}

.phone-call-widget .phone-number {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .widget-container.bottom-right,
    .widget-container.top-right {
        right: 15px;
    }
    
    .widget-container.bottom-left,
    .widget-container.top-left {
        left: 15px;
    }
    
    .widget-container.bottom-right,
    .widget-container.bottom-left {
        bottom: 90px;
    }
    
    .chat-support-widget,
    .phone-call-widget {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .chat-support-widget .chat-icon,
    .phone-call-widget .phone-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}
