@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 for div-based layout */
.lead-row {
  transition: all 0.2s ease;
  cursor: pointer;
  
  &:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
}

.lead-row .profile-section img {
  transition: transform 0.2s ease;
}

.lead-row:hover .profile-section img {
  transform: scale(1.05);
}

/* Lead header styling */
.lead-header {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
} 

/* 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;
}

/* Dashboard card hover effects */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

