﻿
.dropdown-serp
{
    margin-top:2px !important;
    margin-left:5px !important;
    position:relative;
}


.dropdown-serp-menu.show {
    display: block;
}
    .dropdown-serp-menu label {
        display: block; /* bắt buộc để mỗi checkbox 1 dòng */
        margin-bottom: 5px;
        cursor: pointer;
        user-select: none;
   
        }


.dropdown-serp-menu {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px 12px;
    margin-top: 2px;
    width: 180px; /* vừa đủ để chứa label dài */
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    margin-top:41px;
}

.btn_serp_wrapper {
    display: inline-flex; /* dàn hàng ngang */
    align-items: center;
    height: 32px !important;
    border: 1px solid #ccc !important;
    background-color: #fff;
    padding: 0 8px;
    margin-top: 2px;
    cursor: pointer;
    user-select: none;
    border-radius: 3px;
    min-width: 180px; /* hoặc width phù hợp */
}

    .btn_serp_wrapper .serp-label {
        flex-grow: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-left: 6px;
        font-size: 13px;
        line-height: 30px;
        height: 30px;
    }

    .btn_serp_wrapper button {
        margin-left: 8px;
        padding: 2px 10px;
        font-size: 14px;
        height: 28px;
        line-height: 24px;
        border-radius: 3px;
        user-select: none;
    }
.serp-label {
    position: relative;
    padding-right: 18px; /* chừa chỗ cho mũi tên */
    font-size: 13px;
    line-height: 30px;
    height: 30px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .serp-label::after {
        content: '▼';
        position: absolute;
        right: 2px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 11px;
        color: #888;
        pointer-events: none; /* để click xuyên qua mũi tên */
    }

.btn-apply-filter {
    display: block;
    width: 100%;
    padding: 6px 12px;
    background-color: #007bff;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 4px;
    margin-top: 8px;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
}

    .btn-apply-filter:hover {
        background-color: #0056b3;
    }

     
    .arror_after {
        content: '▼';
        right: 2px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 11px;
        color: #888;
        pointer-events: none; /* không cản click */
    }

.gemini_icon {
    width: 16px; /* Kích thước icon */
    height: 16px;
    display: inline-block;
    background-size: contain; /* Giúp hiển thị toàn bộ SVG */
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle; /* Căn giữa theo dòng nếu cần */
    margin-right: 11px;
    background: linear-gradient(135deg, #4285f4 0%, #8e37d7 50%, #00bcd4 100%);
    -webkit-mask: url('gemini.svg') no-repeat center;
    mask: url('/images/gemini.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.gemini_icon_blue {
    width: 16px; /* Kích thước icon */
    height: 16px;
    display: inline-block;
    background-size: contain; /* Giúp hiển thị toàn bộ SVG */
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle; /* Căn giữa theo dòng nếu cần */
    margin-right: 11px;
    background: linear-gradient(135deg, #4285f4 0%, #8e37d7 50%, #00bcd4 100%);
    -webkit-mask: url('gemini.svg') no-repeat center;
    mask: url('/images/gemini.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.gemini_icon24 {
    width: 24px; /* Kích thước icon */
    height: 24px;
    display: inline-block;
    background-size: contain; /* Giúp hiển thị toàn bộ SVG */
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle; /* Căn giữa theo dòng nếu cần */
    margin-right: 0px;
    background: linear-gradient(135deg, #4285f4 0%, #8e37d7 50%, #00bcd4 100%);
    -webkit-mask: url('gemini.svg') no-repeat center;
    mask: url('/images/gemini.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}


.gemini_icon24_blue {
    width: 24px;
    height: 24px;
    display: inline-block;
    background: linear-gradient(135deg, #4285f4 0%, #8e37d7 50%, #00bcd4 100%);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-right: 0px;
    -webkit-mask: url('gemini.svg') no-repeat center;
    mask: url('/images/gemini.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

#clusterTable
{
    table-layout:fixed;
    width:100%;
}

#clusterTable thead {
    background-color: #E3ECF1;
}
    #clusterTable thead tr th, #clusterTable tbody tr td {
        text-align: left;
        color: #515151;
        font-weight: bold;
    }


        #clusterTable thead tr th:first-child,
        #clusterTable tbody tr td:first-child {
            width: 40px;
            padding-left: 15px !important;
            vertical-align: top;
        }
        #clusterTable thead tr th:nth-child(2),
        #clusterTable tbody tr td:nth-child(2) {
           
            
            vertical-align: top;
        }
        #clusterTable thead tr th:nth-child(4),
        #clusterTable tbody tr td:nth-child(4) {
            vertical-align: top;
        }
            #clusterTable thead tr th:nth-child(3),
            #clusterTable tbody tr td:nth-child(3),
            #clusterTable thead tr th:nth-child(5),
            #clusterTable thead tr th:nth-child(6),
            #clusterTable tbody tr td:nth-child(5),
            #clusterTable tbody tr td:nth-child(6) {
                width: 150px;
                vertical-align: top;
            }

.styleinput {
    border: solid 1px #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    padding: 5px;
    font-size: 14px !important;
    line-height: 14px;
    width: 100%;
}
.KeywordClustering_loaded ._desc {
    font-weight: normal;
    color: #0056b3;
    font-style: italic;
}
.KeywordClustering_loaded label {
    font-size: 14px;
    font-weight: bold;
  
    color: #103379;
}

.Cannibalization_loaded label {
    font-size: 14px;
    font-weight: bold;
    color: #103379;
}



#resultTableCannibalization thead {
    background-color: #E3ECF1;
}

    #resultTableCannibalization thead tr th, #resultTableCannibalization tbody tr td {
        text-align: left;
        color: #515151;
        font-weight: bold;
        vertical-align: top;
    }

        

        #resultTableCannibalization thead tr th:first-child,
        #resultTableCannibalization tbody tr td:first-child {
            width: 40px;
            padding-left: 15px !important;
            vertical-align: top;
        }

       

        
        #resultTableCannibalization tbody tr td:nth-child(4) {
            font-weight:normal !important;
        }

 

.chart-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    max-height: 400px;
}

    .chart-wrapper canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
    }


