/* Dofollow/Nofollow Link Checker – full width, matches GPL tool styling */

.dofnllc-tool-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.dofnllc-section {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: #fff;
    padding: 24px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.dofnllc-section--results {
    margin-bottom: 0;
}

.dofnllc-section-title {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    text-align: left;
}

.dofnllc-tool-wrap .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

#dofnllc_frm {
    width: 100%;
    margin: 0;
    text-align: center;
}

.dofnllc-form-stack {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "url btn";
    align-items: stretch;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.dofnllc-form-stack--captcha {
    grid-template-areas:
        "url btn"
        "captcha captcha";
}

.dofnllc-form-stack #dofnllc_url {
    grid-area: url;
}

.dofnllc-form-stack #dofnllc_formsend {
    grid-area: btn;
}

.dofnllc-captcha-wrap {
    grid-area: captcha;
    margin-top: 4px;
}

.dofnllc-captcha-wrap .g-recaptcha,
.dofnllc-captcha-wrap #cloudflare-turnstile {
    display: inline-block;
}

.dofnllc-input-row {
    display: flex;
    align-items: stretch;
    gap: 5px;
    width: 100%;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-sizing: border-box;
}

#dofnllc_url {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 52px;
    padding: 12px 16px;
    margin: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.4;
    background: #fff;
    box-sizing: border-box;
    --mt-input__height: 52px;
}

#dofnllc_url:focus {
    outline: none;
    border-color: rgba(55, 91, 215, 0.55);
    box-shadow: 0 0 0 3px rgba(55, 91, 215, 0.15);
}

#dofnllc_url::placeholder {
    color: #9ca3af;
}

#dofnllc_formsend {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    height: 52px;
    min-height: 52px;
    padding: 12px 28px;
    border: 0;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    box-sizing: border-box;
}

#dofnllc_formsend .motta-button__text {
    white-space: nowrap;
}

#dofnllc_formsend.button--loading {
    pointer-events: none;
    opacity: 0.85;
}

#dofnllc_formsend.button--loading .motta-button__icon,
#dofnllc_formsend.button--loading .motta-button__text {
    visibility: hidden;
    opacity: 0;
}

#dofnllc_formsend.button--loading::after {
    font-size: 1.25em;
    animation: dofnllc-spinner 1s linear infinite;
    backface-visibility: hidden;
    border: 0.2em solid;
    border-left: 0.2em solid transparent;
    border-radius: 50%;
    box-sizing: border-box;
    content: " ";
    height: 1em;
    left: 50%;
    margin: -0.5em 0 0 -0.5em;
    position: absolute;
    top: 50%;
    transform: translateZ(0) scale(0.5);
    transform-origin: 50% 50%;
    width: 1em;
}

@keyframes dofnllc-spinner {
    0% {
        animation-timing-function: cubic-bezier(0.5856, 0.0703, 0.4143, 0.9297);
        transform: rotate(0deg);
    }

    to {
        transform: rotate(1turn);
    }
}

.dofnllc-result-table {
    border-collapse: collapse !important;
    width: 100% !important;
}

#get_urls_show .dofnllc-dt-toolbar {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 0 16px;
    width: 100%;
    clear: both;
    box-sizing: border-box;
}

#get_urls_show .dofnllc-dt-toolbar::before,
#get_urls_show .dofnllc-dt-toolbar::after {
    display: none !important;
    content: none !important;
}

#get_urls_show .dt-buttons {
    display: flex !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 2;
    flex: 0 0 auto;
}

#get_urls_show .dt-buttons .dt-button,
#get_urls_show .dt-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 !important;
    min-height: 40px;
    height: 40px;
    padding: 8px 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #1a1a1a !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

#get_urls_show .dt-button:hover {
    background: rgba(55, 91, 215, 0.06) !important;
    border-color: rgba(55, 91, 215, 0.35) !important;
}

#get_urls_show .dataTables_filter,
#dofnllc_tbl_wrapper .dataTables_filter {
    display: block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 1;
    flex: 1 1 auto;
    max-width: 320px;
    text-align: right;
    box-sizing: border-box;
}

#get_urls_show .dataTables_filter label {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    margin: 0 !important;
    font-weight: 600;
    color: #1a1a1a;
    box-sizing: border-box;
}

#get_urls_show .dataTables_filter input {
    display: block !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: 40px !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

