/* Scoped styles for healthcare-provider-npi-lookup (prefix: hpnl-) */

.hpnl-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text, #1f2937);
}

.hpnl-header-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hpnl-pill-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0369a1;
  background-color: #e0f2fe;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.hpnl-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  line-height: 1.25;
}

.hpnl-subtitle {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  max-width: 820px;
}

/* Nav Tabs */
.hpnl-nav-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.hpnl-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -2px;
}

.hpnl-tab-btn:hover {
  color: #0f172a;
}

.hpnl-tab-active {
  color: #0284c7;
  border-bottom-color: #0284c7;
}

.hpnl-tab-panel {
  display: none;
}

.hpnl-panel-active {
  display: block;
}

/* Cards & Layout */
.hpnl-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hpnl-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
}

.hpnl-text-muted {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 1.25rem 0;
  line-height: 1.45;
}

/* Validator Form */
.hpnl-validator-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hpnl-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hpnl-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.hpnl-input-action-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hpnl-input, .hpnl-select {
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  flex: 1;
  min-width: 200px;
}

.hpnl-input:focus, .hpnl-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.hpnl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.hpnl-btn-primary {
  background-color: #0284c7;
  color: #ffffff;
}

.hpnl-btn-primary:hover {
  background-color: #0369a1;
}

.hpnl-btn-secondary {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.hpnl-btn-secondary:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Result Card */
.hpnl-result-card {
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid;
  transition: all 0.2s ease;
}

.hpnl-res-valid {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.hpnl-res-invalid {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.hpnl-res-incomplete {
  background-color: #fefce8;
  border-color: #fef08a;
  color: #854d0e;
}

.hpnl-result-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.hpnl-result-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.hpnl-result-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.2rem 0;
}

.hpnl-result-msg {
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.9;
}

.hpnl-breakdown-box {
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.hpnl-breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  gap: 1rem;
}

.hpnl-b-label {
  color: #475569;
  font-weight: 500;
}

.hpnl-b-val {
  font-weight: 700;
  color: #0f172a;
}

.hpnl-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.hpnl-details {
  font-size: 0.85rem;
  color: #475569;
}

.hpnl-summary {
  cursor: pointer;
  font-weight: 600;
  color: #0284c7;
  margin-bottom: 0.5rem;
}

.hpnl-details-content {
  padding: 0.5rem 0.25rem;
  line-height: 1.5;
}

.hpnl-ordered-list {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.hpnl-ordered-list li {
  margin-bottom: 0.35rem;
}

/* Directory Section */
.hpnl-dir-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hpnl-count-badge {
  font-size: 0.825rem;
  font-weight: 600;
  color: #475569;
  background-color: #f1f5f9;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}

.hpnl-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .hpnl-filter-grid {
    grid-template-columns: 1fr;
  }
}

.hpnl-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hpnl-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.hpnl-provider-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.hpnl-provider-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  border-color: #7dd3fc;
}

.hpnl-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.hpnl-card-title-wrap {
  display: block;
}

.hpnl-provider-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.hpnl-npi-chip {
  font-size: 0.825rem;
  color: #475569;
}

.hpnl-npi-num {
  font-weight: 700;
  color: #0284c7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.hpnl-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.hpnl-badge-type1 {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.hpnl-badge-type2 {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.hpnl-card-body {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.hpnl-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hpnl-meta-label {
  font-weight: 600;
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hpnl-meta-val {
  color: #1e293b;
}

.hpnl-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background-color: #f1f5f9;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #0f172a;
}

.hpnl-card-footer {
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.hpnl-validate-btn {
  width: 100%;
  font-size: 0.8rem;
  padding: 0.45rem 0.85rem;
}

.hpnl-no-results {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
}

/* Taxonomy Table */
.hpnl-table-wrap {
  overflow-x: auto;
}

.hpnl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.hpnl-table th {
  background-color: #f8fafc;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  color: #475569;
}

.hpnl-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.hpnl-table tr:hover td {
  background-color: #f8fafc;
}

/* Ad Slot */
.hpnl-ad-slot {
  min-height: 280px;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border: 1px dashed #e5e7eb;
  border-radius: 8px;
}

/* Disclaimer */
.hpnl-disclaimer {
  background-color: #f8fafc;
  border-left: 4px solid #0284c7;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 2rem 0;
}

.hpnl-disclaimer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 0.35rem;
}

.hpnl-disclaimer-text {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}