canvas#ChartRankingsDistribution {
    height: 500px !important;
    max-height: 500px;
}

canvas#ChartRankingsDistribution_aio {
    height: 400px !important;
    max-height: 400px;
}

#table_LandingPages_info, #resultTableCannibalization_info, #table_LandingPages_info {
    float: left !important;
}

 

#tb_TopCompetitor .aiodomainkeywords {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}
#tb_TopCompetitor .domain_visibility
{
    padding:5px !important;
}

#tb_TopCompetitor .aiodomainkeywords i, #tb_TopCompetitor .domain_visibility i {
    font-style: normal;
}
#domain_aio_Coverage .top3, #aio_Coverage .top3 {
    font-size: 30pt !important;
    font-weight: bold;
    color: #409FE4;
}
#domain_aio_Coverage .sum_keywords, #aio_Coverage .sum_keywords {
    color: #3EBC92 !important;
}

#tbodyTopkeyword_lancape tr td, #top_new_aio_keywords tr td, #top_loss_aio_keywords tr td, #Positive_Impact_Lancape tr td, #Negative_Impact_Lancape tr td {
    font-size: 1rem !important;
}

#lpcontent {
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #ccc transparent; /* Firefox */
}

    /* Chrome, Edge, Safari */
    #lpcontent::-webkit-scrollbar {
        width: 6px;
    }

    #lpcontent::-webkit-scrollbar-track {
        background: transparent; /* hoặc cùng màu với nền */
    }

    #lpcontent::-webkit-scrollbar-thumb {
        background-color: #ccc; /* màu nút scroll */
        border-radius: 3px;
    }






/* CSS của bạn đã cung cấp, không thay đổi */
.table_all_keyword_cover {
    width: 100%;
    overflow-x: auto; /* Giữ lại để cuộn chính */
    white-space: nowrap;
    padding-bottom: 5px; /* Đảm bảo scrollbar dưới hiển thị nếu cần */
    cursor: grab;
    user-select: none;
}

    .table_all_keyword_cover.active {
        cursor: grabbing;
    }

#table_all_keyword {
    width: fit-content; /* Cho phép bảng rộng hơn container */
    border-collapse: collapse;
}

/* --- Scrollbar chung cho Chrome, Edge, Safari --- */
.table_all_keyword_cover::-webkit-scrollbar,
.top-horizontal-scroll::-webkit-scrollbar {
    height: 10px; /* Chiều cao scrollbar ngang */
}

