/* html[data-theme="dark"] .bg-dark-gradient-ai-content {
    background: var(--hero-bg-dark);
} */

:root {
    --color-border-lock-card:transparent;
    --color-bar-modal:#EFEEF2;
    --bg-btn-upload:#171919;
    --low-severity-bg:#D1FEEE;
    --low-severity-color:#18AF7B;
    --no-signal-icon-bg:#E8F8EF;
    --border-light-no-signal:#CBEEDA;
    --color-text-verify-p:#4A495C;
}


[data-theme="dark"] {
    --color-border-lock-card:#37393A;
    --color-bar-modal:#37393A;
    --bg-btn-upload:#282A2D;
    --low-severity-bg:#003120;
    --low-severity-color:#18AF7B;
    --no-signal-icon-bg:#003120;
    --border-light-no-signal:transparent;
    --color-text-verify-p:#BBB4C7;
    --color-bg-chose-icon:    #1D004E;
}


.bg-dark-gradient-ai-content {
    background: var(--color-bg-tools-sec);
}

.color-text-verify-p{
    color: var(--color-text-verify-p);
}

.chose-box-img{
    background-color: var(--color-bg-chose-icon);
}

.card-whychoose:hover .chose-box-img {
    background: var(--grad-main);
}


.verify-modal {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    max-width: 392px;
    margin: auto;
    background-color: var(--color-bg-white);
}

[data-theme="dark"] .verify-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.alert-wrap {
    max-width: 668px !important;
}


.input-image-area {
    width: 100%;
    max-width: 668px;
    height: 250px;
    padding: 15px;
    background: var(--color-bg-white);
    border-radius: 20px;
    box-shadow: 0 0 30px 4px #5001DE12;
}

html[data-theme="dark"] .input-image-area {
    background: #10002B;
}

.image-upload-border-div {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 13px;
    border: 2px dashed #4a495cc5;
    background-color: var(--color-bg-image-border-div);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.image-upload-border-div.drag-over-active {
    background-color: rgba(80, 1, 222, 0.06);
    border-color: var(--color-primary);
}

.image-upload-border-div.drag-over-active::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 11px;
    background: rgba(80, 1, 222, 0.03);
    pointer-events: none;
}

#uploadModal .modal-dialog {
    width: 270px;
    max-width: 270px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.input-icon-upload {
    background-color: var(--color-bg-white);
    height: 50px;
    width: 50px;
    border-radius: 10px;
}

html[data-theme="dark"] .input-icon-upload {
    background-color: #1C0146;
}

html[data-theme="dark"] .input-icon-upload img {
    filter: brightness(0) saturate(100%) invert(12%) sepia(100%) saturate(7472%) hue-rotate(265deg) brightness(88%) contrast(126%);
}
.click {
    color: var(--color-text-black);
}

.bg-grad-res {
    background-image: url("../images/ai-image-detector-free/gradient-result.svg");
    background-repeat: no-repeat;
    background-position: center top 0px;
}

.border-DAD6E0 {
    border: 1px solid var(--color-border-input);
}

.bg-white-box {
    background-color: var(--color-bg-white);
    border-radius: 20px;
    border: 1px solid var(--color-card-border);
}

.preview-image-size {
    height: 27px;
    background-color: black; 
    border-bottom-left-radius: 10px;
    
}

.aidr-widget {
    --aidr-red: var(--color-danger);
    --aidr-red-light: var(--color-danger-bg);
    --aidr-orange: var(--color-warning);
    --aidr-green: var(--color-success);
    --aidr-track: var(--color-ring-track);
    --aidr-text: var(--color-text-dark);
    --aidr-muted: var(--color-text-muted);
    color: var(--aidr-text);
}

.aidr-top,
.aidr-bottom,
.aidr-bars {
    display: flex;
    gap: 18px;
}

.aidr-top {
    align-items: center;
    flex-wrap: wrap;
}

.aidr-bottom {
    align-items: stretch;
}

.aidr-bars {
    flex-wrap: wrap;
}

.aidr-ring-wrap {
    position: relative;
    width: 100px;
    height: 100px;
}

.aidr-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.aidr-ring-track,
.aidr-ring-fill {
    fill: none;
    stroke-width: 10;
}

.aidr-ring-track {
    stroke: var(--aidr-track);
}

