@import 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css';
@import 'https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css';
@import 'actiontext.css';
@import 'public_fundraiser.css';

/* Custom styles can go here using modern CSS features */
:root {
  /* Define your custom properties (variables) here */
  --primary-color: #007bff;
  --secondary-color: #6c757d;
}

/* Example of modern CSS nesting */
.hover-shadow {
  transition: box-shadow 0.2s ease-in-out;
  
  &:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
}

/* Lead row styles */
.lead-row {
  border-bottom: 1px solid var(--sb-border-light) !important;
  transition: background var(--sb-transition);
}

.lead-row:hover {
  background-color: var(--sb-bg-light);
}

.lead-row:last-child {
  border-bottom: none !important;
}

/* Lead header styling */
.lead-header {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sb-text-muted);
  border-bottom: 1px solid var(--sb-border) !important;
  background: var(--sb-bg-light);
}

/* Lead avatar styling */
.lead-avatar {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--sb-radius);
  border: 1px solid var(--sb-border);
  background: var(--sb-bg-light);
}

.lead-avatar-placeholder {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sb-bg-light);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  color: var(--sb-text-muted);
  font-size: 1.5rem;
}

/* Instagram handle styling */
.instagram-handle {
  font-size: 0.8125rem;
  color: var(--sb-text-muted);
}

.instagram-handle a {
  color: var(--sb-text-muted);
  text-decoration: none;
}

.instagram-handle a:hover {
  color: var(--sb-text);
  text-decoration: underline;
}

/* Score badges - consistent across all grades */
.score-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--sb-radius-sm);
  background: var(--sb-bg-light);
  color: var(--sb-text);
  border: 1px solid var(--sb-border);
}

.score-badge.score-a,
.score-badge.score-a-plus {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.score-badge.score-b {
  background: #dbeafe;
  color: #1e40af;
  border-color: #bfdbfe;
}

.score-badge.score-c {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.score-badge.score-d {
  background: var(--sb-bg-light);
  color: var(--sb-text-muted);
  border-color: var(--sb-border);
}

/* Get Score button - subtle */
.btn-get-score {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sb-text-muted);
  background: transparent;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-sm);
  cursor: pointer;
  transition: all var(--sb-transition);
}

.btn-get-score:hover {
  background: var(--sb-bg-light);
  color: var(--sb-text);
  border-color: #d1d5db;
}

/* Error notes - subdued */
.error-note {
  font-size: 0.75rem;
  color: var(--sb-text-muted);
  opacity: 0.8;
}

.error-note.error-warning {
  color: var(--sb-warning);
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--sb-radius-sm);
  background: var(--sb-bg-light);
  color: var(--sb-text-muted);
  border: 1px solid var(--sb-border);
}

.status-badge.status-new {
  background: #dbeafe;
  color: #1e40af;
  border-color: #bfdbfe;
}

.status-badge.status-dmed {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #e9d5ff;
}

.status-badge.status-interested {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.status-badge.status-not-interested {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.status-badge.status-callback {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.status-badge.status-fundraiser-created {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.status-badge.status-private {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.status-badge.status-not-found {
  background: var(--sb-bg-light);
  color: var(--sb-text-muted);
  border-color: var(--sb-border);
}

/* ==========================================================================
   Profile Cards - Dating app style
   ========================================================================== */

.profile-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.profile-card {
  background: white;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-lg);
  overflow: hidden;
  box-shadow: var(--sb-shadow);
  transition: box-shadow var(--sb-transition);
}

.profile-card:hover {
  box-shadow: var(--sb-shadow-hover);
}

.profile-card-scoring-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--sb-text-muted);
  font-size: 0.875rem;
}

.profile-card.profile-card-scoring {
  opacity: 0.8;
}

/* Hero image */
.profile-card-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--sb-bg-light);
  overflow: hidden;
}

.profile-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sb-bg-light) 0%, var(--sb-border-light) 100%);
  color: var(--sb-border);
  font-size: 4rem;
}

