/* Modernized Blue and White Theme for Streaml application
 * This theme follows the sleek design of LeadLoft and modern web applications.
 */

/* Variables - Kawara-inspired Clean Theme */
:root {
  --streaml-bg: #fcfcfc;
  --streaml-sidebar: #ffffff;
  --streaml-text: #2d2d2d;
  --streaml-input-bg: #ffffff;
  --streaml-secondary-text: #8b8b8b;
  --streaml-primary: #0081ff;
  --streaml-secondary: #0066cc;
  --streaml-primary-hover: #0066cc;
  --streaml-border: #f0f0f0;
  --streaml-card-bg: #ffffff;
  --streaml-input-border: #e8e8e8;
  --streaml-sidebar-width: 247px;
  --streaml-header-height: 60px;
  --streaml-success: #6b7280;
  --streaml-info: #6b7280;
  --streaml-warning: #6b7280;
  --streaml-danger: #6b7280;
  --streaml-gray-bg: #fbfbfb;
  --streaml-sidebar-active: rgba(74, 74, 74, 0.05);
  --bs-body-color: #2d2d2d;

  /* Replace ChatGPT variables with StreamL for backward compatibility */
  --chatgpt-bg: var(--streaml-bg);
  --chatgpt-sidebar: var(--streaml-sidebar);
  --chatgpt-text: var(--streaml-text);
  --chatgpt-input-bg: var(--streaml-input-bg);
  --chatgpt-secondary-text: var(--streaml-secondary-text);
  --chatgpt-primary: var(--streaml-primary);
  --chatgpt-primary-hover: var(--streaml-primary-hover);
  --chatgpt-border: var(--streaml-border);
  --chatgpt-card-bg: var(--streaml-card-bg);
  --chatgpt-input-border: var(--streaml-input-border);
}

/* Import Inter font for modern typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Global rule to hide all loading spinners */
.spinner-border,
.fa-spin,
.spinner-border-sm {
  display: none !important;
}

/* Hide loading animations but keep normal icons */
.fas.fa-spinner,
.fab.fa-spinner {
  display: none !important;
}

/* Global Header Styles */
.global-header {
  position: fixed;
  top: 10px;
  left: 0;
  right: 20px;
  height: 60px;
  z-index: 1050;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-btn {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  color: #495057;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.header-btn:hover {
  background: #e9ecef;
  color: #495057;
  text-decoration: none;
  transform: translateY(-1px);
}

.header-btn.active {
  background: var(--streaml-primary);
  color: white;
  border-color: var(--streaml-primary);
}

.header-btn.upgrade-btn {
  background: linear-gradient(135deg, var(--streaml-primary), var(--streaml-secondary));
  color: white;
  border-color: var(--streaml-primary);
  box-shadow: 0 2px 8px rgba(0, 129, 255, 0.2);
}

.header-btn.upgrade-btn:hover {
  background: linear-gradient(135deg, var(--streaml-secondary), var(--streaml-primary));
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 129, 255, 0.3);
}

/* Round icon buttons in header */
.header-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0;
  border: none;
  background: transparent;
}

.header-btn-icon img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.header-btn-icon:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

/* Adjust layout for global header */
.app-container {
  /* padding-top: 60px; */
}

/* Hide loading overlays that cause white screen issues */
.loading-overlay,
#loadingOverlay {
  display: none !important;
  visibility: hidden !important;
}

/* Reddit orange color utility */
.text-orange {
  color: #ff4500 !important;
}

/* Social Media Icons Styling */
.social-link {
  text-decoration: none !important;
  transition: all 0.2s ease;
  font-size: 1.1rem;
  padding: 2px;
  border-radius: 3px;
  display: inline-block;
}

.social-link:hover {
  transform: scale(1.15);
  text-decoration: none !important;
  opacity: 0.8;
}

.social-link i {
  width: 16px;
  height: 16px;
  text-align: center;
}

/* Social Media Platform Colors (when hovering) */
.social-link:hover.fab.fa-twitter,
.social-link:hover i.fab.fa-twitter {
  color: #1da1f2 !important;
}

.social-link:hover.fab.fa-instagram,
.social-link:hover i.fab.fa-instagram {
  color: #e4405f !important;
}

