/* ── Calibration Certificate Checker ── */

#calib-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 760px;
    margin: 0 auto;
    color: #1a1a1a;
}

/* Search box */
.calib-search-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.calib-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
#calib-input {
    min-width: 0;
    flex: 1;
    font-size: 15px;
    padding: 0 14px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
#calib-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }

#calib-btn {
    height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    border: none;
    background: #1d4ed8;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}
#calib-btn:hover { background: #1e40af; }
#calib-btn:disabled { background: #93c5fd; cursor: not-allowed; }

.calib-hint {
    font-size: 12px;
    color: #6b7280;
    margin: 8px 0 0;
}

/* Result cards */
.calib-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.calib-card-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 10px;
}
.calib-company {
    font-size: 17px;
    font-weight: 600;
    color: #111;
}
.calib-cert-no {
    font-size: 13px;
    color: #6b7280;
    font-family: monospace;
    margin-bottom: 12px;
}
.calib-divider {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 12px 0;
}
.calib-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}
@media (max-width: 720px) {
    .calib-fields {
        grid-template-columns: 1fr;
    }
}
.calib-field-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 2px;
}
.calib-field-value {
    font-size: 14px;
    color: #1f2937;
}

/* Validity badge */
.calib-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: .03em;
}
.calib-badge-valid   { background: #dcfce7; color: #15803d; }
.calib-badge-expired { background: #fee2e2; color: #b91c1c; }

/* Validity note */
.calib-note {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}
.calib-note-valid   { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.calib-note-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.calib-note-expired { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Status icon in note */
.calib-note-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* Empty / error states */
.calib-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #9ca3af;
    font-size: 14px;
}
.calib-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

/* Loading spinner */
.calib-loading {
    text-align: center;
    padding: 1.5rem;
    color: #6b7280;
    font-size: 14px;
}