/* Overlay on image */
.profile-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: white;
}

.profile-card-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.profile-card-name a {
  color: white;
  text-decoration: none;
}

.profile-card-name a:hover {
  text-decoration: underline;
}

.profile-card-meta {
  font-size: 0.8125rem;
  opacity: 0.9;
}

/* Status indicator */
.profile-card-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--sb-border-light);
}

.calls-indicator {
  font-size: 0.8125rem;
  color: var(--sb-text-muted);
}

.calls-indicator i {
  margin-right: 0.25rem;
}

/* Bottom tabs */
.profile-card-tabs {
  display: flex;
  border-bottom: 1px solid var(--sb-border-light);
}

.profile-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.625rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--sb-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--sb-transition);
}

.profile-tab i {
  font-size: 1rem;
}

.profile-tab:hover {
  color: var(--sb-text);
  background: var(--sb-bg-light);
}

.profile-tab.active {
  color: var(--sb-primary);
  background: var(--sb-bg-light);
}

/* Tab content */
.profile-card-content {
  padding: 0.875rem 1rem;
  min-height: 120px;
}

.profile-tab-panel {
  display: none;
}

.profile-tab-panel.active {
  display: block;
}

.profile-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.375rem 0;
  font-size: 0.8125rem;
}

.profile-info-row:not(:last-child) {
  border-bottom: 1px solid var(--sb-border-light);
}

.profile-info-label {
  color: var(--sb-text-muted);
  font-weight: 500;
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.profile-info-value {
  color: var(--sb-text);
  text-align: right;
  word-break: break-word;
}

.profile-info-note {
  font-size: 0.75rem;
  color: var(--sb-text-muted);
  font-style: italic;
}

.profile-info-empty {
  color: var(--sb-text-muted);
  font-size: 0.8125rem;
  font-style: italic;
  text-align: center;
  padding: 1rem 0;
}

.profile-info-action {
  margin-top: 0.75rem;
  text-align: center;
}

/* View toggle button group */
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-sm);
  overflow: hidden;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: var(--sb-text-muted);
  background: white;
  border: none;
  cursor: pointer;
  transition: all var(--sb-transition);
  text-decoration: none;
}

.view-toggle-btn:not(:last-child) {
  border-right: 1px solid var(--sb-border);
}

.view-toggle-btn:hover {
  background: var(--sb-bg-light);
  color: var(--sb-text);
  text-decoration: none;
}

.view-toggle-btn.active {
  background: var(--sb-primary);
  color: white;
}

/* Call notes with ellipsis and expand on hover */
.call-notes-container {
  max-width: 300px;
}