.aidr-ring-fill {
    stroke: var(--aidr-red);
    /* stroke-linecap: round; */
    stroke-dasharray: 326.7256;
    stroke-dashoffset: 326.7256;
    transition: stroke-dashoffset 1.4s;
}

.aidr-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aidr-verdict,
.aidr-breakdown,
.aidr-bar-item {
    flex: 1;
}

.aidr-verdict-title {
    margin-bottom: 6px;
}

.aidr-verdict-desc {
   color: var(--color-text-body);
}

.aidr-verdict-desc strong {
    color: var(--color-text-body);
}

.aidr-title-red,
.aidr-color-ai {
    color: var(--aidr-red) !important;
}

.aidr-title-yellow,
.aidr-color-edited {
    color: var(--aidr-orange) !important;
}

.aidr-title-green,
.aidr-color-human {
    color: var(--aidr-green) !important;
}

.aidr-divider {
    height: 2px;
    margin: 22px 0;
    border: 0;
    background: var(--color-card-border);
}

.aidr-bar-track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--aidr-track);
}

.aidr-bar-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width 1.2s;
}

.aidr-fill-ai {
    background: var(--aidr-red);
}

.aidr-fill-edited {
    background: var(--aidr-orange);
}

.aidr-fill-human {
    background: var(--aidr-green);
}

.aidr-vdivider {
    width: 1px;
    background: var(--color-border-divider);
}

.aidr-confidence {
    min-width: 150px;
}

.aidr-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1.2;
    white-space: nowrap;
}

.aidr-badge-red {
    background: var(--aidr-red-light) !important;
    color: var(--aidr-red) !important;
}

.aidr-badge-yellow {
    background: var(--color-warning-bg-light);
    color: var(--aidr-orange);
}

.aidr-badge-green {
    background: var(--color-success-bg);
    color: var(--aidr-green);
}

.minh600 {
    height: 600px !important;
}

.percent-bage-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--color-danger-bg) !important;
    color: var(--color-danger) !important;
    white-space: nowrap;
    width: fit-content;
    line-height: 1.2;
}

.minh-520 {
    height: 520px;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--color-bg-scrollbar-thumb) transparent;
}

.minh-520::-webkit-scrollbar {
    width: 6px;
}

