/* =========================================
   NodeX Support Widget - 5 Beautiful Styles
   ========================================= */

#nodex-support-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Signika', 'Inter', sans-serif;
}

/* =========================================
   STYLE 1: FAB Expandable (Nút tròn xoè ra)
   ========================================= */
.sw-style-1 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sw-style-1 .sw-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sw-style-1.active .sw-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.sw-style-1 .sw-item {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.sw-style-1 .sw-item:hover {
    transform: scale(1.1);
}

.sw-fb { background: #1877F2; }
.sw-zalo { background: #0068FF; }
.sw-tele { background: #0088cc; }

.sw-style-1 .sw-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #4f46e5);
    color: white;
    border: none;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
    transition: all 0.3s;
}

.sw-style-1 .sw-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.5);
}

/* =========================================
   STYLE 2: Corner Chat Bubble
   ========================================= */
.sw-style-2 {
    position: relative;
}

.sw-bubble-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.sw-style-2.active .sw-bubble-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.sw-bubble-header {
    background: linear-gradient(135deg, #0d6efd, #4f46e5);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.sw-bubble-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sw-bubble-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
}

.sw-bubble-close:hover { opacity: 1; }

.sw-bubble-body {
    padding: 20px;
}

.sw-bubble-text {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 15px;
    background: #f3f4f6;
    padding: 12px 16px;
    border-radius: 12px;
    border-top-left-radius: 2px;
}

.sw-bubble-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sw-bubble-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    color: #fff;
    transition: transform 0.2s;
}

.sw-bubble-links a:hover {
    transform: translateX(5px);
}

.sw-btn-fb { background: #1877F2; }
.sw-btn-zalo { background: #0068FF; }
.sw-btn-tele { background: #0088cc; }

.sw-bubble-toggle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: white;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    position: relative;
    padding: 0;
    transition: transform 0.2s;
}
.sw-bubble-toggle:hover {
    transform: scale(1.05);
}

.sw-avatar-indicator {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
}

.sw-avatar-indicator img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.sw-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2px solid #fff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* =========================================
   STYLE 3: Vertical Social Bar Premium
   ========================================= */
.sw-style-3 {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    z-index: 999999;
}

.sw-vertical-bar {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    border-radius: 16px 0 0 16px;
    overflow: hidden;
}

.sw-v-item {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white !important;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform: translateX(5px); /* Hide partially */
}

.sw-v-item:hover {
    transform: translateX(0); /* Slide out completely */
}

.sw-zalo-txt {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* =========================================
   STYLE 4: Pulsing Neon Icons
   ========================================= */
.sw-style-4 {
    display: flex;
}

.sw-neon-container {
    display: flex;
    gap: 15px;
}

.sw-neon-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    animation: neon-pulse 2s infinite;
    transition: transform 0.3s;
}

.sw-neon-item:hover {
    transform: translateY(-10px);
    animation: none;
}

.sw-neon-item.sw-fb { box-shadow: 0 0 15px rgba(24,119,242,0.5); }
.sw-neon-item.sw-zalo { box-shadow: 0 0 15px rgba(0,104,255,0.5); }
.sw-neon-item.sw-tele { box-shadow: 0 0 15px rgba(0,136,204,0.5); }

@keyframes neon-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* =========================================
   STYLE 5: Glassmorphism Box
   ========================================= */
.sw-style-5 {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 12px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sw-glass-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sw-glass-text {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    border-right: 1px solid rgba(0,0,0,0.1);
    padding-right: 15px;
}

.sw-glass-icons {
    display: flex;
    gap: 10px;
}

.sw-glass-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.3s;
}

.sw-glass-item:hover {
    transform: rotate(360deg) scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