.call-notes {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.call-notes-container:hover .call-notes {
  -webkit-line-clamp: unset;
  max-height: none;
  overflow: visible;
  z-index: 10;
}

/* When expanded, add a subtle background to improve readability */
.call-notes-container:hover .call-notes {
  background-color: #f8f9fa;
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Remove underlines from all links by default */
a {
  text-decoration: none;
}

/* Add underline on hover for better UX */
a:hover {
  text-decoration: underline;
}

/* Navbar styling */
.navbar {
  position: relative;
}

.navbar-brand {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-nav {
  align-items: flex-end;
  margin-bottom: 0;
}

.navbar-nav .nav-link {
  position: relative;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

/* Navbar active state styling */
.navbar-nav .nav-link.active {
  color: #000;
  font-weight: 600;
  border-bottom: 2px solid #000;
}

/* Action Text custom styles */
.trix-content {
  line-height: 1.6;
}

.trix-content img {
  max-width: 100%;
  height: auto;
}

.trix-content .attachment {
  max-width: 100%;
}

.trix-content .attachment--preview {
  max-width: 100%;
}

.trix-content .attachment--preview img {
  max-width: 100%;
  height: auto;
}

/* Fix heading sizes in campaign descriptions */
.campaign-description .trix-content h1,
.trix-content h1 {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.campaign-description .trix-content h2,
.trix-content h2 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.campaign-description .trix-content h3,
.trix-content h3 {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.campaign-description .trix-content h4,
.trix-content h4 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.campaign-description .trix-content h5,
.trix-content h5 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.campaign-description .trix-content h6,
.trix-content h6 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

/* Fundraiser page button styling */
.fundraiser-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.fundraiser-actions .btn {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-width: 1px;
  text-decoration: none;
}

.fundraiser-actions .btn.btn-sm {
  font-size: 0.8125rem;
  padding: 0.25rem 0.625rem;
}

/* Primary action buttons */
.fundraiser-actions .btn-primary {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.fundraiser-actions .btn-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Outline buttons */
.fundraiser-actions .btn-outline-primary {
  color: #3b82f6;
  border-color: #3b82f6;
  background-color: transparent;
}

.fundraiser-actions .btn-outline-primary:hover {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.fundraiser-actions .btn-outline-success {
  color: #10b981;
  border-color: #10b981;
  background-color: transparent;
}

.fundraiser-actions .btn-outline-success:hover {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
}

.fundraiser-actions .btn-outline-danger {
  color: #ef4444;
  border-color: #ef4444;
  background-color: transparent;
}

.fundraiser-actions .btn-outline-danger:hover {
  background-color: #ef4444;
  border-color: #ef4444;
  color: white;
}

.fundraiser-actions .btn-outline-secondary {
  color: #6b7280;
  border-color: #d1d5db;
  background-color: white;
}

.fundraiser-actions .btn-outline-secondary:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
  color: #374151;
}

/* Disabled button */
.fundraiser-actions .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Button icons */
.fundraiser-actions .btn i {
  font-size: 1rem;
}

/* Remove text decoration on hover for buttons */
.fundraiser-actions .btn:hover {
  text-decoration: none;
}

/* Add visual separation between primary and secondary actions */
.fundraiser-actions > :nth-child(5) {
  margin-left: auto;
}

@media (max-width: 768px) {
  .fundraiser-actions {
    gap: 0.5rem;
  }
  
  .fundraiser-actions .btn {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
  }
  
  .fundraiser-actions > :nth-child(5) {
    margin-left: 0;
  }
}

/* Breadcrumb styling */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.breadcrumb-item {
  color: #6b7280;
  position: relative;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #d1d5db;
  padding: 0 0.5rem;
  font-weight: 300;
}

.breadcrumb-item a {
  color: #3b82f6;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.breadcrumb-item a:hover {
  color: #2563eb;
  text-decoration: none;
}

.breadcrumb-item a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3b82f6;
  transition: width 0.2s ease;
}

.breadcrumb-item a:hover::after {
  width: 100%;
}

.breadcrumb-item.active {
  color: #111827;
  font-weight: 600;
}

/* Breadcrumb container spacing adjustment */
nav[aria-label="breadcrumb"] {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Letter spacing for uppercase labels */
.letter-spacing {
  letter-spacing: 0.05em;
}

/* Override Bootstrap cards with neobrutalist style */
.card {
  border: var(--sb-border-width) solid var(--sb-border);
  border-radius: var(--sb-radius);
  box-shadow: none;
}

.card:hover {
  transform: none;
  box-shadow: none;
}

.card-header {
  border-bottom: var(--sb-border-width) solid var(--sb-border);
  border-radius: 0;
  background: var(--sb-bg-light);
}

/* Override Bootstrap form controls */
.form-control,
.form-select {
  border: var(--sb-border-width) solid var(--sb-border);
  border-radius: var(--sb-radius);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--sb-border);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.input-group-text {
  border: var(--sb-border-width) solid var(--sb-border);
  border-radius: var(--sb-radius);
  background: var(--sb-bg-light);
}

/* Override Bootstrap buttons */
.btn {
  border-radius: var(--sb-radius-sm);
  border-width: var(--sb-border-width);
  transition: all var(--sb-transition);
  font-weight: 500;
}

.btn:hover {
  box-shadow: var(--sb-shadow-hover);
  text-decoration: none;
}

.btn:active {
  box-shadow: none;
}

/* Override Bootstrap badges */
.badge {
  border-radius: var(--sb-radius);
}

/* Nav tabs - neobrutalist */
.nav-tabs {
  border-bottom: none;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 0;
  color: var(--sb-text-muted);
  padding: 0.5rem 1rem;
  border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link:hover {
  border-color: transparent;
  border-bottom: 2px solid var(--sb-border-light);
}

.nav-tabs .nav-link.active {
  color: var(--sb-text);
  font-weight: 600;
  border: none;
  border-bottom: 2px solid var(--sb-border);
  background: transparent;
}

/* ==========================================================================
   SmartBrew Design System (sb-* classes)
   Retro 70s/80s Theme - warm, nostalgic, protective
   ========================================================================== */

:root {
  /* Colors - warm, muted 70s palette */
  --sb-primary: #b45309;       /* Warm amber/rust */
  --sb-primary-hover: #92400e;
  --sb-success: #4d7c0f;       /* Olive green */
  --sb-danger: #b91c1c;        /* Muted red */
  --sb-warning: #ca8a04;       /* Mustard yellow */
  --sb-info: #0369a1;          /* Denim blue */

  /* Neutrals - warm undertones */
  --sb-text: #44403c;          /* Warm dark brown */
  --sb-text-muted: #78716c;    /* Warm gray */
  --sb-border: #d6d3d1;        /* Warm light gray */
  --sb-border-light: #e7e5e4;
  --sb-bg-light: #faf9f7;      /* Off-white with warmth */
  --sb-bg-cream: #f5f5f0;      /* Cream background */

  /* Borders & Radius - softer, rounded */
  --sb-border-width: 1px;
  --sb-radius: 6px;
  --sb-radius-sm: 4px;
  --sb-radius-lg: 10px;

  /* Shadows - soft, diffused */
  --sb-shadow: 0 1px 2px rgba(68, 64, 60, 0.08);
  --sb-shadow-hover: 0 2px 4px rgba(68, 64, 60, 0.12);
  --sb-shadow-lg: 0 4px 8px rgba(68, 64, 60, 0.12);

  /* Transitions */
  --sb-transition: 0.2s ease;
}

/* Body background with warm cream */
body {
  background-color: var(--sb-bg-cream) !important;
}

/* Cards */
.sb-card {
  border: var(--sb-border-width) solid var(--sb-border);
  border-radius: var(--sb-radius-lg);
  background: white;
  box-shadow: var(--sb-shadow);
  overflow: hidden;
}

.sb-card-header {
  padding: 1rem 1.25rem;
  border-bottom: var(--sb-border-width) solid var(--sb-border-light);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--sb-text);
  background: var(--sb-bg-light);
}

.sb-card-body {
  padding: 1.25rem;
}

/* Stat Cards */
.sb-stat-card {
  border: var(--sb-border-width) solid var(--sb-border);
  border-radius: var(--sb-radius);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  background: white;
  box-shadow: var(--sb-shadow);
  transition: box-shadow var(--sb-transition);
}

.sb-stat-card:hover {
  box-shadow: var(--sb-shadow-hover);
}

.sb-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 2px;
}

.sb-stat-primary::before { background: var(--sb-primary); }
.sb-stat-success::before { background: var(--sb-success); }
.sb-stat-danger::before { background: var(--sb-danger); }
.sb-stat-warning::before { background: var(--sb-warning); }
.sb-stat-info::before { background: var(--sb-info); }

.sb-stat-label {
  color: var(--sb-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.sb-stat-value {
  font-weight: 700;
  margin: 0;
  font-size: 1.5rem;
  color: var(--sb-text);
}

.sb-stat-subtext {
  color: var(--sb-text-muted);
  font-size: 0.875rem;
}

/* Buttons */
.sb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.875rem;
  border: var(--sb-border-width) solid var(--sb-border);
  border-radius: var(--sb-radius-sm);
  cursor: pointer;
  transition: all var(--sb-transition);
  text-decoration: none;
  background: white;
  color: var(--sb-text);
  box-shadow: var(--sb-shadow);
}

.sb-btn:hover {
  box-shadow: var(--sb-shadow-hover);
  text-decoration: none;
  border-color: #d1d5db;
}

.sb-btn:active {
  box-shadow: none;
  background: var(--sb-bg-light);
}

.sb-btn-primary {
  background: var(--sb-primary);
  color: white;
  border-color: var(--sb-primary);
  box-shadow: 0 1px 2px 0 rgba(180, 83, 9, 0.2);
}

.sb-btn-primary:hover {
  background: var(--sb-primary-hover);
  border-color: var(--sb-primary-hover);
  color: white;
  box-shadow: 0 2px 4px rgba(180, 83, 9, 0.25);
}

.sb-btn-outline {
  background: white;
  color: var(--sb-text);
}

.sb-btn-outline:hover {
  background: var(--sb-bg-light);
  color: var(--sb-text);
}

.sb-btn-danger {
  background: var(--sb-danger);
  color: white;
  border-color: var(--sb-danger);
}

.sb-btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.sb-btn-sm {
  padding: 0.25rem 0.625rem;
  font-size: 0.8125rem;
}

/* Forms */
.sb-form-group {
  margin-bottom: 1rem;
}

.sb-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.sb-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: var(--sb-border-width) solid var(--sb-border);
  border-radius: var(--sb-radius);
  font-size: 0.875rem;
  transition: box-shadow var(--sb-transition);
}

.sb-input:focus {
  outline: none;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.sb-input-group {
  display: flex;
}

.sb-input-addon {
  padding: 0.5rem 0.75rem;
  background: var(--sb-bg-light);
  border: var(--sb-border-width) solid var(--sb-border);
  border-right: none;
  border-radius: var(--sb-radius);
  font-size: 0.875rem;
  white-space: nowrap;
}

.sb-input-group .sb-input {
  flex: 1;
}

.sb-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

/* Badges */
.sb-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--sb-radius);
  background: var(--sb-bg-light);
  color: var(--sb-text);
}

.sb-badge-primary { background: var(--sb-primary); color: white; }
.sb-badge-success { background: var(--sb-success); color: white; }
.sb-badge-danger { background: var(--sb-danger); color: white; }
.sb-badge-warning { background: var(--sb-warning); color: #212529; }
.sb-badge-info { background: var(--sb-info); color: white; }

/* Tables - Custom sb-table */
.sb-table {
  border: var(--sb-border-width) solid var(--sb-border);
  border-radius: var(--sb-radius-lg);
  background: white;
  overflow: hidden;
  box-shadow: var(--sb-shadow);
}

.sb-table-header {
  display: flex;
  padding: 0.875rem 1.25rem;
  background: var(--sb-bg-light);
  border-bottom: var(--sb-border-width) solid var(--sb-border);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sb-text-muted);
}

.sb-table-row {
  display: flex;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--sb-border-light);
  align-items: center;
  transition: background var(--sb-transition);
}

.sb-table-row:last-child {
  border-bottom: none;
}

.sb-table-row:hover {
  background: var(--sb-bg-light);
}

.sb-table-cell {
  flex: 1;
}

/* Tables - Bootstrap table overrides */
.table {
  --bs-table-bg: white;
  --bs-table-hover-bg: var(--sb-bg-light);
  border-color: var(--sb-border);
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  padding: 0.875rem 1rem;
  border-bottom-color: var(--sb-border-light);
}

.table > thead {
  background: var(--sb-bg-light);
  border-bottom: var(--sb-border-width) solid var(--sb-border);
}

.table > thead th {
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sb-text-muted);
  border-bottom: none;
  padding: 0.875rem 1rem;
  white-space: nowrap;
}

.table > tbody > tr {
  transition: background var(--sb-transition);
}

.table > tbody > tr:last-child > * {
  border-bottom: none;
}

.table-hover > tbody > tr:hover > * {
  background-color: var(--sb-bg-light);
}

/* Table wrapper with rounded corners and shadow */
.table-wrapper {
  border: var(--sb-border-width) solid var(--sb-border);
  border-radius: var(--sb-radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: var(--sb-shadow);
}

.table-wrapper .table {
  margin-bottom: 0;
}

.table-wrapper .table > :not(caption) > * > *:first-child {
  padding-left: 1.25rem;
}

.table-wrapper .table > :not(caption) > * > *:last-child {
  padding-right: 1.25rem;
}

/* Striped tables - subtle warm stripes */
.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: var(--sb-bg-cream);
}

/* Page Header */
.sb-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.sb-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.sb-page-subtitle {
  color: var(--sb-text-muted);
  margin-top: 0.25rem;
}

.sb-page-actions {
  display: flex;
  gap: 0.5rem;
}

/* Pagination - clean modern style */
.pagination {
  gap: 0.25rem;
}

.pagination .page-link {
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-sm);
  color: var(--sb-text);
  padding: 0.375rem 0.75rem;
  transition: all var(--sb-transition);
  font-weight: 500;
  font-size: 0.875rem;
}

.pagination .page-link:hover {
  background: var(--sb-bg-light);
  border-color: #d1d5db;
  text-decoration: none;
}

.pagination .page-item.active .page-link {
  background: var(--sb-primary);
  border-color: var(--sb-primary);
  color: white;
  font-weight: 600;
}

.pagination .page-item.disabled .page-link {
  background: var(--sb-bg-light);
  color: var(--sb-text-muted);
  border-color: var(--sb-border-light);
}

/* ==========================================================================
   Lead Show Page - Enhanced Components
   ========================================================================== */

/* Small Icon Box */
.sb-icon-box-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Small Tags */
.sb-tag-sm {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  background: white;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-sm);
  color: var(--sb-text);
}

/* Instagram Compact Card */
.sb-instagram-compact {
  background: var(--sb-bg-light);
  border: 1px solid var(--sb-border-light);
  border-radius: var(--sb-radius);
  padding: 0.75rem 1rem;
  min-width: 280px;
}

.sb-instagram-header-sm {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sb-text-muted);
  margin-bottom: 0.5rem;
}

