.hacker, #loading-text {
        font-family: 'Courier New', Courier, monospace; /* Font kiểu terminal */
        font-size: 15px;
        color: #00ff00; /* Màu xanh neon */
        text-align: center;
        background-color: #ffffff; /* Nền trắng */
        position: relative;
        overflow: hidden;
        white-space: nowrap;
    }

    /* Hiệu ứng rơi từ trên xuống */
    .hacker::after {
    content: "|";
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}
.nav-action{
    width: 95%;
    position: relative;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.seo-container {
    display: flex;
    height: 100vh; /* Chiều cao toàn màn hình nếu cần */
}

.seo-sidebar {
    width: 300px;
    background-color: #2e2e4f;
    padding: 10px;
    box-sizing: border-box;
    color: white;
    transition: width 0.3s ease; /* Hiệu ứng chuyển động mượt mà */
}

.seo-sidebar.collapsed {
    width: 30px; /* Thu gọn còn 30px */
    padding: 10px 0; /* Giảm padding để vừa với chiều rộng nhỏ */
    overflow: hidden; /* Ẩn nội dung tràn ra */
}

.seo-sidebar h2 {
    font-size: 18px;
    margin: 0;
    text-align: center;
    margin-bottom: 10px;
}

.seo-sidebar.collapsed h2 {
    display: none; /* Ẩn tiêu đề khi thu gọn */
}

.seo-sidebar ul {
    list-style: none;
    padding: 10px;
    margin: 0px;
}

.seo-sidebar.collapsed ul {
    padding: 0; /* Loại bỏ padding khi thu gọn */
}

.seo-sidebar .list-items a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 10px;
    transition: padding 0.3s ease;
}

.seo-sidebar.collapsed .list-items a {
    padding: 10px 5px; /* Giảm padding để vừa với chiều rộng nhỏ */
}

.seo-sidebar .list-items a i {
    margin-right: 10px;
    font-size: 16px;
}

.seo-sidebar.collapsed .list-items a .menu-text {
    display: none; /* Ẩn chữ trong menu khi thu gọn */
}