#get_urls_show .dataTables_filter input:focus {
    outline: none;
    border-color: rgba(55, 91, 215, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(55, 91, 215, 0.15);
}

.dofnllc-result-table th {
    text-align: center;
    vertical-align: middle;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    line-height: 1.25em;
    background: rgba(55, 91, 215, 0.04);
    color: #000;
    font-weight: bold !important;
    white-space: nowrap;
}

.dofnllc-result-table th:hover {
    outline: 2px solid rgba(0, 0, 0, 0.05);
    outline-offset: -2px;
}

.dofnllc-result-table td {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    line-height: 1.4em;
    padding: 8px 12px;
    vertical-align: middle;
}

.dofnllc-result-table td a {
    color: var(--mt-color__primary, #4166e1);
    word-break: break-all;
}

.dofnllc-result-table.stripe > tbody > tr.odd > *,
.dofnllc-result-table.display > tbody > tr.odd > * {
    box-shadow: inset 0 0 0 9999px rgb(255 255 255) !important;
}

#dofnllc_tbl thead tr {
    border-bottom: 3px solid rgb(65, 102, 225);
}

#dofnllc_tbl tbody tr.odd {
    background: #fff;
}

#dofnllc_tbl tbody tr.even {
    background: #f7f9fd;
}

#dofnllc_tbl tbody tr.even:hover {
    background: #eef0f4;
}

#dofnllc_tbl .dofnllc-col-url {
    text-align: left;
    word-break: break-all;
    white-space: normal;
}

#dofnllc_tbl .dofnllc-col-result {
    text-align: center;
    white-space: nowrap;
    width: 160px;
}

.dofnllc-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.dofnllc-badge-dofollow {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.dofnllc-badge-nofollow {
    background: rgba(249, 115, 22, 0.12);
    color: #c2410c;
}

.dofnllc-badge-sponsored {
    background: rgba(168, 85, 247, 0.12);
    color: #7e22ce;
}

.dofnllc-badge-ugc {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.dofnllc-results-loader {
    text-align: center;
    padding: 50px 20px;
}

.dofnllc-results-spinner {
    color: #f97248;
    font-size: 50px;
}

.dofnllc-link-stats {
    margin-bottom: 16px;
}

.dofnllc-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dofnllc-stat-card {
    padding: 18px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.dofnllc-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
}

.dofnllc-stat-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.dofnllc-stat-total {
    border-color: rgba(55, 91, 215, 0.2);
    background: rgba(55, 91, 215, 0.04);
}

.dofnllc-stat-total .dofnllc-stat-value {
    color: #4166e1;
}

.dofnllc-stat-dofollow {
    border-color: rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.06);
}

.dofnllc-stat-dofollow .dofnllc-stat-value {
    color: #15803d;
}

.dofnllc-stat-nofollow {
    border-color: rgba(249, 115, 22, 0.2);
    background: rgba(249, 115, 22, 0.06);
}

.dofnllc-stat-nofollow .dofnllc-stat-value {
    color: #c2410c;
}

.dofnllc-page-signals {
    margin-bottom: 16px;
}

.dofnllc-signal-alert {
    margin-bottom: 12px;
}

.dofnllc-signals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dofnllc-signal-item {
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: rgba(55, 91, 215, 0.03);
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}

.dofnllc-signal-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #333;
}

@media only screen and (max-width: 992px) {
    .dofnllc-stats-grid,
    .dofnllc-signals-grid {
        grid-template-columns: 1fr;
    }

    #get_urls_show .dofnllc-dt-toolbar {
        flex-wrap: wrap !important;
        justify-content: stretch;
        gap: 10px;
    }

    #get_urls_show .dataTables_filter,
    #dofnllc_tbl_wrapper .dataTables_filter {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        order: 1 !important;
        text-align: left;
    }

    #get_urls_show .dt-buttons {
        flex: 1 1 100% !important;
        order: 2 !important;
        width: 100% !important;
    }

    #get_urls_show .dataTables_filter label {
        justify-content: flex-start;
        width: 100%;
    }

    #get_urls_show .dataTables_filter input {
        width: 100% !important;
    }

    #get_urls_show .dt-buttons .dt-button,
    #get_urls_show .dt-button {
        width: 100% !important;
        min-height: 44px !important;
        height: 44px !important;
    }
}

.error {
    color: inherit;
}

.hide {
    display: none !important;
}

body .motta-alert {
    text-align: justify;
    margin-bottom: 10px;
}