.sb-instagram-header-sm i { color: #e1306c; }

.sb-score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: white;
  flex-shrink: 0;
}

.sb-score-num { font-size: 1.25rem; font-weight: 700; line-height: 1; }
.sb-score-grd { font-size: 0.625rem; font-weight: 600; opacity: 0.9; margin-top: 1px; }

.sb-stats-compact { display: flex; flex-direction: column; gap: 0.375rem; }
.sb-stat-row { display: flex; gap: 0.75rem; }

.sb-stat-cell {
  text-align: center;
  padding: 0.375rem 0.5rem;
  background: white;
  border: 1px solid var(--sb-border-light);
  border-radius: var(--sb-radius-sm);
  min-width: 70px;
}

.sb-stat-val { font-size: 0.9375rem; font-weight: 700; color: var(--sb-text); line-height: 1.2; }
.sb-stat-lbl { font-size: 0.5625rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sb-text-muted); margin-top: 1px; }

/* Legacy - kept for other pages */
.sb-instagram-stats {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-lg);
  padding: 1.25rem;
  min-width: 240px;
  box-shadow: var(--sb-shadow);
}

.sb-instagram-header {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sb-text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sb-border-light);
}

.sb-instagram-header i { color: #e1306c; }

.sb-score-display { display: flex; justify-content: center; }

.sb-score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  color: white;
  font-weight: 700;
}

