:root {
  --primary-color: #2c3e50;
  --primary-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --bg-color: #e8ecf1;
  --text-color: #2c3e50;
  --card-bg: #ffffff;
  --card-header-bg: #d5dce0;
  --card-border: #c4cdd1;
  --template-active-bg: #f8fafc;
}
[data-bs-theme="dark"] {
  color-scheme: dark;
  --primary-color: #6ea8fe;
  --primary-gradient: linear-gradient(135deg, #1a1d20 0%, #212529 100%);
  --bg-color: #000000;
  --text-color: #e8ecf1;
  --card-bg: #121212;
  --card-header-bg: #1a1a1a;
  --card-border: #2d2d2d;
  --template-active-bg: #2c3e50;
}
body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  transition: background-color 0.3s, color 0.3s;
}
.navbar {
  background: var(--primary-gradient);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  color: #fff !important;
}
.card {
  border: none;
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.card-header {
  background: var(--card-header-bg);
  border-bottom: 1px solid var(--card-border);
  border-radius: 8px 8px 0 0;
  color: var(--text-color);
}
.btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
  color: #fff;
}
.form-control, .form-select {
  border: 1px solid #c4cdd1;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: #2c3e50;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
  border-color: #2c3e50;
  color: #2c3e50;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}
.status-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.25rem 0.25rem 0.25rem 0;
}
.status-success {
  background: #d1fae5;
  color: var(--success-color);
}
.status-warning {
  background: #fef3c7;
  color: var(--warning-color);
}
.status-error {
  background: #fee2e2;
  color: var(--danger-color);
}
.status-info {
  background: #dbeafe;
  color: #3b82f6;
}
.uuid-display {
  background: #f3f4f6;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  word-break: break-all;
  border-left: 3px solid #667eea;
  margin: 1rem 0;
  gap: 10px;
}
.uuid-display strong {
  white-space: nowrap;
}
.loading-spinner {
  display: none;
  margin-left: 0.5rem;
}
.loading-spinner.active {
  display: inline-block;
}
.result-panel {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}
.alert {
  border-radius: 6px;
  border: none;
}
.btn-group-sm .btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
}
.collapse-btn {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  cursor: pointer;
}
.collapse-btn:hover {
  color: #34495e;
}
.section-icon {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}
.template-card {
  cursor: pointer;
  border: 2px solid #e5e7eb !important;
  transition: all 0.2s ease-in-out;
}
.template-card:hover {
  border-color: #c4cdd1 !important;
  transform: translateY(-2px);
}
.template-card.active-template {
  border-color: var(--primary-color) !important;
  background-color: var(--template-active-bg) !important;
  box-shadow: 0 4px 6px rgba(44, 62, 80, 0.1);
}
[data-bs-theme="dark"] .navbar .btn-light,
[data-bs-theme="dark"] .navbar .btn-outline-light:hover,
[data-bs-theme="dark"] .navbar .btn-outline-light:active,
[data-bs-theme="dark"] .navbar .btn-outline-light.active {
  background-color: #2c3e50 !important;
  border-color: #2c3e50 !important;
  color: #f8f9fa !important;
}
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #0a0a0a;
  border-color: #2d2d2d;
  color: #e8ecf1;
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background-color: #000000;
  color: #e8ecf1;
  border-color: var(--primary-color);
}
[data-bs-theme="dark"] .uuid-display,
[data-bs-theme="dark"] .result-panel {
  background: #0a0a0a;
  color: #e8ecf1;
  border-color: #2d2d2d;
}
[data-bs-theme="dark"] .collapse-btn:hover {
  color: var(--primary-color);
}
/* Real-time Validation Styles */
.form-control.is-valid,
.form-select.is-valid {
  border-color: #10b981 !important;
  background-image: none;
}
.form-control.is-valid:focus,
.form-select.is-valid:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}
.valid-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  font-size: 1.2rem;
  animation: slideInCheck 0.3s ease-out;
}
@keyframes slideInCheck {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.invalid-feedback {
  display: block;
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  animation: slideInError 0.2s ease-out;
}
@keyframes slideInError {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.validation-spinner {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 0.5rem;
  margin-right: 0.5rem;
}
.validation-spinner.active {
  display: inline-flex;
}
[data-bs-theme="dark"] .form-control.is-valid,
[data-bs-theme="dark"] .form-select.is-valid {
  border-color: #10b981 !important;
}
/* Toast Notifications Styles */
.toast-container {
  z-index: 1055 !important;
}
.toast {
  min-width: 320px;
  max-width: 500px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: slideInToast 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}
@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateX(100px) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.5);
  animation: progressBar 5s linear forwards;
}
@keyframes progressBar {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}
.toast-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}
.toast-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
}
.toast-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
}
.toast-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
}
.toast-copy {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
}
.toast-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-weight: 500;
}
.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.toast-content {
  flex: 1;
  overflow: hidden;
}
.toast-msg {
  display: block;
  word-break: break-word;
  line-height: 1.4;
}
.btn-close-toast {
  padding: 0 8px;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.btn-close-toast:hover {
  opacity: 1;
}
.toast-action {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 4px;
  color: inherit;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s;
  white-space: nowrap;
}
.toast-action:hover {
  background: rgba(255, 255, 255, 0.3);
}
[data-bs-theme="dark"] .toast {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
/* Safety Warnings Styles */
.safety-warnings {
  animation: slideInUp 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
[data-bs-theme="dark"] .bg-light {
  background-color: #1a1a1a !important;
  border-color: #2d2d2d;
}
[data-bs-theme="dark"] .text-muted {
  color: #9ca3af !important;
}
/* Duration Quick-Select Buttons */
.btn-group-duration {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.duration-quick-btn {
  flex: 1;
  min-width: 60px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1.5px solid #d1d5db;
}
.duration-quick-btn:hover {
  border-color: #2c3e50;
  background-color: rgba(44, 62, 80, 0.05);
  transform: translateY(-1px);
}
.duration-quick-btn.active {
  background-color: #2c3e50;
  color: #fff;
  border-color: #2c3e50;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}
.duration-quick-btn i {
  margin-right: 0.35rem;
  font-size: 0.95rem;
}
[data-bs-theme="dark"] .duration-quick-btn {
  border-color: #404040;
  background-color: #0f0f0f;
  color: #e8ecf1;
}
[data-bs-theme="dark"] .duration-quick-btn:hover {
  background-color: rgba(110, 168, 254, 0.1);
  border-color: #6ea8fe;
}
[data-bs-theme="dark"] .duration-quick-btn.active {
  background-color: #6ea8fe;
  color: #000;
  border-color: #6ea8fe;
  box-shadow: 0 2px 8px rgba(110, 168, 254, 0.4);
}
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  .card {
    margin-bottom: 1.5rem;
  }
}
@media (min-width: 768px) {
  .border-start-md {
    border-left: 1px solid var(--card-border) !important;
  }
}

/* Sidebar Navigation Styles */
.sidebar {
  background: var(--primary-gradient);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
}
.sidebar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: #fff;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  border-radius: 6px;
  margin-bottom: 0.4rem;
  padding: 0.65rem 0.9rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  border: none;
  background: none;
  width: 100%;
}
.sidebar .nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}
.sidebar .nav-link.active {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: inset 3px 0 0 #fff;
}
.main-content {
  flex-grow: 1;
  background-color: var(--bg-color);
  min-height: 100vh;
  overflow-y: auto;
}
.sidebar-wallet-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.85rem;
  margin-bottom: 1.25rem;
}
#walletContainer .btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
}
#copyAddressBtn, #disconnectBtn {
  border-color: rgba(255, 255, 255, 0.2) !important;
}
#copyAddressBtn:hover, #disconnectBtn:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}
#enableEscrowsBtn {
  margin-left: 0 !important;
  margin-top: 0.5rem;
  width: 100%;
  font-size: 0.75rem !important;
  padding: 0.35rem 0.5rem !important;
}
[data-bs-theme="dark"] .sidebar {
  background: linear-gradient(180deg, #111 0%, #181818 100%);
  border-right: 1px solid #2d2d2d;
}
[data-bs-theme="light"] .sidebar {
  background: linear-gradient(180deg, #2c3e50 0%, #1e2b37 100%);
}
.dashboard-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.table-hover tbody tr {
  transition: background-color 0.15s ease-in-out;
}
[data-bs-theme="dark"] .table-hover tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.03) !important;
}
[data-bs-theme="light"] .table-hover tbody tr:hover td {
  background-color: rgba(0, 0, 0, 0.02) !important;
}