.social-link:hover.fab.fa-facebook,
.social-link:hover i.fab.fa-facebook {
  color: #1877f2 !important;
}

.social-link:hover.fab.fa-linkedin,
.social-link:hover i.fab.fa-linkedin {
  color: #0077b5 !important;
}

.social-link:hover.fab.fa-youtube,
.social-link:hover i.fab.fa-youtube {
  color: #ff0000 !important;
}

/* Email and Phone Contact Info Styling */
#email-contact-info,
#phone-contact-info {
  padding: 0.25rem 0;
}

#email-contact-info .text-info,
#phone-contact-info .text-info {
  background-color: rgba(13, 202, 240, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border-left: 3px solid #0dcaf0;
}

/* Contact table styling for better social media display */
#contacts-table .social-link {
  margin-right: 0.3rem;
  font-size: 1rem;
}

/* Contact row hover effects */
#contacts-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Multiple email/phone display styling */
.multiple-contact-display {
  max-width: 200px;
}

.multiple-contact-display .text-muted {
  font-size: 0.8rem;
  font-style: italic;
}

/* Set default background and text color */
body {
  background-color: #fcfcfc;
  color: #2d2d2d;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modern Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: #2d2d2d;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

h5,
h6 {
  font-size: 1rem;
}

p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #8b8b8b;
  margin-bottom: 1rem;
}

/* Modern Button Styles */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border-radius: 12px;
  border: none;
  padding: 12px 24px;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: #4a4a4a;
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: #2d2d2d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 74, 74, 0.3);
  color: white;
}

.btn-outline-primary {
  background: white;
  color: #4a4a4a;
  border: 1.5px solid #e8e8e8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-outline-primary:hover {
  background: #fbfbfb;
  border-color: #4a4a4a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 74, 74, 0.15);
  color: #4a4a4a;
}

.btn-outline-secondary {
  background: white;
  color: #6b7280;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-outline-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
  transform: translateY(-1px);
}

/* Card and Modal Styles */
.card {
  border: none;
  border-radius: 16px;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 1px solid #f3f4f6;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem;
}

.modal-body {
  padding: 2rem 1.5rem;
}

/* Form Elements */
.form-control {
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  background: white;
  transition: all 0.15s ease;
}

.form-control:focus {
  border-color: #4a4a4a;
  box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.1);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Search Input Specific */
#search-query {
  border: 2px solid #e8e8e8;
  border-radius: 16px;
  font-size: 1rem;
  padding: 16px 20px;
  background: white;
  transition: all 0.2s ease;
}

#search-query:focus {
  border-color: #4a4a4a;
  box-shadow: 0 0 0 4px rgba(74, 74, 74, 0.1);
}

#search-query::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Main layout structure for sidebar */
.app-container {
  display: flex;
  width: 100%;
  height: 100vh;
  /* exact viewport height */
  align-items: stretch;
  /* overflow-y: scroll; */
  /* prevent container scroll */
  /* padding: 1.5rem; */
}

@media (min-width: 992px) {
  .sidebar {
    position: fixed !important;
    /* keep fixed on desktop */
    left: 0 !important;
    /* stick to left edge    */
    top: 0 !important;
    /* stick to top edge     */
    height: 100vh !important;
    /* full viewport height  */
    overflow-y: auto !important;
    /* sidebar can scroll    */
    overflow-x: hidden !important;
    /* hide horizontal scroll */
    /* Override any scrollbar display with stronger rules */
    scrollbar-width: none !important;
    /* Firefox */
    scrollbar-color: transparent transparent !important;
    /* Firefox fallback */
    -ms-overflow-style: none !important;
    /* Internet Explorer 10+ */
    z-index: 1030 !important;
    /* above main content    */
  }

  /* Collapsed sidebar on desktop */
  .sidebar.collapsed {
    transform: translateX(-100%) !important;
  }

  /* Main content expands when sidebar is collapsed */
  .main-content.full {
    margin-left: 0 !important;
  }

  /* Desktop: Ensure saved searches don't take too much space */
  .saved-searches {
    max-height: 180px !important;
    /* Reduced height to prevent overflow */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    /* Hide scrollbar while keeping scroll functionality */
    scrollbar-width: none !important;
    /* Firefox */
    scrollbar-color: transparent transparent !important;
    /* Firefox fallback */
    -ms-overflow-style: none !important;
    /* Internet Explorer 10+ */
  }

  /* Hide scrollbar for saved searches in WebKit browsers */
  .saved-searches::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
    background: transparent !important;
  }

  /* Desktop: Ensure all sidebar menu items are properly visible */
  .sidebar-menu-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Desktop: Ensure settings section is properly visible */
  .settings-section {
    display: block !important;
    visibility: visible !important;
  }

  /* Desktop: Ensure bottom section is properly visible */
  .sidebar-bottom {
    display: block !important;
    visibility: visible !important;
    margin-top: auto !important;
    /* Push to bottom */
    flex-shrink: 0 !important;
  }

  /* Desktop: Hide WebKit scrollbar for sidebar - comprehensive rules */
  .sidebar::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
    background: transparent !important;
    -webkit-appearance: none !important;
  }

  .sidebar::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
  }

  .sidebar::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
  }

  .sidebar::-webkit-scrollbar-corner {
    display: none !important;
    background: transparent !important;
  }
}

