﻿/* --- 1. Upload Section --- */
.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8fafc;
    position: relative;
    min-height: 200px;
}

    .drop-zone:hover, .drop-zone.drag-active {
        border-color: #3b82f6;
        background: #eff6ff;
        transform: scale(1.01);
    }

    .drop-zone img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: none;
        border-radius: 13px;
        z-index: 5;
    }

/* --- 2. Forensic Analysis Cards --- */
.analysis-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.confidence-score {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

/* --- 3. The Clean Room (Forensic Grid) --- */
.forensic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: #0f172a; /* Dark theme to make white ink pop */
    padding: 20px;
    border-radius: 12px;
}

.forensic-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

.result-img-container {
    text-align: center;
}

    .result-img-container img {
        width: 100%;
        height: auto;
        border-radius: 6px;
        border: 1px solid #334155;
        background: #000; /* Ensure black background for extracted ink */
    }

/* --- 4. Status Badges & Colors --- */
.status-badge {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.status-verified {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.status-warning {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.status-rejected {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.status-manual {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #bae6fd;
}

/* --- 5. Progress & Loading --- */
#progressWrapper {
    height: 4px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.progress-running {
    width: 40%;
    height: 100%;
    background: #3b82f6;
    position: absolute;
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
    from {
        left: -40%;
    }

    to {
        left: 100%;
    }
}

/* --- 6. PDF/Print Optimization --- */
@media print {
    .no-print {
        display: none !important;
    }

    .analysis-card {
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
    }

    .forensic-grid {
        background: #f1f5f9 !important;
        padding: 10px;
    }
        /* Lighter background for ink-saving */
        .forensic-grid img {
            border: 1px solid #000;
        }

    .forensic-label {
        color: #000;
    }
}
