#seo-alert {
    margin-top: 50px;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 6px solid #28a745;
    background: linear-gradient(135deg, #e6ffed, #f6fff9);
    color: #155724;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Icon trong alert */
#seo-alert svg {
    width: 22px;
    height: 22px;
    vertical-align: middle;
}

/* Text highlight */
#seo-alert strong {
    color: #0b8f41;
    font-weight: 600;
}

/* Close button */
#seo-alert .close {
    font-size: 26px;
    line-height: normal;
    color: #3b763d;
}

.qc-checkhalink {
    /* background: white; */
    width: 100%;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 50px;
    margin-top: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    }
    
    /* Input Group */
    .ip-gr {
    display: flex;
    margin-bottom: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    }
    
    .ip-gr:focus-within {
    border: 2px solid #8fc74b;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
    .ip-gr input[type="text"] {flex: 1;padding: 18px 25px;border: none;outline: none;font-size: 16px;background: white;color: #000000;}
    
    .ip-gr input[type="text"]::placeholder {
    color: #adb5bd;
    }
    
.qc-checkhalink > h1 {
    text-align: center;
    text-transform: uppercase;
    font-size: 30px;
    font-weight: bold;
    color: #24304a;
  }
  
  .qc-checkhalink > p {
    text-align: center;
    font-size: 20px;
    max-width: 70%;
    margin: 0 auto;
  }
  
  .qc-checkhalink-frm {
    text-align: center;
    margin-top: 30px;
  }
  
  .qc-checkhalink-frm input[type="text"] {
    width: 1000px;
    max-width: 100%;
    height: 50px;
    padding: 10px 30px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border: none;
  }
  
  .qc-checkhalink-frm button {
    background: rgb(117 184 48);
    color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.26) 0px 0px 10px;
    height: 50px;
    border: none;
    cursor: pointer;
    width: 170px;
    padding: 10px 30px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    letter-spacing: 1px;
  }
  
  .qc-checkhalink-frm .ip-gr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #8fc74b;
  }

  .sidebar {
    min-width: 200px;
  }
 
.sidebar .nav-link {
    display: block;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    background-color: #fff;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.sidebar .nav-link:hover {
    background-color: #7fc344;
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.sidebar .nav-link.active {
    background: linear-gradient(90deg, #73b830, #70b33a);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.sidebar .nav-item + .nav-item {
    margin-top: 5px;
}

.nav-link {
    text-decoration: none;
}
  .card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.card-icon {
    
    transition: background-color 0.3s;
}

.card-icon img {
    width: 70px;
    height: auto;
}

.card-title {
    font-size: 18px;
    /* margin-bottom: 10px; */
}

.card-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.card-title a:hover {
    color: #053409;
}

.card-text {
    font-size: 16px;
    color: #666;
    line-height: 25px;
}
h3.texttab {
    margin-bottom: 30px;
    margin-top: 0;
}

.card-icon {
    margin-bottom: 20px;
}
h2.title_alltool {
    font-size: 30px;
    letter-spacing: 1px;
    color: #000000 !important;
    font-weight: 700;
    text-align: center;
    text-transform: none;
    margin-bottom: 0;
}
.seo-report {
    margin-top: 30px;
}
.seo-report  .container {
    width: 1100px;
}
.alert {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
}

button.btn-close {
        padding: 0;
    background-color: rgba(0, 0, 0, 0);
    border: 0;
}
.card-body {
    text-align: left;
}

h1.seo-title-page {
    margin-top: 0;
    font-size: 27px;
    color: #457f0e;
}
.position-relative {
    display: flex;
    justify-content: center;
    align-items: center;
}
.position-relative canvas {
    position: absolute;
}
div#diem-row {
    margin-top: 30px;
    margin-bottom: 20px;
}

div#diem-row .alert {
    box-shadow: 0 0 2px 0px rgb(0 0 0 / 35%);
    border-radius: 50px;
    padding: 7px 15px;
}
/* Card tổng thể */
.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

/* Header */
.card-header {
    font-weight: 600;
   
    border-bottom: 1px solid #f1f1f1;
    padding: 0.75rem 1rem;
}

/* Row từng kiểm tra */
.card-body .row {
    padding: 12px 0;
    border-bottom: 1px solid #f9f9f9;
    align-items: center;
}