@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
    /* Ensure sidebar can fit all content on mobile */
    height: 100vh !important;
    overflow-y: auto !important;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  /* leave room for the hamburger icon next to the logo */
  .sidebar-logo {
    padding-left: 4.5rem;
  }

  /* move toggle with the drawer */
  .sidebar.show+.mobile-sidebar-toggle {
    left: calc(var(--streaml-sidebar-width) + 15px);
    transition: left 0.25s ease;
  }

  /* on mobile, main content takes full width when sidebar is hidden */
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* CRITICAL: Reduce saved searches height on mobile to make room for buttons */
  .saved-searches {
    max-height: 100px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    /* Hide scrollbar while keeping scroll functionality */
    scrollbar-width: none !important;
    /* Firefox */
    scrollbar-color: transparent transparent !important;
    /* Firefox fallback */
    -ms-overflow-style: none !important;
    /* Internet Explorer 10+ */
  }

  /* Hide scrollbar for saved searches in WebKit browsers */
  .saved-searches::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
    background: transparent !important;
  }

  /* Ensure all sidebar sections are visible on mobile */
  .sidebar-menu {
    /* display: flex !important; */
    flex-direction: column !important;
    height: auto !important;
    /* Let it size naturally */
    overflow: visible !important;
  }

  /* Ensure settings section is visible on mobile */
  .settings-section {
    display: block !important;
    visibility: visible !important;
    margin-top: 8px !important;
  }

  /* Make all sidebar menu items visible and properly sized on mobile */
  .sidebar-menu-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 44px !important;
    /* Touch-friendly size */
    padding: 12px 16px !important;
    font-size: 16px !important;
    /* Full size text */
  }

  /* Ensure bottom section is visible and properly spaced */
  .sidebar-bottom {
    margin-top: auto !important;
    /* Push to bottom */
    flex-shrink: 0 !important;
    display: block !important;
    visibility: visible !important;
    position: relative !important;
  }

  /* Ensure New Search button is visible and full size */
  .btn-new-search {
    display: flex !important;
    visibility: visible !important;
    font-size: 16px !important;
    padding: 12px 16px !important;
  }

  /* Mobile: Hide WebKit scrollbar for sidebar - comprehensive rules */
  .sidebar::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
    background: transparent !important;
    -webkit-appearance: none !important;
  }

  .sidebar::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
  }

  .sidebar::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
  }

  .sidebar::-webkit-scrollbar-corner {
    display: none !important;
    background: transparent !important;
  }
}

@media (max-width: 380px) {
  .sidebar {
    width: 80vw;
  }

  .sidebar-logo {
    padding-left: 3rem;
  }

  .sidebar.show+.mobile-sidebar-toggle {
    left: calc(80vw + 15px);
  }
}

/* Figma-inspired Sidebar styling */
.sidebar {
  width: 247px;
  background: #f8f8f8;
  border-right: 1px solid #e7ecf0;
  position: fixed;
  height: 100vh !important;
  min-height: 100vh !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1030;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  color: #0f0f0f;
  box-shadow: none;
  /* Hide scrollbar completely - strongest possible rules */
  scrollbar-width: none !important;
  /* Firefox */
  scrollbar-color: transparent transparent !important;
  /* Firefox fallback */
  -ms-overflow-style: none !important;
  /* Internet Explorer 10+ */
}

