/* Icon mở popup */
#plugin-icon {
    position: fixed;
    bottom: 40px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 9999;
}

#plugin-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

#plugin-icon img {
    width: 28px;
    height: 28px;
}

/* Popup container */
#plugin-popup {
    display: none;
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 360px;
    background: #fff;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#plugin-popup.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Tiêu đề popup */
#plugin-popup h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Nút đóng popup */
#close-popup {
    position: absolute;
    top: 10px;
    right: 16px;
    cursor: pointer;
    font-size: 22px;
    color: #aaa;
    transition: color 0.3s ease;
}

#close-popup:hover {
    color: #333;
}

/* Bảng plugin */
.plugin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.plugin-table thead {
    background: #f9f9f9;
}

.plugin-table th {
    text-align: left;
    padding: 10px;
    color: #555;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.plugin-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    color: #555;
    a {
    text-decoration: none;
    color: #0300e7 !important;
    }
}

.plugin-table tr:hover td {
    background: #f5faff;
}

.plugin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Thêm thanh cuộn cho bảng dài */
.plugin-table tbody {
    display: block;
    max-height: 300px; /* Giới hạn chiều cao bảng */
    overflow-y: auto; /* Thêm thanh cuộn dọc */
}

.plugin-table thead, .plugin-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed; /* Đảm bảo các cột căn chỉnh đồng đều */
}

/* Đảm bảo thanh cuộn đẹp trên các trình duyệt */
.plugin-table tbody::-webkit-scrollbar {
    width: 8px;
}

.plugin-table tbody::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.plugin-table tbody::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.plugin-table tbody::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Switcher và các phần khác */
#switcher .center {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#switcher .logo img {
    height: 40px;
}

.responsive a {
    margin: 0 5px;
    text-decoration: none;
    display: inline-block;
    width: 28px;
    height: 28px;
    background: #ddd;
    border-radius: 4px;
}

.links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.links li {
    margin-left: 10px;
}

.links li a img {
    height: 14px;
    margin-right: 6px;
}

/* Hiệu ứng pulse */
@keyframes pulseAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulseAnimation 1.5s infinite;
}

/* Responsive: giảm kích thước icon trên thiết bị di động */
@media (max-width: 480px) {
    #plugin-icon {
        width: 40px;
        height: 40px;
        bottom: 20px;
        left: 10px;
    }

    #plugin-icon img {
        width: 20px;
        height: 20px;
    }

    #plugin-popup {
        width: 300px; /* Giảm chiều rộng popup trên di động */
        bottom: 80px;
    }

    .plugin-table {
        font-size: 12px; /* Giảm kích thước chữ trên di động */
    }

    .plugin-table th, .plugin-table td {
        padding: 8px; /* Giảm padding trên di động */
    }
}