.sb-score-number { font-size: 1.5rem; line-height: 1; }
.sb-score-grade { font-size: 0.875rem; opacity: 0.9; }

.sb-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.sb-stat-item {
  text-align: center;
  padding: 0.5rem;
  background: white;
  border-radius: var(--sb-radius-sm);
  border: 1px solid var(--sb-border-light);
}

.sb-stat-value-sm { font-size: 1rem; font-weight: 700; color: var(--sb-text); line-height: 1.2; }
.sb-stat-label-sm { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sb-text-muted); margin-top: 0.125rem; }

.sb-posts-week {
  text-align: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--sb-border-light);
  font-size: 0.75rem;
  color: var(--sb-text-muted);
}

/* Badges */
.sb-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 1rem;
  line-height: 1.2;
}

.sb-badge-success { background: #dcfce7; color: #166534; }
.sb-badge-primary { background: #dbeafe; color: #1e40af; }
.sb-badge-warning { background: #fef3c7; color: #92400e; }
.sb-badge-danger { background: #fee2e2; color: #991b1b; }
.sb-badge-muted { background: var(--sb-bg-light); color: var(--sb-text-muted); }

/* Tags */
.sb-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  background: white;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-sm);
  color: var(--sb-text);
  text-decoration: none;
  transition: all var(--sb-transition);
}

.sb-tag:hover {
  background: var(--sb-bg-light);
  border-color: #d1d5db;
  text-decoration: none;
  color: var(--sb-text);
}

/* Icon Box */
.sb-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--sb-radius-sm);
}

