/* Base Variables */
:root {
  --primary: #4361ee;
  --primary-light: #eff6ff;
  --primary-dark: #3730a3;
  --surface: #ffffff;
  --surface-hover: #f5f5f5;
  --surface-accent: #f8fafc;
  --surface-tooltip: #1f2937;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tooltip: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 5rem;
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 72px;
  --topbar-height: 64px;
  --transition: 0.2s ease;
  --page-bg: #ffffff;
  --primary-hover: #3c76e0;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
}

/* Dark theme */
.dark {
  --surface: #1f2937;
  --surface-hover: #374151;
  --surface-accent: #111827;
  --surface-tooltip: #f3f4f6;
  --border: #374151;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-tooltip: #111827;
  --primary: #4361ee;
  --primary-light: rgba(37, 99, 235, 0.1);
  --primary-hover: #5f7ef0;
  --page-bg: #121212;
  --primary-dark: #3730a3;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

/* Mobile header styles are now handled in portal-sidebar.js */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--surface-accent);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

/* Layout */
.dashboard {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-accent);
}

/* for desktop only make dashboard margin-top 3rem, only applies to advocate-home.html */
@media (min-width: 1024px) {
  body.advocate-home .dashboard {
    margin-top: 3rem;
  }
}

/* Layout adjustments for portal sidebar */

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: 0 !important;
  padding: 2rem;
  min-height: 100vh;
  background: var(--surface-accent);
  transition: margin-left var(--transition);
  flex: 1;
}