.card-body .row:last-child {
    border-bottom: none;
}

/* Cột trái (trạng thái + label) */
.card-body .col-lg-4 {
  
    font-weight: 500;
}

/* Cột phải (chi tiết + gợi ý) */
.card-body .col-lg-8 {
   
    color: #555;
}

/* Code hiển thị */
.card-body code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 6px;
    
    color: #d63384;
}

/* Gợi ý */
.card-body small.text-muted {
    font-style: italic;
    display: block;
    margin-top: 2px;
}

/* Màu trạng thái */
.card-body span {
    display: inline-block;
    padding: 4px 6px;
    border-radius: 6px;
 
}
.card-body span:has(.font-weight-bold) {
    font-weight: 600 !important;
}

.card-body span:has(> .font-weight-bold)::before {
    margin-right: 4px;
}

/* Tuỳ biến màu */
.card-body span:contains("✅") {
    color: #198754;
    background: #e9f9f0;
}

.card-body span:contains("❌") {
    color: #dc3545;
    background: #fdeaea;
}

.card-body span:contains("⚪") {
    color: #6c757d;
    background: #f1f3f5;
}
.mt-4.mb-5 {
    margin-top: 30px;
    margin-bottom: 40px;
}
.seo-link {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: baseline;
}
.seo-link button {
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 6px 10px;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seo-link button i {
   
    color: #19a24a; /* màu xám nhạt */
}


#seoResultLink {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #19a24a;
    background:#dff0d838;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-top: 8px;
    opacity: 1;
    display: block;
}

/* Khi ẩn đi */
#seoResultLink.d-none {
    opacity: 0;
    transform: scale(0.95);
    display: none; /* fallback, bạn có thể thay bằng visibility nếu muốn giữ chỗ */
}

/* Khi focus */
#seoResultLink:focus {
    border-color: #dff0d8;
    box-shadow: 0 0 6px rgba(74, 144, 226, 0.4);
}

/* Button copy link */
.seo-link button {
    border: none;
    background: transparent;
    
}

/* Hover hiệu ứng */
.seo-link button:hover {
    color: #4a90e2;
      border: none;
    background: transparent;
    box-shadow:unset;
}
 /* Loading */
 .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    }

    /* Spinner nâng cấp */
    .spinner-container {
        position: relative;
        width: 120px;
        height: 120px;
        margin-bottom: 30px;
    }

    .spinner {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 3px solid transparent;
        border-top-color: #13ac26;
        animation: spin 2s linear infinite;
        box-shadow: 0 0 20px rgb(0 255 26 / 50%);
    }

    .spinner:nth-child(2) {
        width: 80%;
        height: 80%;
        top: 10%;
        left: 10%;
        border-top-color:rgb(255, 255, 255);
        animation-duration: 1.5s;
        animation-direction: reverse;
        box-shadow: 0 0 15px rgb(17 211 0 / 50%)
    }

    .spinner:nth-child(3) {
        width: 60%;
        height: 60%;
        top: 20%;
        left: 20%;
        border-top-color:rgb(11, 255, 206);
        animation-duration: 1s;
        box-shadow: 0 0 10px rgba(6, 255, 251, 0.5);
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Text nâng cấp */
    .loading-text {
        font-size: 20px;
        font-weight: 700;
        text-align: center;
        max-width: 80%;
        color:rgb(0, 212, 14);
        animation: pulse 2s ease-in-out infinite, gradientShift 3s ease infinite;
    
        letter-spacing: 1px;
    }

    @keyframes pulse {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.8; transform: scale(1.05); }
    }

    @keyframes gradientShift {
        0%, 100% { filter: hue-rotate(0deg); }
        50% { filter: hue-rotate(30deg); }
    }

    .loading-dots {
        display: inline-block;
        animation: dots 1.5s steps(4, end) infinite;
    }

    @keyframes dots {
        0%, 20% { content: ''; }
        40% { content: '.'; }
        60% { content: '..'; }
        80%, 100% { content: '...'; }
    }

    /* Hiệu ứng ánh sáng xung quanh */
    .light-beam {
        position: absolute;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
        pointer-events: none;
    }

    @keyframes rotate {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    /* End Loading */