/* Tabs */
.sb-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
  border-bottom: 1px solid var(--sb-border-light);
}

.sb-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sb-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all var(--sb-transition);
}

.sb-tab:hover { color: var(--sb-text); }
.sb-tab.active { color: var(--sb-primary); border-bottom-color: var(--sb-primary); }

/* Social List */
.sb-social-list { display: flex; flex-direction: column; gap: 0.5rem; }

/* Insight Card */
.sb-insight-card {
  background: white;
  border: 1px solid var(--sb-border-light);
  border-radius: var(--sb-radius);
  padding: 1.25rem;
}

/* Mini Stats */
.sb-mini-stat {
  text-align: center;
  padding: 0.75rem;
  background: var(--sb-bg-light);
  border-radius: var(--sb-radius-sm);
}

.sb-mini-stat-value { font-size: 1rem; font-weight: 700; color: var(--sb-text); }
.sb-mini-stat-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--sb-text-muted); margin-top: 0.125rem; }

/* Recommendation & Insights */
.sb-recommendation {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--sb-radius);
  padding: 1rem;
}

.sb-recommendation-header {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #166534;
  margin-bottom: 0.5rem;
}

.sb-recommendation p { font-size: 0.875rem; color: var(--sb-text); line-height: 1.5; }

.sb-insights { background: var(--sb-bg-light); border-radius: var(--sb-radius); padding: 1rem; }

