/* NRW Certificate Verify - Frontend */
:root { --nrw-primary: #2563eb; }

.nrw-verify-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nrw-verify-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    text-align: center;
}

.nrw-verify-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}

.nrw-verify-sub {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 28px;
}

.nrw-input-group {
    display: flex;
    gap: 0;
    border: 2px solid var(--nrw-primary);
    border-radius: 10px;
    overflow: hidden;
}

.nrw-input-group input {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-size: 15px;
    outline: none;
    background: #f8fafc;
    color: #1e293b;
    min-width: 0;
}

.nrw-input-group button {
    background: var(--nrw-primary);
    color: #fff;
    border: none;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
    white-space: nowrap;
}

.nrw-input-group button:hover { opacity: .85; }
.nrw-input-group button:disabled { opacity: .6; cursor: not-allowed; }

/* Loading spinner */
.nrw-spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: nrw-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes nrw-spin { to { transform: rotate(360deg); } }

/* Result */
.nrw-result {
    margin-top: 28px;
    text-align: left;
    animation: nrw-fade .3s ease;
}
@keyframes nrw-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Error state */
.nrw-result.error {
    background: #fff1f1;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}
.nrw-result.error .nrw-err-icon { font-size: 36px; margin-bottom: 10px; }
.nrw-result.error h3 { color: #dc2626; font-size: 16px; margin: 0 0 6px; }
.nrw-result.error p  { color: #7f1d1d; font-size: 13px; margin: 0; }

/* Success state */
.nrw-result.success {
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 12px;
    overflow: hidden;
}

.nrw-result-header {
    background: #16a34a;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nrw-result-header .nrw-check { font-size: 22px; }
.nrw-result-header h3 { margin: 0; font-size: 16px; }

.nrw-result-body { padding: 20px; }

.nrw-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.nrw-result-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    margin-bottom: 3px;
}
.nrw-result-field span {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

.nrw-status-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.nrw-status-valid   { background: #dcfce7; color: #166534; }
.nrw-status-expired { background: #fef9c3; color: #854d0e; }
.nrw-status-revoked { background: #fee2e2; color: #991b1b; }

.nrw-qr { margin-top: 16px; text-align: center; }
.nrw-qr img { border-radius: 8px; }
.nrw-qr small { display: block; color: #64748b; font-size: 11px; margin-top: 6px; }

.nrw-result-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.nrw-action-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid;
    text-decoration: none;
    transition: opacity .15s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.nrw-action-btn:hover { opacity: .8; }
.nrw-action-btn.copy  { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.nrw-action-btn.print { border-color: #d1d5db; background: #f9fafb; color: #374151; }
.nrw-action-btn.view  { border-color: #6ee7b7; background: #ecfdf5; color: #065f46; }

@media (max-width: 480px) {
    .nrw-verify-card { padding: 24px 18px; }
    .nrw-result-grid { grid-template-columns: 1fr; }
    .nrw-input-group { flex-direction: column; }
    .nrw-input-group input, .nrw-input-group button { border-radius: 0; }
}