/* Hide scrollbar for WebKit browsers - comprehensive rules */
.sidebar::-webkit-scrollbar {
  display: none !important;
  width: 0px !important;
  height: 0px !important;
  background: transparent !important;
  -webkit-appearance: none !important;
}

.sidebar::-webkit-scrollbar-track {
  display: none !important;
  background: transparent !important;
}

.sidebar::-webkit-scrollbar-thumb {
  display: none !important;
  background: transparent !important;
}

.sidebar::-webkit-scrollbar-corner {
  display: none !important;
  background: transparent !important;
}

/* Universal scrollbar hiding for sidebar and all child elements */
.sidebar *,
.sidebar *::-webkit-scrollbar {
  scrollbar-width: none !important;
  scrollbar-color: transparent transparent !important;
  -ms-overflow-style: none !important;
}

.sidebar *::-webkit-scrollbar,
.sidebar *::-webkit-scrollbar-track,
.sidebar *::-webkit-scrollbar-thumb,
.sidebar *::-webkit-scrollbar-corner {
  display: none !important;
  width: 0px !important;
  height: 0px !important;
  background: transparent !important;
  -webkit-appearance: none !important;
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 80px;
}

.sidebar-logo a {
  font-weight: 700;
  font-size: 1.5rem;
  color: #2d2d2d;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-logo a:hover {
  background: #fbfbfb;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #2d2d2d;
  text-decoration: none;
}

.sidebar-logo a i {
  color: #2d2d2d;
  margin-right: 12px;
  font-size: 1.2rem;
}

.sidebar-menu {
  padding: 1.5rem 0;
  flex-grow: 1;
}

.sidebar-menu-item {
  padding: 8px 16px;
  margin: 4px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  color: #0f0f0f;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 15px;
  line-height: 24px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  min-height: 36px;
}

.sidebar-menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74, 74, 74, 0.1), transparent);
  transition: left 0.5s ease;
}

.sidebar-menu-item:hover::before {
  left: 100%;
}

.sidebar-menu-item:hover {
  background: #f8f8f8;
  color: #0f0f0f;
  transform: translateY(-1px);
  border-color: #e7ecf0;
  text-decoration: none;
}

.sidebar-menu-item.active {
  background: #f0f8ff;
  color: #0081ff;
  font-weight: 600;
  border-color: #0081ff;
}

.sidebar-menu-item i {
  margin-right: 8px;
  font-size: 16px;
  width: 24px;
  height: 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* New Search button styling - Figma design implementation */
.sidebar-menu-item[href="/"] {
  background: #ffffff;
  border: 1px solid #e7ecf0;
  border-radius: 20px;
  color: #0f0f0f;
  font-weight: 500;
  font-size: 15px;
  line-height: 24px;
  padding: 4px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 215px;
  height: 40px;
  margin: 4px 16px;
  transition: all 0.2s ease;
  text-transform: capitalize;
}

.sidebar-menu-item[href="/"]:hover {
  background: #f8f9fa;
  border-color: #d0d7de;
  transform: none;
}

/* Start Outreach CTA Button - Figma accent treatment */
.sidebar-menu-item[href*="prepare-outreach"] {
  background: linear-gradient(135deg, var(--streaml-primary), var(--streaml-secondary));
  color: white;
  font-weight: 600;
  border: 1px solid var(--streaml-primary);
  box-shadow: 0 2px 8px rgba(0, 129, 255, 0.2);
}

.sidebar-menu-item[href*="prepare-outreach"]:hover {
  background: linear-gradient(135deg, var(--streaml-secondary), var(--streaml-primary));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 129, 255, 0.3);
  color: white;
}

/* Settings section - add borders between items */
.settings-section .sidebar-menu-item {
  border-bottom: 0.5px solid rgba(15, 15, 15, 0.10);
}

.settings-section .sidebar-menu-item:last-child {
  border-bottom: none;
}