.sb-insights-header {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--sb-text-muted);
  margin-bottom: 0.5rem;
}

.sb-insights-list { margin: 0; padding-left: 1.25rem; font-size: 0.875rem; color: var(--sb-text); line-height: 1.6; }
.sb-insights-list li { margin-bottom: 0.25rem; }

/* Causes Analysis */
.sb-causes { background: #fef3f2; border-radius: var(--sb-radius); padding: 1rem; border: 1px solid #fecaca; }
.sb-causes-empty { background: var(--sb-bg-light); border: 1px solid var(--sb-border-light); }
.sb-causes-analyzing { background: var(--sb-bg-light); border: 1px solid var(--sb-border-light); }

.sb-causes-header {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #be123c;
  margin-bottom: 0.75rem;
}

.sb-causes-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.sb-tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--sb-radius-sm);
  background: var(--sb-bg-light);
  color: var(--sb-text);
  border: 1px solid var(--sb-border);
}

.sb-tag-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.sb-tag-primary { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.sb-tag-muted { background: var(--sb-bg-light); color: var(--sb-text-muted); border-color: var(--sb-border); }

.sb-causes-thesis { font-size: 0.875rem; color: var(--sb-text); line-height: 1.5; }

/* Table */
.sb-table { width: 100%; border-collapse: collapse; }

.sb-table thead th {
  padding: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--sb-text-muted);
  border-bottom: 1px solid var(--sb-border);
  background: var(--sb-bg-light);
}