.table_all_keyword_cover::-webkit-scrollbar-track,
.top-horizontal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.table_all_keyword_cover::-webkit-scrollbar-thumb,
.top-horizontal-scroll::-webkit-scrollbar-thumb {
    background: red;
    border-radius: 5px;
}

    .table_all_keyword_cover::-webkit-scrollbar-thumb:hover,
    .top-horizontal-scroll::-webkit-scrollbar-thumb:hover {
        background: red;
    }

/* --- Firefox hỗ trợ --- */
.table_all_keyword_cover,
.top-horizontal-scroll {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* --- Phần bảng cuộn ngang --- */
.table_all_keyword_cover {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    cursor: grab;
    user-select: none;
}

    .table_all_keyword_cover.active {
        cursor: grabbing;
    }

/* --- Thanh cuộn phía trên bảng --- */
.top-horizontal-scroll {
    width: 100%;
    overflow-x: scroll;
    height: 10px;
    margin: 15px 0 5px 0;
    display: none; /* Hiển thị bằng JS khi cần */
}

    /* Đồng bộ chiều rộng thanh cuộn trên với bảng */
    .top-horizontal-scroll::before {
        content: '';
        display: block;
        width: var(--table-scroll-width, 1px);
        height: 1px;
    }















#table_all_keyword .td_checkbox {
    width: 30px !important;
    max-width: 30px !important;
    min-width: 30px !important;
    text-align: center;
}
/*#table_all_keyword th:nth-child(1) {
    width: 30px !important;
    max-width: 30px !important;
    min-width: 30px !important;
    text-align: center;
}*/
/*#table_all_keyword td:nth-child(1) {
    width: 30px !important;
    max-width: 30px !important;
    min-width: 30px !important;
    text-align: center;
}
*/
 

th.td_keyword {
    width: 300px !important;
    max-width: 300px !important;
    min-width: 300px !important;
}
th .td_type_tag {
    width: 250px !important;
    max-width: 250px !important;
    min-width: 250px !important;
}
th .td_SERP {
    width: 120px !important;
    max-width: 120px !important;
    min-width: 120px !important;
}
th .td_Target {
    width: 120px !important;
    max-width: 120px !important;
    min-width: 120px !important;
}
th .td_Status {
    width: 120px !important;
    max-width: 120px !important;
    min-width: 120px !important;
}
/*th.td_domains {
    width: 210px !important;
    max-width: 210px !important;
    min-width: 210px !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

    th.td_domains .scroll-inner {
        width: 210px !important;
        max-width: 210px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        padding: 8px !important;
        display: block !important;
        box-sizing: border-box !important;
    }*/

/* Override mọi inline style của DataTables */
/*#table_all_keyword th.td_domains[style] {
    width: 210px !important;
    max-width: 210px !important;
    min-width: 210px !important;
}*/

        /* Chrome, Edge, Safari scrollbar */
        /*.td_domains .scroll-inner::-webkit-scrollbar {
            height: 4px;
        }

        .td_domains .scroll-inner::-webkit-scrollbar-track {
            background: rgba(255,255,255,0.1);
            border-radius: 2px;
        }

        .td_domains .scroll-inner::-webkit-scrollbar-thumb {
            background-color: #999;
            border-radius: 2px;
        }

            .td_domains .scroll-inner::-webkit-scrollbar-thumb:hover {
                background-color: #666;
            }*/

/* Đảm bảo table không bị ảnh hưởng */
 
.td_keyword {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
}
.td_type_tag {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
}
.td_SERP {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
}
.td_Target, .td_Status {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
}