#get_urls_show,
#share_urls_show {
    width: 100%;
    margin-top: 15px !important;
    text-align: left;
}

#get_urls_show .dt-buttons {
    float: none !important;
}

#matrix_result_tbl {
    width: 100%;
}

.dofnllc-empty {
    margin-top: 8px;
    padding: 16px;
    text-align: center;
    color: #555;
    background: rgba(55, 91, 215, 0.04);
    border: 1px dashed rgba(55, 91, 215, 0.2);
    border-radius: 8px;
}

#dofnllc_tbl_wrapper {
    width: 100%;
    margin-top: 0;
}

#dofnllc_tbl_wrapper button {
    min-width: auto;
}

#dofnllc_tbl_wrapper .dataTables_info {
    padding-top: 12px;
    font-size: 14px;
    color: #555;
}

#dofnllc_tbl_wrapper .dataTables_paginate {
    padding-top: 12px;
}

#dofnllc_tbl_wrapper .dataTables_paginate .paginate_button {
    padding: 4px 10px !important;
    margin-left: 2px;
    border-radius: 4px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #fff !important;
    color: #333 !important;
}

#dofnllc_tbl_wrapper .dataTables_paginate .paginate_button.current {
    background: rgba(55, 91, 215, 0.08) !important;
    border-color: rgba(55, 91, 215, 0.3) !important;
    color: #4166e1 !important;
}

#dofnllc_tbl_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(55, 91, 215, 0.06) !important;
    border-color: rgba(55, 91, 215, 0.2) !important;
    color: #4166e1 !important;
}

.dataTables_filter {
    display: none !important;
}

#get_urls_show .dataTables_filter,
#dofnllc_tbl_wrapper .dataTables_filter {
    display: block !important;
}

.dataTables_processing {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    color: #555 !important;
}

.button.is-style-rounded {
    border-radius: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 32px;
    line-height: 1.4;
}

.button.is-style-rounded:hover {
    background: #f97346 !important;
}

span.dofnllc_btn:before,
a.dofnllc_btn:before,
.dofnllc_btn:before {
    background: #f97346 !important;
}

.dt-button {
    padding: 8px !important;
    background: #fff !important;
    border: 0 none !important;
}

#get_urls_show .dt-buttons .dt-button,
#get_urls_show .dt-button {
    padding: 8px 14px !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 8px !important;
}

@media only screen and (max-width: 1180px) {
    table.responsive {
        margin-bottom: 0;
        overflow: hidden;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
}

@media only screen and (max-width: 840px) {
    table.responsive {
        margin-bottom: 0;
        overflow: hidden;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }

    table.dataTable thead th {
        white-space: normal !important;
        word-wrap: break-word;
    }
}

@media only screen and (max-width: 768px) {
    .dofnllc-section {
        padding: 16px;
    }

    .dofnllc-input-row {
        flex-direction: column;
        gap: 10px;
    }

    .dofnllc-form-stack,
    .dofnllc-form-stack--captcha {
        grid-template-columns: 1fr;
        grid-template-areas:
            "url"
            "captcha"
            "btn";
        gap: 10px;
    }

    .dofnllc-form-stack:not(.dofnllc-form-stack--captcha) {
        grid-template-areas:
            "url"
            "btn";
    }

    #dofnllc_url,
    #dofnllc_formsend {
        width: 100%;
        height: 48px;
        min-height: 48px;
        border-radius: 8px;
    }

    #dofnllc_url {
        border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    }

    #get_urls_show .dofnllc-dt-toolbar {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 10px;
    }

    #get_urls_show .dataTables_filter,
    #dofnllc_tbl_wrapper .dataTables_filter,
    #get_urls_show .dt-buttons {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        order: initial !important;
    }

    #get_urls_show .dataTables_filter label {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 6px;
        width: 100%;
    }

    #get_urls_show .dataTables_filter input,
    #get_urls_show .dt-buttons .dt-button,
    #get_urls_show .dt-button {
        width: 100% !important;
        min-width: 0 !important;
        height: 44px !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
    }

    #dofnllc_tbl_wrapper .dataTables_info,
    #dofnllc_tbl_wrapper .dataTables_paginate {
        float: none !important;
        text-align: center !important;
        width: 100%;
    }

    #dofnllc_tbl_wrapper .dataTables_paginate {
        margin-top: 8px;
    }
}

@media print {
    :root {
        --dt-row-hover: #fff !important;
    }
}
