/* Scoped CSS for IBAN & SWIFT/BIC Validator */
.isv-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
  line-height: 1.5;
}

.isv-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

.isv-title-row h2 {
  margin: 0 0 1.25rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: #111827;
}

.isv-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.isv-tab {
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #6b7280;
  cursor: pointer;
  margin-bottom: -2px;
  transition: all 0.15s ease;
}

.isv-tab:hover {
  color: #111827;
}

.isv-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.isv-tab-panel {
  display: block;
}

.isv-input-wrap {
  margin-bottom: 1rem;
}

.isv-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.isv-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-size: 1.15rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  text-transform: uppercase;
  transition: border-color 0.15s ease;
}

.isv-input:focus {
  border-color: #2563eb;
}

.isv-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.isv-presets-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
}

.isv-preset-btn,
.isv-preset-swift {
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.isv-preset-btn:hover,
.isv-preset-swift:hover {
  background-color: #e5e7eb;
  color: #111827;
}

/* Result Box */
.isv-result-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
}

.isv-result-box.isv-valid {
  border-left: 5px solid #10b981;
}

.isv-result-box.isv-invalid {
  border-left: 5px solid #ef4444;
}

.isv-status-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.isv-status-badge {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

.isv-status-pass {
  background-color: #d1fae5;
  color: #065f46;
}

.isv-status-fail {
  background-color: #fee2e2;
  color: #991b1b;
}

.isv-status-desc {
  font-size: 0.95rem;
  font-weight: 500;
  color: #4b5563;
}

.isv-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 1.5rem;
}

.isv-detail-item {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
}

.isv-detail-label {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 2px;
}

.isv-detail-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.isv-text-pass {
  color: #059669;
}

.isv-text-fail {
  color: #dc2626;
}

.isv-formats-wrap {
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.isv-format-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.isv-format-label {
  color: #4b5563;
  width: 220px;
}

.isv-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background-color: #f1f5f9;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  color: #1e293b;
}

.isv-btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.isv-btn-secondary {
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
}

.isv-btn-secondary:hover {
  background-color: #e5e7eb;
}

.isv-btn-sm {
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
}

.isv-toast {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #10b981;
  color: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  animation: isvFade 2s ease forwards;
}

@keyframes isvFade {
  0% { opacity: 0; transform: translateY(-6px); }
  15% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}

