/* Nbeauti Certificate Verification Plugin Styles */
#nbv-wrap * { box-sizing: border-box; }
#nbv-wrap {
  font-family: 'Segoe UI', Arial, sans-serif;
  max-width: 760px;
  margin: 0 auto 48px;
  color: #1a2332;
}

/* Hero */
.nbv-hero {
  background: linear-gradient(135deg, #0C447C 0%, #185FA5 100%);
  border-radius: 16px 16px 0 0;
  padding: 48px 32px 72px;
  text-align: center;
  color: #fff;
}
.nbv-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #B5D4F4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.nbv-hero-title {
  font-size: 32px !important;
  font-weight: 700 !important;
  margin: 0 0 10px !important;
  color: #fff !important;
}
.nbv-hero-sub {
  font-size: 15px;
  color: #85B7EB;
  max-width: 480px;
  margin: 0 auto;
}

/* Card */
.nbv-card {
  background: #fff;
  border-radius: 0 0 16px 16px;
  border: 1px solid #DDE3EC;
  border-top: none;
  margin-top: -40px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(12,68,124,0.08);
}

/* Tabs */
.nbv-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.nbv-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 2px solid #DDE3EC;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.nbv-tab:hover { border-color: #0C447C; background: #F0F6FF; }
.nbv-tab.active { border-color: #0C447C; background: #EBF3FF; }
.nbv-tab-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin: 0 auto;
}
.nbv-tab-label { font-size: 13px; font-weight: 700; color: #333; }
.nbv-tab.active .nbv-tab-label { color: #0C447C; }
.nbv-tab-sub { font-size: 11px; color: #888; }

/* Panels */
.nbv-panel { display: none; }
.nbv-panel.active { display: block; }

/* Input */
.nbv-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}
.nbv-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #DDE3EC;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border 0.2s;
  font-family: inherit;
}
.nbv-input:focus { border-color: #0C447C; }

/* Button */
.nbv-btn {
  width: 100%;
  margin-top: 16px;
  padding: 15px;
  background: #0C447C;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.nbv-btn:hover { background: #185FA5; }
.nbv-btn:disabled { background: #aaa; cursor: not-allowed; }

/* Error */
.nbv-error {
  margin-top: 16px;
  padding: 14px 18px;
  background: #FDE8E8;
  border-left: 4px solid #B30000;
  border-radius: 8px;
  color: #B30000;
  font-size: 14px;
  font-weight: 600;
}

/* Result */
.nbv-result { margin-top: 24px; border-radius: 12px; overflow: hidden; border: 1px solid #DDE3EC; }
.nbv-result-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nbv-result-header.valid   { background: #0A7C59; }
.nbv-result-header.revoked { background: #7C1D1D; }
.nbv-result-header.expired { background: #7C5200; }
.nbv-result-icon  { font-size: 40px; }
.nbv-result-title { font-size: 20px; font-weight: 700; color: #fff; margin: 0; }
.nbv-result-sub   { font-size: 13px; color: rgba(255,255,255,0.8); margin: 4px 0 0; }

/* Result Body */
.nbv-result-body { padding: 24px; background: #fff; }
.nbv-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.nbv-field {
  padding: 12px 0;
  border-bottom: 1px solid #F0F0F0;
}
.nbv-field:nth-child(odd)  { padding-right: 20px; border-right: 1px solid #F0F0F0; }
.nbv-field:nth-child(even) { padding-left: 20px; }
.nbv-field-label { font-size: 11px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.nbv-field-value { font-size: 15px; font-weight: 600; color: #1a2332; }

.nbv-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nbv-badge.active  { background: #D4EDDA; color: #0A7C59; }
.nbv-badge.revoked { background: #FDE8E8; color: #B30000; }
.nbv-badge.expired { background: #FFF3CD; color: #856404; }

.nbv-hash-row { margin-top: 16px; padding-top: 16px; border-top: 1px solid #F0F0F0; }
.nbv-hash { font-size: 12px !important; font-family: monospace; color: #666 !important; word-break: break-all; }

/* Actions */
.nbv-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.nbv-action-btn {
  padding: 10px 20px;
  background: #0C447C;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.nbv-action-btn:hover { background: #185FA5; }
.nbv-action-outline {
  background: #fff;
  color: #0C447C;
  border: 2px solid #0C447C;
}
.nbv-action-outline:hover { background: #EBF3FF; }

/* Footer */
.nbv-footer-note {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 20px;
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 560px) {
  .nbv-hero { padding: 32px 16px 56px; }
  .nbv-card { padding: 20px 16px; }
  .nbv-tabs { grid-template-columns: 1fr; }
  .nbv-fields-grid { grid-template-columns: 1fr; }
  .nbv-field:nth-child(odd) { padding-right: 0; border-right: none; }
  .nbv-field:nth-child(even) { padding-left: 0; }
  .nbv-hero-title { font-size: 24px !important; }
}