.minh-520::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.minh-520::-webkit-scrollbar-thumb {
    background: var(--color-bg-scrollbar-thumb);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.minh-520::-webkit-scrollbar-thumb:hover {
    background: var(--color-bg-scrollbar-hover);
}

.stp-div {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
}

.detection-card .card-title {
    color: var(--color-text-dark);
}

.detection-count-badge {
    background-color: var(--color-info-bg);
    color: var(--color-text-body);
}

.detection-table thead tr {
    color: var(--color-text-dark);
    border-bottom: 1px solid var(--color-border-scs);
    background-color: red;
}

.detection-table tbody tr {
    border-bottom: 1px solid var(--color-border-light);
}

.detection-table tbody tr.last-row {
    border-bottom: none;
}

html[data-theme="dark"] .detection-table,
html[data-theme="dark"] .detection-table thead,
html[data-theme="dark"] .detection-table tbody,
html[data-theme="dark"] .detection-table tr,
html[data-theme="dark"] .detection-table th,
html[data-theme="dark"] .detection-table td{
    background: transparent !important;
    color: #fff;
}

.col-signal {
    width: 60%;
}

.col-confidence {
    width: 20%;
}

.col-severity {
    width: 20%;
}

.signal-text {
    color: var(--color-text-body) !important;
}

.confidence-value {
    color: var(--color-text-dark);
}

.badge-severity {
    width: 100%;
    max-width: 65px;
}

.low-severity {
    background: var(--low-severity-bg);
    color: var(--low-severity-color);
}

.high-severity {
    background-color: var(--color-danger-highlight);
    color: var(--color-danger);
}

.medium-severity {
    background-color: var(--color-warning-bg);
    color: var(--color-warning);
}

.ai-detection-card {
    border: 1px solid var(--color-border-light);
    border-radius: 20px;
}

.icon-wrapper img {
    object-fit: contain;
}

html[data-theme="dark"] .icon-wrapper img:not(.theme-icon-light):not(.theme-icon-dark) {
    filter: brightness(0) invert(1);
}

.model-percentage {
    color: var(--color-text-dark);
}

.custom-progress {
    width: 100%;
    height: 6px;
    background-color: var(--color-bar-modal);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0;
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 10px;
    transition: width 1.2s ease;
}
.popular-ai-div {
    width: 100%;
    height: 112px;
    background-color: var(--color-bg-trust);
    border: 1px solid var(--color-border-trust);
    border-radius: 12px;
}

.popular-ai-row > .col {
    flex: 0 0 50%;
    max-width: 50%;
}

html[data-theme="dark"] .popular-ai-icon {
    filter: brightness(0) saturate(100%) invert(100%);
}

.bg-what-to-check {
    background: url("../images/ai-image-detector/bg-what-to-check.svg") no-repeat center;
    background-size: cover;
    min-height: 1550px;
    border-radius: 42px;
}

.cards-popular {
    border-radius: 20px;
    background: var(--color-bg-card-check);
    box-shadow: 0 0 25px 0 var(--color-shadow-price);
}

.cards-popular span {
    color: var(--color-text-muted);
}

.locked-container {
    position: relative;
    overflow: hidden;
    height: calc(100% - 45px); 
}

.blur-content {
    filter: blur(5px);
    pointer-events: none; 
    user-select: none;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lock-card {
    background: var(--color-bg-white);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(80, 1, 222, 0.08);
    border: 1px solid var(--color-border-lock-card);
    z-index: 10;
}

/* Inner graphic details */
.lock-icon {
    width: 54px;
    height: 54px;
    background: var(--color-result-purple-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.btn-unlock {
    background: #5001de;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    width: 100%;
    transition: background-color 0.2s ease;
}

.btn-unlock:hover {
    background: #4000b5;
    cursor: pointer;
}

.btn-primary-results {
    background-color: var(--bg-btn-upload);
    color: white;
}

.btn-primary-results:hover {
    background-color: #5001DE;
    color: white;
}


.preview-frame {
    height: 263px;
    border-radius: 1rem;
    overflow: hidden;
    background-color: var(--color-bg-image-border-div, #f4f3f8);
}

html[data-theme="dark"] .preview-frame {
    background-color: #1C0146;
}

.preview-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* default — landscape/square ke liye */
}

.preview-img.is-portrait {
    object-fit: contain; /* vertical images ke liye */
}

/* Light mode */
.theme-icon-dark {
    display: none;
}

.theme-icon-light {
    display: inline-block;
}

/* Dark mode */
html[data-theme="dark"] .theme-icon-light {
    display: none;
}

html[data-theme="dark"] .theme-icon-dark {
    display: inline-block;
}

.no-signal-icon {
    width: 56px;
    height: 56px;
    background: var(--no-signal-icon-bg);
    border: 1px dashed var(--border-light-no-signal);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}


@media (min-width: 1200px) {
    .custom-col-7 {
        flex: 0 0 auto !important;
        width: 14.2857% !important;
    }
}

@media (min-width: 992px) {
    .popular-ai-row > .col {
        flex: 0 0 12.5%;
        max-width: 12.5%;
    }
}

@media (max-width: 767px) {

    .input-image-area {
        padding: 18px;
        height: 306px;
    }



.aidr-bottom {
        flex-direction: column;
    }
    .aidr-bar-item {
        width: 100%;
        flex: none;
    }

     #modelDetectionRow .stp-div {
        display: grid;
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        justify-items: center;
        column-gap: 70px;
        row-gap: 6px;
        padding: 14px 16px !important;
    }

    #modelDetectionRow .icon-wrapper {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 0 !important;
        width: 60px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #modelDetectionRow .model-name {
        grid-column: 1;
        grid-row: 2;
        font-size: 13px;
        font-weight: 600;
        color: var(--color-text-dark);
        white-space: nowrap;
        text-align: center;
    }

    #modelDetectionRow .model-percentage {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 0 !important;
        justify-self: start;
    }

    #modelDetectionRow .custom-progress {
        grid-column: 2;
        grid-row: 2;
        margin-top: 0 !important;
        width: 90%;
        max-width: 90%;
        justify-self: start;
    }
}

@media (max-width: 576px) {

    .aidr-vdivider {
        width: 100%;
        height: 1px;
    }
    .sample-image-size{
        height: 50px;
        width: 50px;
    }
    
    .recheck-icon{
        height: 11px;
        width: 11px;
    }
    
    .aidr-ring {
        width: 93%;
        height: 97%;
    }

   
}