/* Sidebar section headers */
.sidebar-section-header {
  padding: 16px 20px 8px;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  color: #8b8b8b;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-number {
  background: #fbfbfb;
  color: #2d2d2d;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 12px;
  border: 1px solid #e8e8e8;
}

.step-title {
  font-weight: 600;
  opacity: 0.9;
}

.sidebar-bottom {
  margin-top: auto;
  /* Push to bottom of sidebar */
  padding: 1.5rem 1rem;
  border-top: 1px solid #f0f0f0;
  background: #fbfbfb;
  flex-shrink: 0;
  /* Prevent shrinking */
}

/* User account info at bottom */
.user-account-info {
  margin-top: 1rem !important;
  padding: 12px 16px !important;
  border-top: 1px solid #e9ecef !important;
  font-size: 13px !important;
  color: #6c757d !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
}

/* Modern Upgrade Plan Button */
.sidebar-bottom a[href*="billing"].sidebar-menu-item {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  position: relative !important;
  overflow: hidden !important;
  transform: scale(1) !important;
  animation: pulseGlow 3s infinite !important;
  margin-bottom: 8px !important;
}

.sidebar-bottom a[href*="billing"].sidebar-menu-item:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%) !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
  color: white !important;
  text-decoration: none !important;
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  }

  50% {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
  }
}

.sidebar-bottom .btn-primary i {
  margin-right: 8px;
  font-size: 1rem;
}

/* User area styling */
.sidebar-bottom .d-flex {
  color: #2d2d2d;
}

.sidebar-bottom .d-flex i {
  color: #8b8b8b;
}

.sidebar-bottom .btn-outline-secondary {
  border: 1px solid #e8e8e8;
  color: #2d2d2d;
  background: transparent;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-bottom .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-1px);
}

/* Login/Register buttons for non-authenticated users */
.sidebar-bottom .btn-outline-primary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  background: transparent;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-bottom .btn-outline-primary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
  transform: translateY(-1px);
}

/* Register button (primary) styling */
.sidebar-bottom .d-grid .btn-primary:not([href*="billing"]) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  backdrop-filter: blur(10px);
}

.main-content {
  flex: 1;
  margin-left: var(--streaml-sidebar-width);
  height: 100vh;
  transition: all 0.3s ease;
  /* overflow-y: auto; */
  /* overflow-x: hidden; */
}

/* Header styling */
.main-header {
  height: var(--streaml-header-height);
  background-color: var(--streaml-bg);
  border-bottom: 1px solid var(--streaml-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Navbar styling (for pages that still use the top navbar) */
.navbar {
  background-color: var(--streaml-bg);
  border-bottom: 1px solid var(--streaml-border);
  padding: 0.75rem 1.5rem;
}

.navbar-brand {
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--streaml-text) !important;
  display: flex;
  align-items: center;
}

.navbar-brand i {
  color: var(--streaml-primary);
  margin-right: 0.5rem;
}

/* Card styling */
.card {
  background-color: var(--streaml-card-bg);
  border: 1px solid var(--streaml-border);
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.card-header {
  background-color: transparent;
  border-bottom: 1px solid var(--streaml-border);
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.25rem;
}

.card-footer {
  background-color: transparent;
  border-top: 1px solid var(--streaml-border);
  padding: 1rem 1.25rem;
}

/* Typography tweaks */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--streaml-text);
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--streaml-text);
}

/* ChatGPT-style textarea */
.chatgpt-textarea {
  width: 100%;
  height: auto;
  min-height: 58px;
  padding: 14px 50px 14px 16px;
  resize: none;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 8px;
  border: 1px solid var(--chatgpt-border);
  background-color: var(--chatgpt-input-bg);
  color: var(--chatgpt-text);
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.chatgpt-textarea:focus {
  border-color: var(--chatgpt-primary);
  box-shadow: 0 0 0 1px var(--chatgpt-primary);
}

/* Search button styling */
.search-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: var(--chatgpt-primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-button:hover {
  background-color: var(--chatgpt-primary-hover);
}

/* Button styling */
.btn {
  border-radius: 0.375rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--streaml-primary-hover);
  border-color: var(--streaml-primary-hover);
  color: white;
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--streaml-primary);
  border-color: var(--streaml-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--streaml-primary);
  border-color: var(--streaml-primary);
  color: white;
}