/* Google AI Overview (AIO) CSS - 90% Accurate */
.google-aio-container {
    font-family: Google Sans, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Arial, sans-serif;
    max-width: 100%;
    min-width: 100%;
    color: #000;
    font-size: 16px !important;
    line-height: 1.6 !important;
    /* Chiều cao responsive dựa vào viewport */
    height: calc(80vh - 200px); /* 80% viewport height trừ đi space cho header/footer */
    max-height: 600px; /* Giới hạn tối đa */
    min-height: 300px; /* Giới hạn tối thiểu */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
}
/* Source container */
.source-link {
    padding: 20px;
    background: #fff;
    overflow-y: auto;
    height: calc(80vh - 200px); /* 80% viewport height trừ đi space cho header/footer */
    max-height: 600px; /* Giới hạn tối đa */
    min-height: 300px; /* Giới hạn tối thiểu */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Main paragraph container */
.rPeykc {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #000;
}

    /* Section title variant */
    .rPeykc.pyPiTc {
        font-weight: 500;
        color: #000;
        margin: 20px 0 12px 0;
    }

/* Highlighted text within paragraphs */
.QVRyCf {
    background-color: #fff3cd;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 400;
}

/* Expandable content sections */
.bsmXxe {
    margin: 0;
}

/* List containers */
ul[jscontroller="M2ABbc"],
ol[jscontroller="M2ABbc"] {
    margin: 8px 0;
    padding: 0;
    list-style: none;
}

/* List item with structured content */
.K3KsMc {
    margin: 0 0 16px 0;
    position: relative;
}

/* Main content wrapper within list items */
.zMgcWd.dSKvsb {
    position: relative;
}

/* Content structure wrapper */
.xFTqob {
    margin: 0;
}

/* Item title/header */
.Gur8Ad {
    font-weight: 500;
    color: #000;
    margin: 0 0 4px 0;
    font-size: 16px;
}

    .Gur8Ad strong {
        font-weight: 600;
    }

/* Item content/description */
.vM0jzc {
    color: #000;
    font-size: 16px;
    margin: 0;
    padding-left: 0;
}

    .vM0jzc span {
        color: #000;
    }

/* Link styling within content */
.uVhVib {
    color: #1a73e8;
    text-decoration: none;
}

    .uVhVib:hover {
        text-decoration: underline;
    }

/* Button/link elements (usually hidden or minimal) */
.pjBG2e {
    display: inline;
    margin-left: 4px;
}

.UV3uM {
    color: #000;
}

.NPrrbc {
    display: inline-block;
    margin-left: 2px;
}

.BMebGe {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

    .BMebGe:hover {
        background-color: rgba(60,64,67,0.08);
    }

.niO4u {
    display: flex;
    align-items: center;
}

.kHtcsd {
    display: flex;
    align-items: center;
}

.z1asCe {
    width: 18px;
    height: 18px;
    fill: #000;
    opacity: 0.7;
}

    .z1asCe svg {
        width: 100%;
        height: 100%;
    }

/* Hidden elements */
[style*="display:none"],
[ahbak="true"][aria-hidden="true"] {
    /* These elements are typically hidden in the actual UI */
}

 
/* Focus states for accessibility */
.BMebGe:focus {
    outline: 2px solid #4285f4;
    outline-offset: 1px;
}

/* Selection styling */
::selection {
    background-color: #c2e7ff;
}

/* Additional utility classes for consistent spacing */
.google-aio-container .rPeykc:last-child {
    margin-bottom: 0;
}

.google-aio-container .bsmXxe:last-child {
    margin-bottom: 0;
}

/* Fine-tune list item spacing */
.K3KsMc:last-child {
    margin-bottom: 0;
}

/* Ensure proper text flow */
.Gur8Ad + .vM0jzc {
    margin-top: 2px;
}

/* Interactive elements styling */
.btku5b {
    color: #1a73e8;
}

/* Controller elements (typically minimal styling) */
[jscontroller] {
    /* Minimal styling for JavaScript-controlled elements */
}

/* Data attributes preservation */
[data-hveid],
[data-ved],
[data-cid] {
    /* These are tracking attributes, no visual styling needed */
}
/* Fix SVG size issues */
.z1asCe {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    max-width: 18px;
    min-height: 18px;
    max-height: 18px;
    fill: #000;
    opacity: 0.7;
    flex-shrink: 0;
}

    .z1asCe svg {
        width: 100% !important;
        height: 100% !important;
        display: block;
    }

/* Ensure parent containers don't cause SVG to expand */
.BMebGe {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.1s ease;
    font-size: 0; /* Prevent text spacing issues */
}

.niO4u {
    display: flex;
    align-items: center;
    width: 18px;
    height: 18px;
}

.kHtcsd {
    display: flex;
    align-items: center;
    width: 18px;
    height: 18px;
}

.d3o3Ad,
.iPjmzb,
.Sb7k4e {
    display: flex;
    align-items: center;
    width: 18px;
    height: 18px;
}

/* Additional safety for any rogue SVGs */
svg {
    max-width: 18px !important;
    max-height: 18px !important;
}

/* Alternative: Hide SVG buttons completely if they're causing issues */
.BMebGe {
    display: none; /* Uncomment this line if you want to hide the buttons entirely */
}

/* Or make them very small and unobtrusive */
.pjBG2e {
    display: inline-block;
    margin-left: 4px;
    opacity: 1;
    transform: scale(0.8);
}

/* Or make them very small and unobtrusive */
/* Or make them very small and unobtrusive */
/* Or make them very small and unobtrusive */
/* Or make them very small and unobtrusive */
/* Or make them very small and unobtrusive */

 
/* Content sections */
.content-section {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e8eaed;
    height: fit-content;
}

/* Section headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    border-bottom: 1px solid #e8eaed;
    margin: 0;
}

.section-title {
    font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #202124;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Copy button in header */
.copy-btn {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #3c4043;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: "Google Sans", Arial, sans-serif;
    font-weight: 500;
}

    .copy-btn:hover {
        background: #f8f9fa;
        border-color: #c4c7c5;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        transform: translateY(-1px);
    }

    .copy-btn:active {
        transform: translateY(0);
    }

    .copy-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Copy success state */
    .copy-btn.copied {
        background: #e8f5e8;
        border-color: #34a853;
        color: #137333;
    }

        .copy-btn.copied svg {
            stroke: #137333;
        }

 
 
.source-link {
    padding: 24px;
    background: #fff;
    min-height: 200px;
}

/* No sources state */
.no-sources {
    text-align: center;
    padding: 40px 20px;
}

    .no-sources p {
        color: #5f6368;
        font-style: italic;
        margin: 0;
    }

/* Source link items */
.source-item {
    display: block;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    text-decoration: none;
    color: #202124;
    transition: all 0.2s ease;
}

    .source-item:hover {
        background: #f1f3f4;
        border-color: #dadce0;
        text-decoration: none;
        color: #202124;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }

    .source-item .source-title {
        font-weight: 500;
        font-size: 14px;
        color: #1a73e8;
        margin-bottom: 4px;
        display: block;
    }

    .source-item .source-url {
        font-size: 12px;
        color: #5f6368;
        word-break: break-all;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-section {
        margin-bottom: 20px;
    }

    .section-header {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .copy-btn {
        align-self: flex-end;
    }

    .google-aio-container,
    .source-link {
        padding: 16px;
    }
}

/* MDC Layout Grid spacing */
.mdc-layout-grid__inner {
    gap: 24px;
}



/* Individual source item */
.source-item {
    display: block;
    padding: 16px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e8eaed;
    border-radius: 12px;
    text-decoration: none;
    color: #202124;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .source-item:hover {
        background: linear-gradient(135deg, #f1f3f4 0%, #f8f9fa 100%);
        border-color: #1a73e8;
        text-decoration: none;
        color: #202124;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
    }

    .source-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #4285f4 0%, #34a853 50%, #ea4335 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .source-item:hover::before {
        opacity: 1;
    }

/* Source header */
.source-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.source-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.source-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a73e8;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-index {
    background: #e8f0fe;
    color: #1a73e8;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Action buttons group */
.source-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

/* Copy button */
.copy-url-btn {
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 11px;
    color: #3c4043;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    font-family: "Google Sans", Arial, sans-serif;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

    .copy-url-btn:hover {
        background: #f1f3f4;
        border-color: #c4c7c5;
        color: #3c4043;
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .copy-url-btn:active {
        transform: translateY(0);
    }

    .copy-url-btn svg {
        width: 12px;
        height: 12px;
    }

    /* Copy success state */
    .copy-url-btn.copied {
        background: #e8f5e8;
        border-color: #34a853;
        color: #137333;
    }

        .copy-url-btn.copied svg {
            stroke: #137333;
        }

/* External link icon */
.external-link-icon {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.source-item:hover .external-link-icon {
    opacity: 1;
}

/* Source URL */
.source-url {
    font-size: 12px;
    color: #5f6368;
    word-break: break-all;
    line-height: 1.3;
    margin-bottom: 8px;
}

/* Source domain */
.source-domain {
    display: inline-flex;
    align-items: center;
    background: #f1f3f4;
    color: #3c4043;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    gap: 4px;
}

    .source-domain::before {
        content: '🌐';
        font-size: 10px;
    }

/* Header actions group */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Source count badge */
.source-count {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    font-family: "Google Sans", Arial, sans-serif;
}


/* Copy All URLs button in header - giống như Copy button của AIO */
.copy-all-urls-btn {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #3c4043;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: "Google Sans", Arial, sans-serif;
    font-weight: 500;
}

    .copy-all-urls-btn:hover {
        background: #f8f9fa;
        border-color: #c4c7c5;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        transform: translateY(-1px);
    }

    .copy-all-urls-btn:active {
        transform: translateY(0);
    }

    .copy-all-urls-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Copy success state */
    .copy-all-urls-btn.copied {
        background: #e8f5e8;
        border-color: #34a853;
        color: #137333;
    }

        .copy-all-urls-btn.copied svg {
            stroke: #137333;
        }


/* Responsive */
@media (max-width: 768px) {
    .source-item {
        padding: 12px;
    }

    .source-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .source-title-group {
        width: 100%;
    }

    .source-actions {
        align-self: flex-end;
        margin-left: 0;
    }

    .copy-url-btn {
        font-size: 10px;
        padding: 4px 6px;
    }
}

/* AIO Copy button states */
.copy-btn.copied {
    background: #e8f5e8 !important;
    border-color: #34a853 !important;
    color: #137333 !important;
}

    .copy-btn.copied svg {
        stroke: #137333 !important;
    }
.loading-sources p
{
    width:100%;
    text-align:center;
}



.rankingdataloading {
    position: relative;
}

    /* lớp phủ trắng + spinner */
    .rankingdataloading.loading::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.8); /* nền trắng mờ */
        z-index: 9;
    }

    .rankingdataloading.loading::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 32px;
        height: 32px;
        border: 4px solid #ccc;
        border-top-color: #007bff;
        border-radius: 50%;
        animation: spinner 0.6s linear infinite;
        transform: translate(-50%, -50%);
        z-index: 10;
    }

@keyframes spinner {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


/* Bọc bên ngoài myTab để tạo scroll */
.nav-tabs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom:1px
}

/* Tab list myTab không được xuống dòng */
#myTab {
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
}

    /* Các tab không bị xuống dòng */
    #myTab .nav-link {
        white-space: nowrap;
    }

.nav-tabs-scroll::-webkit-scrollbar {
    height: 3px;
}

.nav-tabs-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.nav-tabs-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8e37d7, #4285f4);
    border-radius: 3px;
}

    .nav-tabs-scroll::-webkit-scrollbar-thumb:hover {
        background: #666;
    }


.tb_top_kw_cover {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 1px
}

.tb_top_kw_cover table
{
    min-width:400px;
}

    .tb_top_kw_cover::-webkit-scrollbar {
        height: 3px;
    }

    .tb_top_kw_cover::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .tb_top_kw_cover::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #8e37d7, #4285f4);
        border-radius: 3px;
    }

        .tb_top_kw_cover::-webkit-scrollbar-thumb:hover {
            background: #666;
        }
.nowrap-container {
    white-space: nowrap;
    display:flex;
}

    .nowrap-container > * {
        display: inline-block;
        vertical-align: middle;
        margin-right: 4px;
    }


.aioreport_badge {
    background: linear-gradient(135deg, #4285f4 0%, #8e37d7 50%, #00bcd4 100%);
    color: #fff !important;
    box-shadow: none;
    margin-right: 10px;
    transition: all 0.3s ease;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px; /* tạo hiệu ứng pill */
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}
    .aioreport_badge:hover
    {
        background-color:#fff !important;
        text-decoration:none;
    }

    .aioreport_badge .gemini_icon {
        background: #fff;
        margin-right: 5px !important;
        border-radius: 50%;
        width: 16px;
        height: 16px;
        display: inline-block;
    }


.aioreport_badge:hover .gemini_icon {
    background: linear-gradient(135deg, #4285f4 0%, #8e37d7 50%, #00bcd4 100%);
}

.rankreport_badge {
    background: #0d6efd;
    color: #fff !important;
    box-shadow: none;
    margin-right: 10px;
    transition: all 0.3s ease;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px; /* tạo hiệu ứng pill */
    text-decoration: none;
}
    .rankreport_badge i {
        margin-right: 5px !important;
        width: 16px;
        height: 16px;
        display: inline-block;
    }


.rankreport_badge:hover{
    
}