/* Chatbox Styles */
.chatbox-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Roboto', sans-serif;
}

/* Custom Zalo icon */
.fab.fa-zalo:before {
    content: "Z";
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-style: normal;
}

.chatbox-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bs-primary), #4c63ff);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(101, 113, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.chatbox-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(101, 113, 255, 0.4);
}

.chatbox-toggle.active {
    background: var(--bs-danger);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(101, 113, 255, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(101, 113, 255, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(101, 113, 255, 0.3);
    }
}

.chatbox-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.chatbox-panel.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chatbox-header {
    background: linear-gradient(135deg, var(--bs-primary), #4c63ff);
    color: white;
    padding: 20px;
    text-align: center;
}

.chatbox-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
}

.chatbox-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.chatbox-content {
    padding: 25px 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--bs-dark);
    transition: all 0.3s ease;
    border: 1px solid var(--bs-gray-200);
}

.contact-item:hover {
    background: var(--bs-primary);
    color: white;
    transform: translateX(5px);
    text-decoration: none;
    border-color: var(--bs-primary);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-icon.zalo {
    background: linear-gradient(135deg, #0068ff, #0052cc);
    color: white;
}

.contact-icon.facebook {
    background: linear-gradient(135deg, #1877f2, #0d5adb);
    color: white;
}

.contact-icon.email {
    background: linear-gradient(135deg, #ea4335, #d32f2f);
    color: white;
}

.contact-icon.telegram {
    background: linear-gradient(135deg, #0088cc, #0066aa);
    color: white;
}

.contact-info h6 {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
}

.contact-info p {
    margin: 2px 0 0 0;
    font-size: 12px;
    opacity: 0.7;
}

.contact-item:hover .contact-info p {
    opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chatbox-panel {
        width: 300px;
        right: -10px;
    }
    
    .chatbox-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .chatbox-container {
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .chatbox-panel {
        width: 280px;
        right: -20px;
    }
}

/* Dark mode support */
[data-bs-theme="dark"] .chatbox-panel {
    background: var(--bs-dark);
    border: 1px solid var(--bs-gray-800);
}

[data-bs-theme="dark"] .contact-item {
    color: var(--bs-light);
    border-color: var(--bs-gray-800);
}

[data-bs-theme="dark"] .contact-item:hover {
    background: var(--bs-primary);
    color: white;
}

[data-bs-theme="dark"] .contact-info p {
    opacity: 0.6;
}