.btn-success {
  background-color: var(--streaml-success);
  border-color: var(--streaml-success);
}

.btn-info {
  background-color: var(--streaml-info);
  border-color: var(--streaml-info);
}

.btn-warning {
  background-color: var(--streaml-warning);
  border-color: var(--streaml-warning);
}

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

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

/* Smaller buttons */
.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

/* Larger buttons */
.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

.dropdown-toggle {
  border-radius: 20px;
  border: 1px solid #7FACD8;
  background: #F4FAFF;
  color: black;
  width: 140px;
  height: 36px;
}

/* Form controls */
.form-control {
  background-color: var(--streaml-input-bg);
  border: 1px solid var(--streaml-input-border);
  color: var(--streaml-text);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.form-control:focus {
  background-color: var(--streaml-input-bg);
  color: var(--streaml-text);
  border-color: var(--streaml-primary);
  box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.2);
}

.form-label {
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--streaml-text);
}

.form-text {
  color: var(--streaml-secondary-text);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Input group styling */
.input-group {
  position: relative;
}

.input-group .btn {
  z-index: 3;
}

.input-group-text {
  background-color: var(--streaml-gray-bg);
  border-color: var(--streaml-input-border);
  color: var(--streaml-secondary-text);
}

/* Input placeholders */
::placeholder {
  color: var(--chatgpt-secondary-text) !important;
  opacity: 0.7;
}

/* Table styling */
.table {
  --bs-table-bg: #ffffff;
  --bs-table-striped-bg: #f8f9fa;
  --bs-table-hover-bg: #f2f2f2;
  color: #000000;
  overflow-x: auto;
}

.table thead {
  border-bottom: 1px solid var(--chatgpt-border);
  background-color: #ffffff;
}

/* Force table text to be black */
.table th,
.table td,
.table tr,
.table thead th,
.table tbody td {
  color: #000000 !important;
  border-color: var(--chatgpt-border);
  background-color: #ffffff;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow-x: auto;
}

/* Better text breaking for long queries */
.text-break {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto;
  line-height: 1.4;
  white-space: normal !important;
}

/* Dashboard floating button */
.floating-dashboard-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--chatgpt-primary);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.2s ease;
}

.floating-dashboard-btn:hover {
  background-color: var(--chatgpt-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  color: white;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
}

/* Modal styling */
.modal-content {
  background-color: var(--chatgpt-card-bg);
  border: 1px solid var(--chatgpt-border);
}

.modal-header {
  border-bottom: 1px solid var(--chatgpt-border);
}

.modal-footer {
  border-top: 1px solid var(--chatgpt-border);
}

/* Alerts */
.alert-info {
  background-color: rgba(13, 202, 240, 0.15);
  border-color: rgba(13, 202, 240, 0.4);
  color: #0dcaf0;
}

.alert-success {
  background-color: rgba(25, 135, 84, 0.15);
  border-color: rgba(25, 135, 84, 0.4);
  color: #20c997;
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.15);
  border-color: rgba(255, 193, 7, 0.4);
  color: #ffc107;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.4);
  color: #dc3545;
}

/* Links */
a {
  color: var(--chatgpt-primary);
  text-decoration: none;
}

a:hover {
  color: var(--chatgpt-primary-hover);
  text-decoration: underline;
}

/* Text colors */
.text-secondary {
  color: var(--chatgpt-secondary-text) !important;
}

/* Modern Search Results Page Styles */
.btn-engage-all {
  background: white;
  border: 1px solid #333;
  color: #333;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  box-shadow: none;
}

.btn-engage-all:hover {
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-color: #333;
  transform: none;
  box-shadow: none;
}

.btn-engage-selected {
  background: white;
  border: 1px solid #333;
  color: #333;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  box-shadow: none;
}

.btn-engage-selected:hover:not(.disabled) {
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-color: #333;
  transform: none;
  box-shadow: none;
}