.seo-sidebar .add-company-group,
.seo-sidebar .togger-menu-seo {
    padding: 10px;
    border-radius: 10px;
    margin-left: 10px;
    width: 90%;
    background: linear-gradient(45deg, #2eedef, #da42d9);
    border: 0px;
    cursor: pointer;
    color: white;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}


.seo-sidebar.collapsed .togger-menu-seo, .seo-sidebar.collapsed .add-company-group {
    margin-left: 0;
    padding: 5px;
    width: 100%;
    background: transparent;
}

.seo-sidebar .togger-menu-seo i,
.seo-sidebar .add-company-group i {
    margin-right: 10px;
}

.seo-sidebar.collapsed .togger-menu-seo i,
.seo-sidebar.collapsed .add-company-group i {
    margin-right: 0px;
}

.seo-sidebar.collapsed .togger-menu-seo span,
.seo-sidebar.collapsed .add-company-group span {
    display: none; /* Ẩn chữ trong cả hai button khi thu gọn */
}

.seo-main-seo {
    flex: 1; /* Chiếm phần còn lại */
    background-color: transparent;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    position: relative;
}

.seo-main-seo > * {
    color: black;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.popup-content h2 {
    margin: 0 0 20px;
    font-size: 24px;
    text-align: center;
    color: #333;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
}

.popup-form input:focus {
    border-color: #2eedef;
    box-shadow: 0 0 5px rgba(46, 237, 239, 0.5);
}

.popup-form button {
    padding: 10px;
    background: linear-gradient(45deg, #2eedef, #da42d9);
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.popup-form button:hover {
    background: linear-gradient(45deg, #da42d9, #2eedef);
}

    .research-form {
      font-family: Arial, sans-serif;
      background: #f8f9fa;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      margin-bottom: 30px;
    }
    .research-form .search-box {
      text-align: center;
      margin-bottom: 20px;
    }
    .research-form input[type="text"] {
        width: 82%;
        padding: 12px 55px 12px 12px;
        font-size: 16px;
        border-radius: 24px;
        border: 1px solid #ccc;
        outline: none;
    }
    .research-form button {
      padding: 12px 24px;
      font-size: 16px;
      border: none;
      background: #4285f4;
      color: white;
      border-radius: 24px;
      cursor: pointer;
      margin-left: 10px;
    }
    .research-form .tabs {
      margin-top: 20px;
      display: flex;
      flex-wrap: wrap;
      gap: 0px;
      justify-content: center;
    }
    .research-form .tab {
      background: #ddd;
      padding: 8px 14px;
      border-radius: 5px;
      cursor: pointer;
    }
    .research-form .tab.active {
      background: #4285f4;
      color: white;
    }
    .research-form .results {
      margin-top: 30px;
      background: white;
      padding: 20px;
      border-radius: 8px;
    }
    .research-form .result-item {
      margin-bottom: 15px;
    }
    .research-form .result-item a {
      color: #1a0dab;
      font-size: 18px;
      text-decoration: none;
    }
    .research-form .result-item .domain {
      color: #006621;
      font-size: 14px;
    }
    .research-form .result-item .type {
      font-size: 12px;
      color: gray;
    }
    
    .search-result {
        display: flex;
        margin-bottom: 20px;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
    }
    
    .search-result:hover{
        background: #e5e5e5;
        box-shadow: 2px 2px 5px #ccc;
    }
    
    .result-image {
        width: 28px;
        height: 28px;
        margin-right: 15px;
    }
    .result-content h4 {
        margin: 0 0 5px;
        font-size: 16px;
    }
    .result-content a {
        color: #1a0dab;
        text-decoration: none;
    }
    .result-content a:hover {
        text-decoration: underline;
    }
    .result-content cite {
        color: #006621;
        font-style: normal;
        font-size: 14px;
    }
    .result-content p {
        color: #545454;
        margin: 5px 0 0;
        font-size: 13px;
    }
    .head-action{
        display: flex;
        gap: 20px;
        justify-content: center;
        align-items: center;
        margin-bottom: 5px;
        padding-top: 10px;
    }
    .table-responsive { overflow-x: auto; }
    .result-item { cursor: pointer; }
    .error-message { color: red; }
    .tab {
        display: inline-block;
        padding: 10px;
        margin: 5px;
        cursor: pointer;
        border: 1px solid #ccc;
    }
    .result-tab {
        display: none;
    }
    #loading-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
        }
        #loading-overlay div {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 20px;
            border-radius: 5px;
            text-align: center;
        }
        
.two-column-layout {
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }
    .left-column, .right-column {
        flex: 1;
    }
    
    
    .google-style-results {
        max-width: 100%;
    }
    .result-content cite {
        color: #006621;
        font-style: normal;
        font-size: 14px;
    }
    .result-content p {
        color: #545454;
        margin: 5px 0 0;
        font-size: 13px;
    }
    .local-result {
        display: flex;
        margin-bottom: 20px;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
    }
    .local-image {
        width: 100px;
        height: auto;
        margin-right: 15px;
    }
    .local-content h5 {
        margin: 0 0 5px;
        font-size: 16px;
    }
    .local-content p {
        margin: 5px 0;
        font-size: 13px;
    }
    .map-image {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    .kg-image {
        width: 150px;
        height: auto;
        margin: 5px;
    }
@media screen and (max-width: 480px){
    .head-action {
        display: flex;
        gap: 20px;
        justify-content: center;
        align-items: center;
        margin-bottom: 5px;
        flex-direction: column;
    }
    .research-form{
        padding: 0px;
    }
    .two-column-layout {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        flex-direction: column;
    }
    .kg-image {
        width: 100%;
        height: auto;
        margin: 5px;
    }
    .pagination{
        padding: 5px 5px;
    /* background: #e5e5e5; */
        border: 1px solid #e5e5e5;
        border-radius: 5px;
    }
    .pagination > * {
        font-size: 13px;
    }
    @keyframes breathing {
        0%   { transform: scale(1); opacity: 1; }
        50%  { transform: scale(1.03); opacity: 0.85; }
        100% { transform: scale(1); opacity: 1; }
    }
    
    .pagination > button {
        padding: 7px 15px;
        font-size: 13px;
        animation: breathing 3s ease-in-out infinite;
    }
    
}
#search-button{
    padding: 0px 13px;
    font-size: 35px;
    border: none;
    background: transparent;
    color: black;
    border-radius: 100%;
    cursor: pointer;
    margin-left: 10px;
    position: absolute;
    right: 0;
    top: 0;
}