/* Ten23 Labs - Public Batch Verification */

.t23-verify-container {
    max-width: 700px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.t23-verify-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 24px;
}
.t23-verify-form { margin-bottom: 30px; }
.t23-verify-input-wrap {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.t23-verify-input-wrap:focus-within { border-color: #2a9d54; }

.t23-search-type {
    border: none;
    background: #f5f5f5;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    border-right: 2px solid #e0e0e0;
    min-width: 140px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.t23-search-input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    outline: none;
    background: #fff;
}
.t23-search-input::placeholder { color: #aaa; }
.t23-search-btn {
    border: none;
    background: #1a1a2e;
    color: #fff;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 100px;
}
.t23-search-btn:hover { background: #2a9d54; }

.t23-loader {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: t23-spin 0.6s linear infinite;
}
@keyframes t23-spin { to { transform: rotate(360deg); } }

/* ── Results ── */
.t23-verify-results { margin-top: 20px; }

.t23-batch-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.t23-batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}
.t23-batch-product {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}
.t23-batch-id-tag {
    background: #e8f5e9;
    color: #2a9d54;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.t23-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.t23-result-item { text-align: center; }
.t23-result-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.t23-result-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}
.t23-result-value.t23-pass { color: #198754; }
.t23-result-value.t23-fail { color: #dc3545; }

.t23-coa-link {
    display: inline-block;
    background: #2a9d54;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
.t23-coa-link:hover { background: #1a7d3e; color: #fff; }

.t23-coa-pending {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.t23-error-msg {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-size: 15px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .t23-verify-input-wrap { flex-direction: column; }
    .t23-search-type { border-right: none; border-bottom: 2px solid #e0e0e0; }
    .t23-results-grid { grid-template-columns: repeat(2, 1fr); }
}