.btn-engage-selected.disabled,
.btn-primary.disabled {
  background: #6c757d !important;
  border: 1px solid #6c757d !important;
  color: white !important;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

.btn-install-extension {
  background: #4a4a4a;
  border: 1px solid #4a4a4a;
  color: white;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
}

.btn-install-extension:hover {
  transform: translateY(-1px);
  background: #2d2d2d;
  border-color: #2d2d2d;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(74, 74, 74, 0.3);
}

.btn-export-csv {
  background: white;
  border: 1px solid #333;
  color: #333;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  box-shadow: none;
}

.btn-export-csv:hover {
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-color: #333;
  transform: none;
  box-shadow: none;
}

.btn-export-csv:focus {
  background: #f8f9fa;
  color: #333;
  border-color: #333;
  box-shadow: none;
}

.btn-import-csv {
  background: #007bff;
  border: 1px solid #007bff;
  color: white;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  box-shadow: none;
}

.btn-import-csv:hover {
  background: #0056b3;
  color: white;
  text-decoration: none;
  border-color: #0056b3;
  transform: none;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.25);
}

.btn-import-csv:focus {
  background: #0056b3;
  color: white;
  border-color: #0056b3;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-ai-filtering {
  background: white;
  border: 1px solid #6b7280;
  color: #6b7280;
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ai-filtering:hover {
  background: #f8f9fa;
  color: #6b7280;
  text-decoration: none;
  border-color: #6b7280;
  transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-ai-filtering:focus {
  background: #f8f9fa;
  color: #6b7280;
  border-color: #6b7280;
  box-shadow: none;
}

.btn-ai-filtering:disabled {
  background: white;
  border: 1px solid #d6d6d6;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Modern card styling */
.modern-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Filter section modern styling */
.btn-warning {
  background: #4a4a4a;
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 10px rgba(74, 74, 74, 0.3);
}

.btn-warning:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(74, 74, 74, 0.4);
  color: white;
  background: #2d2d2d;
}

.btn-outline-secondary {
  border: 2px solid #6b7280;
  color: #6b7280;
  background: transparent;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-secondary:hover {
  transform: translateY(-1px);
  background: #6b7280;
  border-color: #6b7280;
  color: white;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Enhanced Progress Display Animations */
#progress-text {
  transition: all 0.4s ease-in-out;
  font-weight: 500;
  letter-spacing: 0.025em;
  min-height: 24px;
  display: flex;
  align-items: center;
  position: relative;
}

#progress-text::after {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
  margin-left: 8px;
  border-radius: 2px;
  animation: blinkCursor 1.5s infinite;
  opacity: 0.8;
}

@keyframes blinkCursor {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

#progress-text.completed::after {
  display: none;
}

.progress-bar-animated {
  background-size: 20px 20px;
  animation: progressBarMove 2s linear infinite;
}

@keyframes progressBarMove {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 20px 0;
  }
}

/* Processing section enhancements */
#processing-section {
  animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#processing-section h4 {
  transition: all 0.3s ease-in-out;
  position: relative;
}

#processing-section h4::before {
  content: '🤖';
  margin-right: 12px;
  animation: robotPulse 2s infinite;
}

@keyframes robotPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Search service indicators */
.service-indicator {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 2px 4px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.service-indicator.active {
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.service-indicator.completed {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.service-indicator.failed {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

/* Compact contacts table styling */
.compact-contacts-table {
  font-size: 13px;
}

.compact-contacts-table th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 12px;
  color: #495057;
}

.compact-contacts-table .compact-row {
  height: 48px;
}

.compact-contacts-table .compact-row td {
  padding: 6px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f3f4;
}

.compact-contacts-table .compact-row:hover {
  background-color: #f8f9fa;
}

.profile-avatar {
  flex-shrink: 0;
}

.company-logo {
  flex-shrink: 0;
}

.placeholder-avatar {
  background-color: #e9ecef !important;
  color: #6c757d !important;
  font-weight: 600;
}

.company-logo-placeholder {
  background-color: #f8f9fa !important;
  border: 1px solid #dee2e6 !important;
  color: #6c757d !important;
  font-weight: 600;
}

/* Merchant domain styling */
.merchant-domain-link {
  text-decoration: none !important;
  color: #28a745 !important;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.merchant-domain-link:hover {
  color: #218838 !important;
  text-decoration: underline !important;
}

.merchant-domain-link i {
  margin-right: 4px;
}