.sb-table tbody td {
  padding: 0.875rem 0.75rem;
  font-size: 0.875rem;
  color: var(--sb-text);
  border-bottom: 1px solid var(--sb-border-light);
  vertical-align: middle;
}

.sb-table tbody tr:hover { background: var(--sb-bg-light); }
.sb-table tbody tr:last-child td { border-bottom: none; }

/* Progress Bar */
.sb-progress { height: 4px; background: var(--sb-border-light); border-radius: 2px; overflow: hidden; }
.sb-progress-bar { height: 100%; background: var(--sb-primary); border-radius: 2px; transition: width 0.3s ease; }
.sb-progress-success { background: var(--sb-success); }

/* Links */
.sb-link { color: var(--sb-primary); text-decoration: none; font-weight: 500; transition: color var(--sb-transition); }
.sb-link:hover { color: var(--sb-primary-hover); text-decoration: underline; }

/* Call List */
.sb-call-list { display: flex; flex-direction: column; }

.sb-call-item { padding: 1rem 1.25rem; border-bottom: 1px solid var(--sb-border-light); }
.sb-call-item:last-child { border-bottom: none; }

.sb-call-date { font-size: 0.75rem; color: var(--sb-text-muted); margin-bottom: 0.25rem; }
.sb-call-result { font-size: 0.875rem; font-weight: 500; color: var(--sb-text); }
.sb-call-notes { font-size: 0.8125rem; color: var(--sb-text-muted); margin-top: 0.375rem; line-height: 1.4; }

.sb-follow-up-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  background: #dbeafe;
  color: #1e40af;
  border-radius: var(--sb-radius-sm);
}

/* Card Footer */
.sb-card-footer { padding: 0.75rem 1.25rem; border-top: 1px solid var(--sb-border-light); background: var(--sb-bg-light); }

/* Highlighted Card */
.sb-card-highlight { border-color: var(--sb-primary); box-shadow: 0 0 0 1px var(--sb-primary), var(--sb-shadow); }
.sb-card-highlight .sb-card-header { background: #fffbeb; border-bottom-color: #fde68a; }

/* Form Controls */
.sb-form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--sb-text); margin-bottom: 0.375rem; }

.sb-form-control {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--sb-text);
  background: white;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-sm);
  transition: border-color var(--sb-transition), box-shadow var(--sb-transition);
}

.sb-form-control:focus { outline: none; border-color: var(--sb-primary); box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.1); }
.sb-form-control::placeholder { color: #a8a29e; }

/* Button Sizes & Variants */
.sb-btn-sm { padding: 0.375rem 0.625rem; font-size: 0.75rem; }
.sb-btn-outline { background: white; color: var(--sb-text); border-color: var(--sb-border); }
.sb-btn-outline:hover { background: var(--sb-bg-light); border-color: #d1d5db; }
.sb-btn-outline-danger { background: white; color: var(--sb-danger); border-color: var(--sb-border); }
.sb-btn-outline-danger:hover { background: #fef2f2; border-color: #fecaca; }

/* View Transitions - Profile Image Animation */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.4s;
  animation-timing-function: ease-in-out;
}

/* Profile image specific transition - slower with easing */
::view-transition-old(profile-*),
::view-transition-new(profile-*) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fallback for browsers that support view-transition-name but not wildcards */
[style*="view-transition-name: profile-"] {
  contain: layout;
}