@media (max-width: 768px) {
  .main-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.portal-sidebar.collapsed + .main-content {
  margin-left: var(--sidebar-collapsed-width);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.card-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

.card-link > svg {
  width: 16px;
  height: 16px;
}

.card-content {
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Stats Section */
.stats-section {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* Time Period Filters */
.time-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.time-filter {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.time-filter:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--primary);
}

.time-filter.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Carousel Styles for stats grid */
.stats-carousel-container {
  position: relative;
  width: 100%;
}

.stats-carousel-dots {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition);
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* Modern Stat Card */
.stat-card.modern {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-primary);
  min-width: 0; /* Allows cards to shrink below content size */
  position: relative; /* For locked overlay positioning */
  overflow: hidden; /* Keep overlay within bounds */
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-icon-wrapper {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
}

.stat-main-icon {
  width: 12px;
  height: 12px;
  color: var(--primary);
}

.stat-trend {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: var(--surface-accent);
}

.stat-trend.positive {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.stat-trend.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.stat-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-chart {
  margin-top: auto;
}

.trend-line {
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Locked State Styles 
---------------------------------------------------- */
.stat-locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(var(--surface-rgb), 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.stat-locked-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.stat-locked-content .locked-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--text-secondary);
}

.stat-locked-content span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: auto 1.5rem;
}

.stat-locked-content .upgrade-link {
  background: var(--primary);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.stat-locked-content .upgrade-link:hover {
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
  background: var(--primary-dark);
}

/* Dark theme adjustments */
.dark .stat-locked-overlay {
  background: rgba(var(--surface-dark-rgb), 0.95);
}


/* Card-specific colors 
---------------------------------------------------- */
.contacts-card .trend-line {
  stroke: #6366f1;
}

.leads-card .trend-line {
  stroke: #22c55e;
}

.clients-card .trend-line {
  stroke: #f97316;
}

.impressions-card .trend-line {
  stroke: #3b82f6;
}

/* Dark theme adjustments */
.dark .stat-card.modern {
  background: var(--surface);
}

.dark .stat-icon-wrapper {
  background: rgba(255, 255, 255, 0.1);
}

.dark .stat-main-icon {
  color: rgba(255, 255, 255, 0.9);
}

/* Mobile adjustments */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .time-filters {
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .time-filters::-webkit-scrollbar {
    display: none;
  }

  .time-filter {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .stats-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.5rem 0;
    margin: 0 -1rem;
    padding: 0 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

  .stats-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
  }

  .stat-card.modern {
    flex: 0 0 calc(100% - 2rem);
    scroll-snap-align: center;
  }

  .stats-carousel-dots {
    display: flex;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-icon-wrapper {
    width: 20px;
    height: 20px;
  }

  .stat-main-icon {
    width: 10px;
    height: 10px;
  }
}

/* Dark theme adjustments */
.dark .stat-trend.positive {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.dark .stat-trend.negative {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}

/* Light theme overrides */
:root:not(.dark) .stat-card.modern {
  background: white;
  border-color: var(--border);
}

:root:not(.dark) .stat-icon-wrapper {
  background: var(--primary-light);
}

:root:not(.dark) .stat-main-icon {
  color: var(--primary);
}

:root:not(.dark) .stat-title {
  color: var(--text-secondary);
}

:root:not(.dark) .stat-value {
  color: var(--text-primary);
}

:root:not(.dark) .stat-trend.positive {
  color: #059669;
  background: #ecfdf5;
}

:root:not(.dark) .stat-trend.negative {
  color: #dc2626;
  background: #fef2f2;
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .main-content {
    padding: 2.5rem;
  }

  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-card {
    padding: 2rem;
  }

  .stat-value {
    font-size: 2.75rem;
  }

  .stat-icon-wrapper {
    width: 28px;
    height: 28px;
  }

  .stat-main-icon {
    width: 14px;
    height: 14px;
  }

  .wide-card {
    grid-column: span 2;
  }
}

/* Mobile Refinements */
@media (max-width: 1023px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .stat-card {
    padding: 1.25rem;
  }

  .stat-content {
    gap: 0.75rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .stat-title {
    font-size: 0.875rem;
  }

  .stat-icon-wrapper {
    width: 28px;
    height: 28px;
  }

  .stat-main-icon {
    width: 14px;
    height: 14px;
  }
}

/* Mobile adjustments for even smaller screens */
@media (max-width: 768px) {
  .stat-icon-wrapper {
    width: 20px;
    height: 20px;
  }

  .stat-main-icon {
    width: 10px;
    height: 10px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* List Items */
.list-item {
  background: var(--surface-hover);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.list-item:last-child {
  margin-bottom: 0;
}

.list-item:hover {
  background: var(--border);
}

.list-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  min-width: 0; /* Allow flex items to shrink below their content size */
  gap: 0.5rem; /* Add gap between title and date */
}

.list-item__header h3 {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  flex: 1;
  margin-right: 0.5rem;
}

.list-item__header .date,
.list-item__header .time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-shrink: 0; /* Prevent date/time from shrinking */
  white-space: nowrap; /* Keep date/time on one line */
}

.list-item p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.list-item__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  justify-content: flex-end;
}

/* Status Badge Styles (copied from social-media-calendar.css) */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  cursor: default;
}

.status-badge.draft {
  background-color: #f3f4f6;
  color: #374151;
}

.status-badge.scheduled {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-badge.published {
  background-color: #d1fae5;
  color: #065f46;
}

.status-badge.review {
  background-color: #fef3c7;
  color: #92400e;
}

.status-badge.verified {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-badge.lead {
  background-color: #ecfdf5;
  color: #065f46;
}

.status-badge-interactive {
  cursor: pointer;
  transition: all var(--transition);
}

.status-badge-interactive:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* Dark theme adjustments for status badges */
.dark .status-badge.draft {
  background-color: #374151;
  color: #d1d5db;
}

.dark .status-badge.scheduled {
  background-color: #1e3a8a;
  color: #93c5fd;
}

.dark .status-badge.published {
  background-color: #064e3b;
  color: #6ee7b7;
}

.dark .status-badge.review {
  background-color: #451a03;
  color: #fbbf24;
}

.dark .status-badge.verified {
  background-color: #1e3a8a;
  color: #93c5fd;
}

.dark .status-badge.lead {
  background-color: #064e3b;
  color: #6ee7b7;
}

/* Review Stars */
.review-stars-inline {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 0.5rem;
}

.review-star {
  width: 14px;
  height: 14px;
  color: #d1d5db;
  fill: currentColor;
}

.review-star.filled {
  color: #fbbf24;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition);
}

@media (min-width: 768px) {
  .btn-primary {
    padding: 0.625rem 1.25rem;
  }

  .list-item {
    padding: 1.25rem;
  }

  .list-item p {
    font-size: 0.875rem;
  }

  .list-item__actions {
    margin-top: 1rem;
  }
}

/* Empty States - HubSpot Style */
.empty-state {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--text-secondary);
  background: transparent;
  border-radius: 8px;
  border: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 120px;
}

.empty-state i {
  width: 32px;
  height: 32px;
  margin-bottom: 0.75rem;
  opacity: 0.4;
  color: var(--text-secondary);
}

.empty-state p {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  font-weight: 500;
}

.empty-state .empty-state-subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
  opacity: 0.8;
}

/* Loading States */
.loading {
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.loading::before {
  content: '';
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Desktop Refinements */
@media (min-width: 1024px) {
  .list-item {
    padding: 1.5rem;
  }

  .list-item__header h3 {
    font-size: 1rem;
  }

  .list-item p {
    font-size: 0.9375rem;
  }
}

/* Quick Links Section */
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.quick-links-container {
  display: flex;
  flex-direction: column;
  gap: 0rem; /* Changed from 0.5rem to 0rem */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.quick-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.quick-link-card:last-child {
  border-bottom: none;
}

.quick-link-card:hover {
  background: var(--surface-hover);
  transform: none;
  box-shadow: none;
}

.quick-link-card:hover .stat-arrow {
  opacity: 1;
}

.quick-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-link-icon > svg {
  width: 18px;
  height: 18px;
}

.quick-link-content {
  flex: 1;
  min-width: 0;
}

.quick-link-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.quick-link-card .stat-arrow {
  color: var(--text-secondary);
  transition: all var(--transition);
  opacity: 0.6;
  margin-left: auto;
}

.quick-link-card .stat-arrow > svg {
  width: 20px;
  height: 20px;
}

.quick-link-description {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* Quick Link Card Colors */
.customize-link .quick-link-icon { 
  background: #4361ee;
  color: rgba(255, 255, 255, 0.9);
}

.leads-link .quick-link-icon { 
  background: #2a9d8f;
  color: rgba(255, 255, 255, 0.9);
}

.clients-link .quick-link-icon { 
  background: #e76f51;
  color: rgba(255, 255, 255, 0.9);
}

.subscription-link .quick-link-icon {
  background: #d97706;
  color: rgba(255, 255, 255, 0.9);
}

/* Customization Link Colors */
.appearance-link .quick-link-icon {
  background: #8b5cf6;
  color: rgba(255, 255, 255, 0.9);
}

.contact-form-link .quick-link-icon {
  background: #10b981;
  color: rgba(255, 255, 255, 0.9);
}

.faq-link .quick-link-icon {
  background: #f59e0b;
  color: rgba(255, 255, 255, 0.9);
}

.testimonials-link .quick-link-icon {
  background: #ec4899;
  color: rgba(255, 255, 255, 0.9);
}

.social-link .quick-link-icon {
  background: #3b82f6;
  color: rgba(255, 255, 255, 0.9);
}

.reviews-link .quick-link-icon {
  background: #f97316;
  color: rgba(255, 255, 255, 0.9);
}

/* Dark Mode Adjustments */
.dark .quick-link-card {
  border-color: var(--border);
}

.dark .quick-link-card:hover {
  background: var(--surface-hover);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .quick-links-section {
    margin-top: 1.5rem;
  }

  .quick-link-card {
    padding: 0.75rem 1rem;
  }

  .quick-link-icon {
    width: 32px;
    height: 32px;
  }

  .quick-link-icon > svg {
    width: 16px;
    height: 16px;
  }
}

/* Activity Item Styles */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.activity-item.lead-activity {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.activity-item:hover {
  background: var(--surface-hover);
  padding: 1rem;
  border-radius: 8px;
}

.activity-item.lead-activity:hover {
  background: var(--surface-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activity-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.875rem;
  color: white;
  text-transform: uppercase;
}

.activity-avatar.lead {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.activity-avatar.signup {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.activity-avatar.application {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

.activity-avatar.newsletter {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.activity-avatar.review {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.activity-item.review-activity {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.activity-item.review-activity:hover {
  background: var(--surface-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.review-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #f59e0b;
  font-size: 0.75rem;
  font-weight: 600;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.25rem;
  gap: 0.5rem;
}

.activity-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  white-space: nowrap;
}

.activity-description {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.activity-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  background: none;
  position: relative;
}

.activity-btn:hover {
  transform: translateY(-1px);
}

.activity-btn.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.activity-btn.primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.activity-btn.secondary {
  background: var(--surface);
  color: var(--text-secondary);
  border-color: var(--border);
}

.activity-btn.secondary:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--primary);
}

.activity-btn.email {
  color: #059669;
  border-color: rgba(5, 150, 105, 0.2);
  background: rgba(5, 150, 105, 0.05);
}

.activity-btn.email:hover {
  background: rgba(5, 150, 105, 0.1);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.activity-btn.phone {
  color: #0891b2;
  border-color: rgba(8, 145, 178, 0.2);
  background: rgba(8, 145, 178, 0.05);
}

.activity-btn.phone:hover {
  background: rgba(8, 145, 178, 0.1);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.2);
}

.activity-btn.locked {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
  padding-right: 2rem;
}

.activity-btn.locked:hover {
  transform: none;
  box-shadow: none;
}

.activity-btn.locked::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.activity-btn > svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Dark theme adjustments */
.dark .activity-btn.secondary {
  background: var(--surface-hover);
}

.dark .activity-btn.email {
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.2);
  background: rgba(110, 231, 183, 0.05);
}

.dark .activity-btn.email:hover {
  background: rgba(110, 231, 183, 0.1);
}

.dark .activity-btn.phone {
  color: #67e8f9;
  border-color: rgba(103, 232, 249, 0.2);
  background: rgba(103, 232, 249, 0.05);
}

.dark .activity-btn.phone:hover {
  background: rgba(103, 232, 249, 0.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .activity-item {
    gap: 0.75rem;
  }

  .activity-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.8125rem;
  }

  .activity-title {
    font-size: 0.875rem;
  }

  .activity-actions {
    gap: 0.375rem;
  }

  .activity-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
  }

  .activity-btn > svg {
    width: 10px;
    height: 10px;
  }
}

/* Dashboard Bottom Layout - For Quick Links and Updates
-------------------------------------------------------------- */
.dashboard-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* Updates Section 
-------------------------------------------------------------- */
.updates-section {
  max-width: none;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.updates-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.update-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.875rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.update-item:hover {
  background: var(--surface-hover);
}

.update-item:last-child {
  border-bottom: none;
}

.update-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #4361ee;
  color: rgba(255, 255, 255, 0.9);
}

.update-icon > svg {
  width: 18px;
  height: 18px;
}

.update-content {
  flex: 1;
  min-width: 0;
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.update-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.update-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.125rem;
}

.update-description {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.update-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--primary);
  text-decoration: none;
}

.update-link:hover {
  text-decoration: underline;
}

.update-link > svg {
  width: 14px;
  height: 14px;
}

/* Dark mode adjustments */
.dark .update-icon {
  background: rgba(67, 97, 238, 0.2);
}

/* Dark mode adjustments - no need to change icon colors since they're already light */
.dark .quick-link-icon,
.dark .update-icon {
  color: rgba(255, 255, 255, 0.95);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .dashboard-bottom {
    grid-template-columns: 1fr;
  }
  
  .updates-section {
    margin-top: 1.5rem;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .update-item {
    padding: 0.75rem 1rem;
  }

  .update-icon {
    width: 32px;
    height: 32px;
  }

  .update-icon > svg {
    width: 16px;
    height: 16px;
  }
}

/* Promo Card */
.promo-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.promo-image {
  width: 100%;
  height: auto;
  display: block;
}

.promo-content {
  padding: 1.5rem;
}

.promo-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.promo-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.promo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 1.25rem;
  background: var(--text-primary);
  color: var(--surface);
  text-decoration: none;
  font-weight: 600;
  border-radius: 9999px;
  font-size: 1rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  min-width: 140px;
  line-height: 1.5;
}

.promo-button:hover {
  opacity: 0.9;
}


/* Dark mode adjustments */
.dark .promo-button {
  background: white;
  color: #111827;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .promo-title {
    font-size: 1.5rem;
  }

  .promo-subtitle {
    font-size: 1rem;
  }
}

/* Upgrade FAB */
.upgrade-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
  transition: all var(--transition);
  z-index: 1000;
}

.upgrade-fab:hover {
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.35);
  background: var(--primary-dark);
}

.upgrade-fab > svg {
  width: 16px;
  height: 16px;
}



/* Mobile adjustments */
@media (max-width: 768px) {
  .upgrade-fab {
    bottom: 16px;
    right: 16px;
    padding: 0.625rem 1rem;
  }
  
  .upgrade-fab > svg {
    margin: 0;
  }
}

/* LinkedIn-style Upgrade Card */
.upgrade-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.upgrade-card-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.upgrade-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: white;
}

.upgrade-card-description {
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.9;
  line-height: 1.4;
}

.upgrade-card-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: white;
  color: var(--primary);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  margin-top: 0.75rem;
  transition: all var(--transition);
}

.upgrade-card-button:hover {
  background: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .upgrade-card {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .upgrade-card-avatar {
    width: 56px;
    height: 56px;
  }

  .upgrade-card-avatar i {
    width: 28px;
    height: 28px;
  }

  .upgrade-card-title {
    font-size: 1.125rem;
  }

  .upgrade-card-description {
    font-size: 1rem;
  }

  .upgrade-card-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
  }
}