/* Shimmer Loading Animations */
.shimmer-placeholder {
  background: linear-gradient(90deg, var(--card-border) 25%, var(--card-bg) 50%, var(--card-border) 75%);
  background-size: 200% 100%;
  animation: shimmer-animation 1.5s infinite linear;
  border-radius: 4px;
  display: inline-block;
}
@keyframes shimmer-animation {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Glowing progress bars */
.progress-bar-glow {
  box-shadow: 0 0 6px var(--bs-primary);
}
.progress-bar-success-glow {
  box-shadow: 0 0 6px var(--bs-success);
}

/* Latency Widget styles */
#rpcStatusWidget:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* SVG Checkmark Animation */
.success-checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-miterlimit: 10;
  animation: success-checkmark-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.success-checkmark__check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: success-checkmark-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}
@keyframes success-checkmark-stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

/* ── Phase 2: Escrow Filter Bar ── */
.escrow-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border);
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.filter-chip:hover {
  border-color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, var(--card-bg));
}
.filter-chip.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.filter-chip .filter-count {
  background: rgba(255,255,255,0.2);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.7rem;
  min-width: 1.2rem;
  text-align: center;
}
.filter-chip.active .filter-count {
  background: rgba(255,255,255,0.3);
}
.escrow-search-wrap {
  position: relative;
  margin-left: auto;
  min-width: 180px;
  max-width: 260px;
}
.escrow-search-wrap input {
  width: 100%;
  padding: 0.35rem 0.75rem 0.35rem 2rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 0.8rem;
  transition: border-color 0.2s;
}
.escrow-search-wrap input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 20%, transparent);
}
.escrow-search-wrap .search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  font-size: 0.8rem;
  pointer-events: none;
}

/* ── Phase 2: Sidebar Badge ── */
.sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--danger-color);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: auto;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sidebar-badge.has-items {
  opacity: 1;
  transform: scale(1);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* ── Phase 2: Rich Address Dropdown ── */
.rich-address-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1055;
  max-height: 240px;
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  margin-top: 2px;
  display: none;
}
.rich-address-dropdown.show { display: block; }
.address-dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid var(--card-border);
  transition: background 0.15s;
}
.address-dropdown-item:last-child { border-bottom: none; }
.address-dropdown-item:hover,
.address-dropdown-item.highlighted {
  background: color-mix(in srgb, var(--primary-color) 10%, var(--card-bg));
}
.address-item-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--primary-color);
}
.address-item-address {
  font-family: 'SFMono-Regular', monospace;
  font-size: 0.75rem;
  opacity: 0.7;
}
.address-item-context {
  font-size: 0.7rem;
  opacity: 0.5;
  margin-top: 0.1rem;
}
.address-dropdown-section {
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.4;
  background: var(--card-header-bg);
}

/* ── Phase 2: Rich Help Popovers ── */
.help-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary-color) 15%, transparent);
  color: var(--primary-color);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: help;
  margin-left: 0.35rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.help-trigger-icon:hover {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.1);
}
.help-popover-content {
  font-size: 0.82rem;
  line-height: 1.5;
}
.help-popover-content .help-desc {
  margin-bottom: 0.5rem;
}
.help-popover-content .help-example {
  background: var(--card-header-bg);
  border-radius: 0.35rem;
  padding: 0.4rem 0.6rem;
  font-family: 'SFMono-Regular', monospace;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  word-break: break-all;
}
.help-popover-content .help-example::before {
  content: '\1F4A1 Example: ';
  font-family: inherit;
  opacity: 0.6;
}
.help-popover-content .help-why {
  border-top: 1px solid var(--card-border);
  padding-top: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  opacity: 0.8;
}
.help-popover-content .help-why::before {
  content: '\2753 ';
}
.help-popover-content .help-doc-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--primary-color);
  text-decoration: none;
}
.help-popover-content .help-doc-link:hover {
  text-decoration: underline;
}
.help-example-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  border: 1px dashed var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 0.35rem;
}
.help-example-btn:hover {
  background: var(--primary-color);
  color: #fff;
  border-style: solid;
}

/* ── Phase 2: Feature Spotlight Dots ── */
.feature-spotlight {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-color);
  z-index: 10;
  animation: spotlightPulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes spotlightPulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  50% { transform: scale(1.3); opacity: 0.8; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* ── Tab Navigation & Content Container Layout Overrides ── */

/* 1. Eliminate excess vertical space between tab navigation bar & active tab contents */
.nav-tabs,
.nav-pills {
  margin-bottom: 0.75rem !important;
}

.tab-content,
#enterpriseSubTabContent,
#v-pills-tabContent {
  margin-top: 0 !important;
  padding-top: 0.5rem !important;
}

/* 2. Ensure all tab panels and card containers use top-alignment */
.tab-pane,
.tab-pane.active,
.tab-pane.show,
.main-content,
.container-fluid {
  align-items: flex-start !important;
  align-content: flex-start !important;
  justify-content: flex-start !important;
}

.tab-pane {
  padding-top: 0.5rem !important;
}

/* 3. Remove accidental min-height, 100vh, margin-top: auto, or flex-end positioning */
.tab-content,
.tab-pane,
.tab-pane .card {
  min-height: 0 !important;
  height: auto !important;
  margin-top: 0 !important;
}

.tab-pane .card {
  margin-bottom: 1rem !important;
}
