/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Use system font stack for better performance */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.4;
  color: #333;
}

/* Header styles */
.sticky-header {
  position: sticky;
  top: 0;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  position: relative;
  background-color: #000;
}

.logo img {
  height: 60px;
  width: 200px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #001e78;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #333;
  font-size: 1.5rem;
}

/* Mobile navigation styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1001;
    text-align: right;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #eee;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  /* Animation for menu items */
  .nav-links.active li {
    animation: slideIn 0.3s ease-in-out forwards;
    opacity: 0;
  }

  .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { animation-delay: 0.2s; }
  .nav-links.active li:nth-child(3) { animation-delay: 0.3s; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero section styles */
.hero {
  padding: 2rem 0;
  background-color: #ffffff;
}

.hero-container {
  max-width: 1000px; /* Reduced from 1200px */
  margin: 0 auto;
  padding: 0 20px; /* Reduced side padding */
}

.hero-content {
  margin: 0 auto;
  max-width: 800px; /* Added max-width to content */
}

.hero h3 {
  font-size: 1.2rem; /* Slightly reduced */
  text-align: center;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: linear-gradient(135deg, #001e78, #00ff8c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 20px;
}

.hero h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
  font-weight: 500;
  line-height: 1.4;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  padding: 0 20px;
}

.hero h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #2c3e50);
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

.hero-content {
  margin: 0 auto;
  max-width: 1200px;
  padding: 3rem 0;
  position: relative;
}

.hero-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #2c3e50);
  border-radius: 2px;
}

.highlight {
  background: linear-gradient(90deg, #001e78, #00ff8c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem; /* Reduced */
}

.hero-text {
  flex: 1;
}

.hero-text > p:first-of-type {
  font-size: 0.9rem; /* Reduced */
  margin-bottom: 0.8rem; /* Reduced */
  text-align: center;
}

.hero-text ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 1.2rem; /* Reduced */
}

.hero-text li {
  margin-bottom: 0.6rem; /* Reduced */
  font-size: 0.85rem; /* Reduced */
}

.hero-image {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Mobile-specific video handling */
@media (max-width: 768px) {
  .hero-video {
      cursor: pointer;
  }
  
  /* Hide video by default on mobile */
  .hero-video:not([data-clicked="true"]) {
      display: none;
  }
  
  /* Show poster image by default */
  .hero-image::before {
      content: "";
      display: block;
      width: 100%;
      height: 100%;
      background-image: var(--poster-image);
      background-size: cover;
      background-position: center;
      border-radius: 8px;
      cursor: pointer;
  }
  
  /* Hide poster when video is active */
  .hero-image[data-video-active="true"]::before {
      display: none;
  }
}

/* Loading state adjustments */
.hero-image.loading::before {
  opacity: 0.7;
}

/* Error state handling */
.hero-image.error::before {
  opacity: 1;
  cursor: not-allowed;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

/* Make it responsive */
@media (max-width: 768px) {
  .hero-image {
      max-width: 100%;
      margin: 20px 0;
  }
}



.microsoft-badge {
  text-align: center;
  margin-top: 1.2rem; /* Reduced */
}

.microsoft-badge img {
  max-width: 80%; /* Reduced to make it more compact */
  height: auto;
}

@media (max-width: 768px) {
  .hero-flex {
      flex-direction: column;
  }

  .hero-image {
      max-width: 100%;
      order: -1;
  }
}

/* Features section styles */
.features {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    width: 100%;
    overflow: visible; /* Changed from hidden to allow content to flow */
    min-height: fit-content; /* Ensures section grows with content */
}

.features .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    height: auto; /* Allows container to grow */
    overflow: visible; /* Allows content to be fully visible */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    width: 100%;
    height: auto; /* Ensures grid grows with content */
}

/* Responsive adjustments for section */
@media (max-width: 1024px) {
    .features {
        padding: 3rem 1.5rem;
        margin-bottom: 2rem; /* Added space after section */
    }
}

@media (max-width: 768px) {
    .features {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .features .container {
        padding: 0 10px;
    }
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible; /* Changed from hidden to allow content to show */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures full height */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #001e78, #00ff8c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0; /* Prevents icon from shrinking */
}

.feature-icon i {
    font-size: 24px;
    color: white;
}

.feature-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to fill available space */
}

.feature-content h2 {
    font-size: clamp(1.2rem, 2vw, 1.5rem); /* Responsive font size */
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.feature-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.5vw, 1rem); /* Responsive font size */
}

.feature-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto; /* Pushes list to bottom of card */
}

.feature-content li {
    color: #555;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem); /* Responsive font size */
}

.feature-content li:last-child {
    margin-bottom: 0; /* Removes extra space after last item */
}

.feature-content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #001e78;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .features {
        padding: 3rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* Add minimum height for very small screens */
@media (max-width: 480px) {
    .feature-card {
        min-height: auto; /* Allows natural height on very small screens */
    }
}

/* Email signup form styles */
.email-signup {
  display: flex;
  max-width: 500px;
  margin: 1rem auto;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
}

.email-signup input[type="email"] {
  flex-grow: 1;
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  outline: none;
}

.email-signup button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #10a900;
  color: white;
  border: none;
  cursor: pointer;
}

.email-signup .success-message,
.email-signup .error-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

.email-signup .success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.email-signup .error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.email-signup button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 768px) {
  .email-signup {
    flex-direction: column;
  }

  .email-signup input[type="email"],
  .email-signup button {
    width: 100%;
  }
}

/* Pricing section styles */
.pricing {
  background-color: #f8f9fa;
  padding: 4rem 5%;
  text-align: left;
}

.pricing h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center !important;
}

.pricing > p {
  margin-bottom: 2rem;
  text-align: center !important;
}

.pricing-plans {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.plan {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 2rem;
  width: 400px;
}

.plan h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.plan .price {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.price-container {
  text-align: center;
}

.plan ul {
  list-style-type: none;
  margin-bottom: 2rem;
}

.plan li {
  margin-bottom: 0.5rem;
}

.plan button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: #001e78;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.plan.featured {
  transform: scale(1.05);
}

.offer-note {
  margin-top: 1rem;
  font-style: italic;
}

span.renewal {
  font-weight: 600 !important;
    display: inline-block;
    white-space: normal !important;
    font-size: 1.125rem;
    margin-top: 0.5rem;
    color: #333;
}

span.offer {
  font-size: 0.9rem;
  font-weight: 500;
  color: #001e78;
  margin-top:-20px;
}

span.period {
  margin-right: 0px !important;
  color: #666;
  font-size: 1rem;
}

span.amount {
  margin-right: 0px;
  font-size: 2.5rem;
  font-weight: bold;
  color: #001e78;
}

/* Login and Singup Styles */

.google-login-container {
  margin-top: 20px;
  text-align: center;
}

.google-signup-container {
  margin-top: 20px;
  text-align: center;
}

/* Privacy Styles */

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.6;
}

.privacy-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.privacy-content h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.privacy-content p, .privacy-content ul {
  margin-bottom: 1rem;
}

.privacy-content ul {
  padding-left: 2rem;
}

.privacy-content li {
  margin-bottom: 0.5rem;
}

/* Do Not Sell */

.do-not-sell-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.do-not-sell-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.do-not-sell-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

#do-not-sell-form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 0 auto;
}

#do-not-sell-form input[type="email"] {
  padding: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

#do-not-sell-form button {
  padding: 0.5rem 1rem;
  background-color: #10a900;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

#do-not-sell-form button:hover {
  background-color: #001e78;
}

#form-message {
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
}

/* FAQ Page Styles */
.faq-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.faq-content h1 {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.faq-content > p {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 16px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background-color: #000;
  border: none;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f9f9f9;
  color:#000;
}

.faq-icon {
  font-size: 24px;
  color: #001e78;
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 1000px; /* Adjust this value as needed */
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Responsive design */
@media (max-width: 768px) {
  .faq-content {
      padding: 1rem;
  }

  .faq-content h1 {
      font-size: 32px;
  }

  .faq-question {
      font-size: 20px;
      padding: 1rem;
  }

  .faq-item.active .faq-answer {
      padding: 1rem;
  }
}

/* terms */

.terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.6;
}

.terms-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.terms-content h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.terms-content p {
  margin-bottom: 1rem;
}

.terms-content ul {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.terms-content li {
  margin-bottom: 0.5rem;
}

/* Footer styles */
footer {
  background-color: #333;
  color: #fff;
  padding: 2rem 5%;
  text-align: center;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .pricing-plans {
      flex-direction: column;
      align-items: center;
  }

  .plan {
      width: 100%;
      max-width: 300px;
  }

  .plan.featured {
      transform: none;
  }

  .nav-links {
      display: none;
  }
}

body { 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

.container {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
}

/* Sidebar Styles */

.menu-item a {
  text-decoration: none;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

.support {
  color: #001e78;
  font-size: 14px;
  margin: 20px;
}

.sidebar.collapsed .support {
  display: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar .icon-logo {
  max-width: 40px;
  display: none;
}

.sidebar .icon-logo.visible {
  display: block;
}

.new-conversation-btn {
  background-color: black;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.new-conversation-btn:hover {
  background-color: #333; /* Slightly lighter black on hover */
}

/* Sidebar Logo Styles */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
}

.desktop-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: #333;
  transition: color 0.3s ease;
}

.desktop-sidebar-toggle:hover {
  color: #000;
}

.desktop-sidebar-toggle .toggle-icon,
.desktop-sidebar-toggle .icon-logo {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.sidebar .logo img {
  max-width: 100%;
  min-width: 170px;
  height: auto;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .sidebar .logo img {
    display: none;
  }
  .sidebar {
    padding-top: 100px;
  }
}

.sidebar .logo .icon-logo,
.desktop-sidebar-toggle .icon-logo {
  max-width: 40px;
  display: none;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar.collapsed .logo-container {
  justify-content: center;
  padding: 10px 0;
}

.sidebar.collapsed .logo,
.sidebar.collapsed .menu-item span,
.sidebar.collapsed .sub-menu,
.sidebar.collapsed .desktop-sidebar-toggle .toggle-icon {
  display: none;
}

.sidebar.collapsed .desktop-sidebar-toggle .icon-logo,
.sidebar.collapsed .logo .icon-logo {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto;
}

.sidebar.collapsed .menu-item button {
  justify-content: center;
}

.main-content.expanded {
  margin-left: 60px;
}

.desktop-sidebar-toggle.rotated svg {
  transform: rotate(180deg);
}

@media (min-width: 769px) {
  .desktop-sidebar-toggle {
    display: flex;
  }
}

.conversation, .new-conversation-btn {
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
}

.conversation {
  font-size: 12px;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.conversation-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 10px; /* Add some space between the title and the delete icon */
}

.conversation, span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 10px;
  max-width: 250px;
}

.conversation:hover {
  background-color: #f0f0f0;
}

.conversation.selected {
  background-color: #001e781a;
  color:#001e78;
}

.delete-icon {
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
  flex-shrink: 0; /* Prevent the icon from shrinking */
}

.delete-icon:hover {
  color: #f00;
}


.mobile-top-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #f8f9fa;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1001;
}

.mobile-logo {
  text-align: center;
}

.mobile-logo img {
  height: auto;
  max-width: 200px;
}

.sidebar-toggle {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #000;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.sidebar {
  background-color: #f8f9fa;
  width: 250px;
  padding: 20px;
  overflow-y: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: width 0.3s ease;
}

.sidebar.collapsed {
  width: 60px;
}

.menu-item button {
  width: 100%;
  padding: 12px 15px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  outline: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: #333;
  font-size: 16px;
  transition: all 0.2s ease;
  border-radius: 5px;
}

.menu-item button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.menu-item button svg {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  flex-shrink: 0;
}

.menu-item button span {
  transition: opacity 0.3s ease, width 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar.collapsed .menu-item button {
  justify-content: center;
  padding: 12px 0;
}

.sidebar.collapsed .menu-item button svg {
  margin-right: 0;
}

.sidebar.collapsed .menu-item button span {
  opacity: 0;
  width: 0;
  display: none;
}

.arrow-down, .arrow-right {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  margin-left: auto;
}

.arrow-down {
  border-top: 5px solid currentColor;
}

.arrow-right {
  border-left: 5px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.sidebar.collapsed .arrow-down,
.sidebar.collapsed .arrow-right {
  display: none;
}

.sub-menu {
  margin-left: 30px;
  overflow: hidden;
  transition: height 0.3s ease;
}

.sub-menu.visible {
  display: block;
}

.sidebar.collapsed .sub-menu {
  height: 0 !important;
  margin-left: 0;
}

.sub-menu .new-conversation-btn {
  width: auto;
  padding: 8px 12px;
  background-color: black;
  color: white;
  text-align: center;
  font-size: 14px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  justify-content: center;
  margin: 10px 15px;
}

.sub-menu .new-conversation-btn:hover {
  background-color: #333; /* Slightly lighter black on hover */
}

@media (max-width: 768px) {
  .mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar {
    left: -250px;
    padding-top: 50px;
  }

  .sidebar.active {
    left: 0;
  }

  .main-content {
    margin-left: 0;
    padding-top: 0px; /* Adjust based on your top bar height */
  }

  body {
    padding-top: 0px; /* Adjust based on your top bar height */
  }

  .desktop-logo {
    display: none;
  }
}

/* Assistant Chat Styles */
.chat-messages {
  display: flex;
  flex-direction: column;
}

.message {
  margin-bottom: 10px;
  max-width: 80%;
}

.user-message {
  background-color: #f0f0f0;
  border-radius: 5px;
  padding: 10px;
  margin: 10px 0px;
  align-self: flex-end;
}

.assistant-message {
  color: #333;
  line-height: 1.6;
  align-self: flex-start;
  padding: 0;
  max-width: 100%;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.assistant-message p,
.assistant-message li {
  color: #333;
  margin-bottom: 0;
}

/* Update the ordered list styles */
.assistant-message ol {
    counter-reset: item;
    padding-left: 2em;  /* Increased padding for numbers */
    margin: 0;
}

.assistant-message ol li {
    position: relative;  /* Added for positioning */
    display: block;
    padding-left: 0.5em;  /* Space between number and text */
    line-height: 1.6;
}

.assistant-message ol li:before {
    content: counter(item) ".";
    counter-increment: item;
    color: #333;
    position: absolute;  /* Position the numbers */
    left: -2em;  /* Pull the numbers out */
    width: 1.5em;  /* Give numbers some space */
    text-align: right;  /* Align numbers right */
}

/* Ensure list items wrap properly */
.assistant-message li p {
    margin: 0;  /* Remove default paragraph margins in list items */
    display: inline;  /* Keep text inline with numbers */
}

.assistant-message ul {
  padding-left: 1.5em;
  margin: 0;
}

.assistant-message li br {
  content: "";
  margin: 0.5em 0;
  display: block;
}

.assistant-message strong {
  color: #2c3e50;
  font-weight: 600;
}

.assistant-message h3 {
  color: #2c3e50;
  margin: 0;
  font-size: 1.2em;
  font-weight: 600;
}
/* Typing effect container */
.assistant-message {
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Thinking state */
.assistant-message.thinking {
  color: #666;
  font-style: italic;
}

/* Code Block Container */
.code-block-container {
    position: relative;
    margin: 1.5em 0;
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    overflow: hidden;
}

.code-block-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 16px;
    background-color: #f1f4f8;
    border-bottom: 1px solid #e1e4e8;
}

.copy-code-btn {
    padding: 4px 8px;
    font-size: 12px;
    line-height: 20px;
    color: #24292e;
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 3px;
    cursor: pointer;
    transition: 0.2s ease;
}

.copy-code-btn:hover {
    background-color: #f3f4f6;
    border-color: #d0d7de;
}

.code-block-container pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 14px;
    line-height: 1.45;
    color: #24292e;
}

.code-block-container code {
    padding: 0;
    margin: 0;
    background-color: transparent;
    border: 0;
    white-space: pre;
}

/* Style for inline code */
:not(pre) > code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: #f6f8fa;
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.code-language {
  font-size: 12px;
  color: #666;
  font-family: monospace;
}

.copy-button {
  padding: 4px 8px;
  font-size: 12px;
  color: #666;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

/* Pygments syntax highlighting styles */
.highlight {
  padding: 16px;
  overflow-x: auto;
}

.highlight pre {
  margin: 0;
}

.icon-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 10px;
}

.icon-container button {
  margin-right: 10px;
  padding: 10px 20px;
  background: #001e780f;
  color: #001e78;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

.icon-container button:hover {
  background-color: #e0e0e0;
}

.chat-messages table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-messages th,
.chat-messages td {
  padding: 12px 15px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e0e0e0;
}

.chat-messages th {
  background-color: #ffffff;
  color: #333;
  font-weight: bold;
  border-bottom: 2px solid #e0e0e0;
}

.chat-messages tr:last-child td {
  border-bottom: none;
  padding: 5px;
}

.chat-messages tr:nth-child(even) {
  background-color: #f9f9f9;
}

.chat-messages tr:hover {
  background-color: #f0f0f0;
}

.chat-messages th:first-child,
.chat-messages td:first-child {
  width: 40px;
  padding: 0;
  text-align: center;
}

.chat-messages input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #333;
  border-radius: 3px;
  outline: none;
  transition: background-color 0.3s, border-color 0.3s;
  cursor: pointer;
  margin: 0;
  vertical-align: middle;
}

.chat-messages input[type="checkbox"]:checked {
  background-color: #333;
  border-color: #333;
}

.chat-messages input[type="checkbox"]:checked::after {
  content: '\2714';
  display: block;
  text-align: center;
  color: #ffffff;
  font-size: 14px;
  line-height: 18px;
}

.checkbox-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 12px 0;
}

.unlock-email-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 6px 12px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  margin: 2px 2px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.unlock-email-btn:hover {
  background-color: #45a049;
}

.chat-messages .keywords,
.chat-messages .company {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


@media (max-width: 768px) {
  .chat-messages {
      max-height: calc(100vh - 200px);
      margin-top: 50px;
  }
}

@media (max-width: 768px) {
  .chat-messages table {
    font-size: 12px;
  }

  .chat-messages th,
  .chat-messages td {
    padding: 8px 10px;
  }

  .chat-messages .keywords,
  .chat-messages .company {
    max-width: 100px;
  }
}

/* Thinking and Searching message styles */
.message.assistant-message.thinking,
.message.assistant-message.searching {
  font-style: italic;
  color: #888;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* Chat form styles */
.chat-input-form {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.hidden-file-input {
    display: none !important; /* Hide the default file input */
}

.image-upload-wrapper {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

#userQuery {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 8px;
    font-size: 16px;
    background: transparent;
}

button[type="submit"] {
    border: none;
    background: #001e78;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 8px 16px;
}

.image-upload-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
    color: #666;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload-btn:hover {
    background-color: #f0f0f0;
    color: #001e78;
}

/* Add a subtle animation for the hover state */
.image-upload-btn svg {
    transition: transform 0.2s ease;
}

.image-upload-btn:hover svg {
    transform: scale(1.1);
}

/* Style for when an image is selected */
.image-upload-btn.has-image {
    color: #001e78;
}

/* Add visual feedback for image upload in progress */
.image-upload-btn.uploading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Add these styles for the image preview */
.image-preview-container {
    position: relative;
    display: inline-block;
    margin: 8px;
    max-width: 200px;
}

.image-preview {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.remove-image-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s ease;
}

.remove-image-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.remove-image-btn svg {
    width: 12px;
    height: 12px;
}

/* Update chat form to accommodate preview */
.chat-input-row {
    display: flex;
    gap: 8px;
}

.context-image-container {
  margin: 10px 0;
  width: 300px; /* Fixed width instead of max-width */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: block;
  flex-shrink: 0; /* Prevent shrinking */
  position: relative; /* Establish positioning context */
  z-index: 1; /* Keep it above other content */
}

.context-image {
  width: 100%;
  height: auto;
  min-height: 150px; /* Minimum height to prevent collapse */
  display: block;
  border-radius: 8px;
  object-fit: cover; /* Changed from contain to cover for better visual */
  position: relative; /* Ensure it maintains position */
}

/* Ensure the message container doesn't affect the image */
.message {
  position: relative;
  z-index: 0;
}

/* If the chat messages container is flex, add this */
#chatMessages {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align items to the start */
}

/* Adjustments for mobile view */
@media (max-width: 768px) {
    .chat-form-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    #userQuery {
        font-size: 14px;
        padding: 10px 12px;
    }

    #chatForm button {
        width: 36px;
        height: 36px;
    }

    #chatForm button svg {
        width: 18px;
        height: 18px;
    }
}

/* master checkbox popup */

.master-checkbox-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.master-checkbox-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.master-checkbox-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.master-checkbox-popup-content p {
    margin-bottom: 15px;
    font-weight: bold;
}

.master-checkbox-select-max,
.master-checkbox-select-current-page {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #000;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.master-checkbox-select-max:hover,
.master-checkbox-select-current-page:hover {
    background-color: #e0e0e0;
}

.main-content {
    width: calc(100%);  /* Account for both sidebar (250px) and extras column (300px) */
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    margin-left: 250px;
    margin-right: 350px;  /* Add margin to prevent content from flowing under extras column */
    transition: margin-left 0.3s ease;
}

.chat-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 100px;
    padding-right: 10px;  /* Add some padding to prevent content from touching the scrollbar */
}

form {
    display: flex;
    margin-top: 20px;
}

input[type="text"], input[type="email"], input[type="password"] {
    flex: 1;
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
}

input[type="submit"], button {
    padding: 10px 20px;
    background-color: #000;
    border: none;
    color: #fff;
    cursor: pointer;
}

.pagination, .campaigns-pagination, .contacts-pagination {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.pagination button, .campaigns-pagination button, .contacts-pagination button {
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #000000;
    border-radius: 5px;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

.pagination-button {
    background-color: black;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-right: 5px;
    cursor: pointer;
    font-size: 14px;
}

.pagination-button:hover {
    background-color: #333; /* Optional: darker shade on hover */
}

.pagination-button:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.message { margin-bottom: 10px; }
.user-message { text-align: right; }
.assistant-message { text-align: left; }

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #001e78;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 5px;
    vertical-align: middle;
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

/* Mobile-friendly styles for the assistant page */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .main-content {
        width: 100%;  /* Full width on very small screens */
        margin-left: 0;
    }

    .chat-container {
        height: calc(100vh - 120px); /* Adjust based on your top bar height */
    }

    .chat-messages {
        max-height: calc(100vh - 200px);
    }

    #chatForm input[type="submit"] {
        width: 100%;
    }

    /* Adjustments for the results table */
    table {
        font-size: 14px;
    }

    table th, table td {
        padding: 8px 4px;
    }

    .button-placeholder button,
    .unlock-email-btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* Adjustments for action buttons */
    .icon-container {
        flex-direction: column;
        align-items: stretch;
    }

    .icon-container button {
        margin-bottom: 10px;
    }

    /* Adjustments for pagination */
    .pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination button {
        margin-bottom: 10px;
    }
}

/* General improvements for better mobile experience */
input[type="text"], input[type="email"], input[type="password"], textarea {
    font-size: 16px; /* Prevents zoom on focus in iOS */
}

button {
    touch-action: manipulation; /* Improves touch response */
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 2000; /* Increase this value */
}

#notification {
    z-index: 9999; /* This should be higher than any other z-index in your stylesheet */
}

.notification.show {
    opacity: 1;
}

.download-icon {
    cursor: pointer;
    margin-bottom: 10px;
}

.campaigns-container {
    width: 80%;
    margin: 20px auto;
    background: white;
    padding: 20px;
}

/* Campaigns Table Styles */
#campaignsTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

#campaignsTable th,
#campaignsTable td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e0e0e0;
}

#campaignsTable th {
    background-color: #ffffff;
    color: #333;
    font-weight: bold;
    border-bottom: 2px solid #e0e0e0;
}

#campaignsTable tr:last-child td {
    border-bottom: none;
}

#campaignsTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#campaignsTable tr:hover {
    background-color: #f0f0f0;
}

#campaignsTable th:first-child,
#campaignsTable td:first-child {
    width: 40px;
    padding: 0;
    text-align: center;
}

#campaignsTable input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #333;
    border-radius: 3px;
    outline: none;
    transition: background-color 0.3s, border-color 0.3s;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}

#campaignsTable input[type="checkbox"]:checked {
    background-color: #333;
    border-color: #333;
}

#campaignsTable input[type="checkbox"]:checked::after {
    content: '\2714';
    display: block;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    line-height: 18px;
}

/* Campaign Actions Styles */
.campaign-actions {
    margin-bottom: 20px;
}

.campaign-actions button {
    background: #001e780f;
    color: #001e78;
    border: none;
    padding: 10px 15px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

.campaign-actions button:hover {
    background-color: #e0e0e0;
}

/* New Campaign Button Styles */
#newCampaignButton {
    background-color: #001e78;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#newCampaignButton:hover {
    background-color: #001e78;
}

/* Pagination Styles */
.campaigns-pagination {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.campaigns-pagination button {
    background-color: #000;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

.campaigns-pagination button:hover {
    background-color: #333;
}

.campaigns-pagination button:disabled {
    background-color: #666;
    cursor: not-allowed;
}

/* Responsive styles */
@media (max-width: 768px) {
    #campaignsTable {
        font-size: 12px;
    }

    #campaignsTable th,
    #campaignsTable td {
        padding: 8px 10px;
    }

    .campaign-actions button,
    .campaigns-pagination button {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Contacts Table Styles */
#contactsTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

#contactsTable th,
#contactsTable td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e0e0e0;
}

#contactsTable th {
    background-color: #ffffff;
    color: #333;
    font-weight: bold;
    border-bottom: 2px solid #e0e0e0;
}

#contactsTable tr:last-child td {
    border-bottom: none;
}

#contactsTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#contactsTable tr:hover {
    background-color: #f0f0f0;
}

#contactsTable th:first-child,
#contactsTable td:first-child {
    width: 40px;
    padding: 0;
    text-align: center;
}

#contactsTable input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #333;
    border-radius: 3px;
    outline: none;
    transition: background-color 0.3s, border-color 0.3s;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}

#contactsTable input[type="checkbox"]:checked {
    background-color: #333;
    border-color: #333;
}

#contactsTable input[type="checkbox"]:checked::after {
    content: '\2714';
    display: block;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    line-height: 18px;
}

/* Action Buttons Styles */
.action-buttons {
    margin-bottom: 20px;
}

.action-buttons button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

.action-buttons button:hover {
    background-color: #333;
}

/* Add Contacts Button Styles */
#addContactsButton {
    background-color: #001e78;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 20px;
}

#addContactsButton:hover {
    background-color: #001e78;
}

/* Pagination Styles */
.contacts-pagination {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.contacts-pagination button {
    background-color: #000;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

.contacts-pagination button:hover {
    background-color: #333;
}

.contacts-pagination button:disabled {
    background-color: #666;
    cursor: not-allowed;
}

/* Campaign Tabs Styles */
.campaign-tabs {
    margin-bottom: 20px;
    border-bottom: solid;
}

.campaign-tabs button {
    background-color: #f0f0f0;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    color: #333;
}

.campaign-tabs button.active {
    background-color: #000;
    color: #fff;
}

/* Campaign Title and Edit Button Container */
.campaign-title-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

#campaignTitle {
    margin: 0;
    margin-right: 10px;
}

#editTitleButton {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#editTitleButton:hover {
    background-color: #e0e0e0;
}

/* Style for the input when editing the title */
#campaignTitle input[type="text"] {
    font-size: 24px;
    font-weight: bold;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .campaign-title-container {
        flex-direction: column;
        align-items: flex-start;
    }

    #campaignTitle {
        margin-bottom: 10px;
    }

    #editTitleButton {
        align-self: flex-start;
    }
}

/* Email List Styles */

.email-item {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 10px;
}

.email-number {
    background: #001e780f;
    color: #001e78;
    width: 30px;
    padding: 10px;
    border-radius: 20px;
}

/* Add Email Step Button Styles */
#addEmailStepButton {
    background-color: #001e78;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 20px;
}

#addEmailStepButton:hover {
    background-color: #001e78;
}

/* Responsive styles */
@media (max-width: 768px) {
    #contactsTable {
        font-size: 12px;
    }

    #contactsTable th,
    #contactsTable td {
        padding: 8px 10px;
    }

    .action-buttons button,
    .contacts-pagination button,
    #addContactsButton,
    #addEmailStepButton {
        font-size: 12px;
        padding: 8px 12px;
    }

    .campaign-tabs button {
        font-size: 14px;
        padding: 8px 15px;
    }
}

/* General Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 90vh;
    overflow-y: auto;
}

/* Add to Campaign Popup Styles */
#add-to-campaign-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#add-to-campaign-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#add-to-campaign-popup .popup-header h2 {
    font-size: 24px;
    margin: 0;
}

#add-to-campaign-popup .close-btn {
    font-size: 24px;
    color: #001e78;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#add-to-campaign-popup .popup-body {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

#add-to-campaign-popup label {
    margin-bottom: 10px;
    font-weight: bold;
}

#add-to-campaign-popup select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 20px;
}

#add-to-campaign-popup #add-to-campaign-btn {
    padding: 10px 20px;
    background-color: #001e78;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#add-to-campaign-popup #add-to-campaign-btn:hover {
    background-color: #001e78;
}

#add-to-campaign-popup .notificationSmall3 {
    margin-top: 20px;
}

/* Email Campaigns Popup Styles */
#email-campaigns-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#email-campaigns-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#email-campaigns-popup .popup-header h2 {
    font-size: 24px;
    margin: 0;
}

#email-campaigns-popup .close-btn {
    font-size: 24px;
    color: #001e78;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#email-campaigns-popup .popup-body {
    display: flex;
    flex-direction: column;
}

#email-campaigns-popup .form-group {
    margin-bottom: 15px;
}

#email-campaigns-popup .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#email-campaigns-popup .form-group input[type="text"],
#email-campaigns-popup .form-group input[type="email"],
#email-campaigns-popup .form-group select,
#email-campaigns-popup .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

#email-campaigns-popup .connect-mailbox {
    display: flex;
    gap: 10px;
}

#email-campaigns-popup .mailbox-btn {
    padding: 10px 15px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Custom Dropdown for Dynamic Variables */
#email-campaigns-popup .custom-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

#email-campaigns-popup .dropdown-toggle {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #000;
}

#email-campaigns-popup .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}

#email-campaigns-popup .dropdown-menu.show {
    display: block;
}

#email-campaigns-popup .dropdown-menu li {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
    cursor: pointer;
}

#email-campaigns-popup .dropdown-menu li:hover {
    background-color: #f5f5f5;
}

#email-campaigns-popup .dynamic-variables-group {
    position: relative;
    z-index: 1000;
}
/* Adjust the AI input and generate button layout */
#email-campaigns-popup .dynamic-variables-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

#email-campaigns-popup #ai-input {
    flex: 1;
    min-width: 200px;
}

#email-campaigns-popup .generate-ai-btn {
    white-space: nowrap;
}

#email-campaigns-popup .email-body {
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

#email-campaigns-popup .formatting-toolbar {
    background-color: #f0f0f0;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

#email-campaigns-popup #email-body-editor {
    min-height: 200px;
    padding: 10px;
}

#email-campaigns-popup .send-email-btn,
#email-campaigns-popup .create-email-btn,
#email-campaigns-popup .edit-email-btn,
#email-campaigns-popup .add-to-campaign-btn {
    padding: 10px 20px;
    background-color: #001e78;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

#email-campaigns-popup .send-email-btn:hover,
#email-campaigns-popup .create-email-btn:hover,
#email-campaigns-popup .edit-email-btn:hover,
#email-campaigns-popup .add-to-campaign-btn:hover {
    background-color: #001e78;
}

/* Small Popup Styles */
.small-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.small-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.small-popup .popup-header h2 {
    font-size: 20px;
    margin: 0;
}

.small-popup .close-btn {
    font-size: 24px;
    color: #001e78;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.small-popup .popup-body {
    display: flex;
    flex-direction: column;
}

.small-popup .form-group {
    margin-bottom: 15px;
}

.small-popup .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.small-popup .form-group input[type="text"],
.small-popup .form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.small-popup #add-sendgrid-btn {
    padding: 10px 20px;
    background-color: #001e78;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.small-popup #add-sendgrid-btn:hover {
    background-color: #001e78;
}

.small-popup a {
    color: #001e78;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
}

.small-popup a:hover {
    text-decoration: underline;
}

/* Notification Styles */
.notificationSmall,
.notificationSmall2,
.notificationSmall3 {
    display: none;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

.notificationSmall.success,
.notificationSmall2.success,
.notificationSmall3.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notificationSmall.error,
.notificationSmall2.error,
.notificationSmall3.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notificationSmall.warning,
.notificationSmall2.warning,
.notificationSmall3.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.error-message {
    display: none; /* Hidden by default */
    color: red;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

.error-message.visible {
    display: block;
}
/* Campaign Page Actions */

.input-error {
    border-color: #f44336;
}

.email-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.email-actions button, .action-buttons button {
    margin-left: 10px;
    padding: 5px 10px;
    background: #001e780f;
    color: #001e78;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.email-actions button:hover, .action-buttons button:hover {
    background-color: #e0e0e0;
}

.edit-button {
    color: #333;
}

.pause-button {
    color: #333;
}

.delete-button {
    color: #333;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.contact-item input[type="checkbox"] {
    margin-right: 10px;
}

.contact-item .person-name, .contact-item .job-title, .contact-item .organization-name, .contact-item .last-email-received {
    flex: 2;
}

.contact-item .status {
    flex: 1;
}

.action-buttons {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

/* Styles for API Key section */
.info-item .copy-btn,
.info-item .refresh-btn {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.info-item .copy-btn:hover,
.info-item .refresh-btn:hover {
    background-color: #e0e0e0;
}

/* Styles for connected emails list */
.connected-emails {
    list-style-type: none;
    padding: 0;
}

.connected-emails li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.connected-emails .remove-btn {
    color: #ff0000;
    cursor: pointer;
    font-weight: bold;
}



/* Login page styles */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f2f5;
}

.login-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 320px;
    box-sizing: border-box;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.centered-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.centered-form label {
    margin-bottom: 0.5rem;
}

.centered-form input[type="email"],
.centered-form input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #001e78;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    box-sizing: border-box;
}

.submit-btn:hover {
    background-color: #001e78;
}

#forgotPassword {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #007bff;
    text-decoration: none;
}

#forgotPassword:hover {
    text-decoration: underline;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 2rem;
    border: 1px solid #888;
    width: 320px;
    border-radius: 8px;
    box-sizing: border-box;
    position: relative;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1rem;
}

.close {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 24px;
    cursor: pointer;
}

/* Onboarding Popup Styles */
.onboarding-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
}

.onboarding-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.onboarding-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.onboarding-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #666;
}

.onboarding-content .centered-form {
    display: flex;
    flex-direction: column;
}

.onboarding-content label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.onboarding-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    resize: vertical;
}

.onboarding-content .submit-btn {
    padding: 12px 20px;
    background-color: #001e78;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.onboarding-content .submit-btn:hover {
    background-color: #001e78;
}

.onboarding-content .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #001e78;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    line-height: 1;
}

.onboarding-content .close-btn:hover {
    color: #001e78;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .onboarding-content {
        margin: 10% auto;
        padding: 20px;
    }

    .onboarding-content h3 {
        font-size: 1.3rem;
    }

    .onboarding-content p {
        font-size: 0.9rem;
    }

    .onboarding-content label {
        font-size: 0.9rem;
    }

    .onboarding-content textarea {
        font-size: 0.9rem;
    }

    .onboarding-content .submit-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Settings Page Styles */
.settings-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.your-information h2,
.your-mailboxes h2 {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.save-btn {
    background-color: #001e78;
    width: 100px;
    background: #001e78;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.save-btn:hover {
    background-color: #001e78;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-weight: bold;
    margin-bottom: 5px;
}

.info-item input[type="text"],
.info-item input[type="email"],
.info-item input[type="url"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}

#changePasswordButton {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#changePasswordButton:hover {
    background-color: #e0e0e0;
}

.info-item .copy-btn,
.info-item .refresh-btn {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.info-item .copy-btn:hover,
.info-item .refresh-btn:hover {
    background-color: #e0e0e0;
}

.credits-info {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.credits-info p {
    margin-bottom: 10px;
}

.note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.cancel-subscription {
    color: #333;
    border: none;
    font-size: 12px;
    cursor: pointer;
    margin-top: 20px;
    padding: 0px;
    background-color: #fff;
    background: transparent;
    width:200px;
}

.cancel-subscription:hover {
    color: #c82333;
}

.connected-emails {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

.connected-emails li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.connected-emails .remove-btn {
    background-color: transparent;
    color: #dc3545;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s ease;
}

.connected-emails .remove-btn:hover {
    color: #c82333;
}

/* API Key Section Styles */
.info-item.api-key-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item.api-key-section label {
    font-weight: bold;
}

.api-key-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-key-container input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.api-key-container .copy-btn,
.api-key-container .refresh-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.api-key-container .copy-btn:hover,
.api-key-container .refresh-btn:hover {
    background-color: #e0e0e0;
}

/* Change Password Popup Styles */
#changePasswordPopup {
    width: 90%;
    max-width: 400px;
}

#changePasswordPopup .popup-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    position: relative;
}

#changePasswordPopup h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

#changePasswordPopup input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

#changePasswordPopup #confirmChangePassword {
    width: 100%;
    padding: 12px;
    background-color: #001e78;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

#changePasswordPopup #confirmChangePassword:hover {
    background-color: #001e78;
}

#changePasswordPopup .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #001e78;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#changePasswordPopup .close-btn:hover {
    color: #001e78;
}

/* Responsive styles */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .settings-container {
        padding: 10px;
    }

    .your-information h2,
    .your-mailboxes h2 {
        font-size: 20px;
    }
}

#cancellationPopup {
    max-width: 500px;
    width: 90%;
}

#cancellationPopup .popup-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    position: relative;
}

#cancellationPopup h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

#cancellationPopup p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #666;
}

#cancellationPopup textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
}

#cancellationPopup #submitCancellation {
    padding: 12px 20px;
    background-color: #001e78;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#cancellationPopup #submitCancellation:hover {
    background-color: #001e78;
}

#cancellationPopup .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #001e78;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#cancellationPopup .close-btn:hover {
    color: #000;
}

/* Enrichment styles */
.enrichment-row {
    background-color: #e6f7e6;
}

.enrichment-status {
    display: flex;
    align-items: center;
    background-color: #e6f7e6;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.magnifying-glass-icon {
    margin-right: 5px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.table-cell-content {
    display: inline-block;
    max-width: 200px; /* Adjust this value as needed */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Optional: Style for the tooltip */
.table-cell-content:hover::after {
    content: attr(title);
    position: absolute;
    background: #f9f9f9;
    color: #333;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    z-index: 1000;
    white-space: normal;
    max-width: 300px; /* Adjust as needed */
    word-wrap: break-word;
}

/* info columns */

.info-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.info-column {
    flex: 1 1 100%;
    margin-bottom: 20px;
}

.info-column h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.info-column ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-width: 300px;
}

.info-column li {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.info-column li:hover {
    color: #333;
}

@media (min-width: 768px) {
    .info-column {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (min-width: 1024px) {
    .info-column {
        flex: 1 1 calc(33.333% - 20px);
    }
    
    .info-column h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .info-column li {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 10px;
    }
}
/* Company Profile Styles */
.company-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.company-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.company-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-right: 20px;
}

.company-header h1 {
    font-size: 36px;
    color: #333;
    margin: 0;
}

.company-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.quick-info-item {
    display: flex;
    align-items: center;
}

.quick-info-item i {
    margin-right: 10px;
    color: #001e78;
}

.company-description {
    margin-bottom: 40px;
}

.company-description h2,
.info-column h2,
.social-links h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #001e78;
    padding-bottom: 5px;
}

.company-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.info-columns {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.info-column {
    flex: 1;
}

.info-column ul {
    list-style-type: none;
    padding: 0;
}

.info-column li {
    margin-bottom: 10px;
}

.info-column strong {
    font-weight: 600;
    color: #555;
}

.social-links ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

.social-links a {
    text-decoration: none;
    color: #001e78;
    font-weight: bold;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.social-links a i {
    margin-right: 5px;
}

.social-links a:hover {
    color: #0c7a00;
}


.technology-stack,
.market-presence,
.leadership,
.products-services {
    margin-bottom: 40px;
}

.technology-stack h2,
.market-presence h2,
.leadership h2,
.products-services h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #001e78;
    padding-bottom: 5px;
}

.technology-stack p,
.market-presence p,
.leadership p,
.products-services p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.leadership,
.employees {
    margin-bottom: 40px;
}

.leadership h2,
.employees h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #001e78;
    padding-bottom: 5px;
}

.leadership ul,
.employees ul {
    list-style-type: none;
    padding: 0;
}

.leadership li,
.employees li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
}

.leadership a,
.employees a {
    color: #001e78;
    text-decoration: none;
}

.leadership a:hover,
.employees a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .company-header {
        flex-direction: column;
        text-align: center;
    }

    .company-logo {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .info-columns {
        flex-direction: column;
    }
}
/* Directory pages styling */

:root {
    --brand-green: #001e78;
    --brand-green-hover: #001e78;
}

.directory-container,
.company-directory-container,
.company-directory-letter-container,
.company-directory-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    color: #333;
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Alphabet navigation */
.alphabet-nav {
    margin: 2rem 0;
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
}

.alphabet-nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.alphabet-nav li {
    margin: 0.3rem;
}

.alphabet-nav a {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    background-color: var(--brand-green);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.alphabet-nav a:hover,
.alphabet-nav a.active {
    background-color: var(--brand-green-hover);
}

/* Company list */
.company-list {
    list-style-type: none;
    padding: 0;
}

.company-list li {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.company-list li:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.company-list h3 {
    color: var(--brand-green);
    margin-bottom: 0.5rem;
}

.company-list p {
    color: #666;
}


/* Directory options */
.directory-options {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.directory-option {
    flex-basis: 48%;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.directory-option h2 a {
    color: var(--brand-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.directory-option h2 a:hover {
    color: var(--brand-green-hover);
}

/* Directory benefits */
.directory-benefits ul,
.directory-usage ol {
    padding-left: 1.5rem;
    color: #666;
}

.directory-benefits li,
.directory-usage li {
    margin-bottom: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .directory-options {
        flex-direction: column;
    }

    .directory-option {
        flex-basis: 100%;
        margin-bottom: 1rem;
    }

    .alphabet-nav ul {
        justify-content: flex-start;
    }

    .alphabet-nav li {
        margin: 0.2rem;
    }

    .alphabet-nav a {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
}
/* Blog Page Styles */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

.blog-list {
    list-style-type: none;
    padding: 0;
}

.blog-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.blog-item h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #001e78;
}

.blog-item h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.blog-item h2 a:hover {
    color: #001e78;
}

.blog-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.blog-summary {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #001e78;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    color: #001e78;
    text-decoration: underline;
}
/* Individual Blog Article Styles */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-article h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.blog-article .blog-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
}

.blog-content {
    font-size: 1rem;
    color: #333;
    line-height: 1.8;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.blog-content h2, .blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #001e78;
}

.blog-content a {
    color: #001e78;
    text-decoration: underline;
}

.blog-content a:hover {
    color: #001e78;
}

/* Target Audience Section */
.target-audience {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.target-audience .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    /* Override any inherited display property */
    display: block; /* Ensure the container behaves as a block element */
}

.centered-heading {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.audience-columns {
    display: flex; /* Flex container for the columns */
    justify-content: space-between;
    gap: 2rem;
}

.for-column, .not-for-column {
    flex: 1;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.for-column h3, .not-for-column h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.for-column ul, .not-for-column ul {
    list-style-type: none;
    padding-left: 0;
}

.for-column li, .not-for-column li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

.for-column {
    border-left: 4px solid #001e78;
}

.not-for-column {
    border-left: 4px solid #dc3545;
}

@media (max-width: 768px) {
    .audience-columns {
        flex-direction: column;
    }

    .for-column, .not-for-column {
        margin-bottom: 2rem;
    }
}

/* Add at the end of your CSS file */

/* Display states */
.display-none {
    display: none;
}

.display-block {
    display: block;
}

/* Popup visibility classes */
.popup-visible {
    display: block;
}

.popup-hidden {
    display: none;
}

/* Debug styles */
pre {
    border: 1px solid #ddd;
    margin: 1em 0;
    padding: 1em;
    background: #f8f9fa;
}

code {
    color: #e83e8c;
    background-color: #f8f9fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

.code-block-container {
    position: relative;
    margin: 1.5em 0;
    border: 2px solid #007bff;  /* Make it obvious where our containers are */
    border-radius: 6px;
    overflow: hidden;
}

.code-block-container pre {
    margin: 0;
    border: none;
    background-color: #f8f9fa;
}

.code-block-container code {
  display: block;
    padding: 1em;
  color: #333;
  background: none;
}

/* Update code block styles to preserve formatting during typing */
.code-block-container {
    position: relative;
    margin: 1.5em 0;
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    overflow: hidden;
}

.code-block-container pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 14px;
    line-height: 1.45;
    color: #24292e;
}

.code-block-container code {
    padding: 0;
    margin: 0;
    background-color: transparent;
    border: 0;
    white-space: pre;
}

/* Style for inline code */
:not(pre) > code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: #f6f8fa;
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.code-language {
  font-size: 12px;
  color: #666;
  font-family: monospace;
}

.copy-button {
  padding: 4px 8px;
  font-size: 12px;
  color: #666;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

/* Pygments syntax highlighting styles */
.highlight {
  padding: 16px;
  overflow-x: auto;
}

.highlight pre {
  margin: 0;
}

.icon-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 10px;
}

.icon-container button {
  margin-right: 10px;
  padding: 10px 20px;
  background: #001e780f;
  color: #001e78;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

.icon-container button:hover {
  background-color: #e0e0e0;
}

.chat-messages table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-messages th,
.chat-messages td {
  padding: 12px 15px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e0e0e0;
}

.chat-messages th {
  background-color: #ffffff;
  color: #333;
  font-weight: bold;
  border-bottom: 2px solid #e0e0e0;
}

.chat-messages tr:last-child td {
  border-bottom: none;
}

.chat-messages tr:nth-child(even) {
  background-color: #f9f9f9;
}

.chat-messages tr:hover {
  background-color: #f0f0f0;
}

.chat-messages th:first-child,
.chat-messages td:first-child {
  width: 40px;
  padding: 0;
  text-align: center;
}

.chat-messages input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #333;
  border-radius: 3px;
  outline: none;
  transition: background-color 0.3s, border-color 0.3s;
  cursor: pointer;
  margin: 0;
  vertical-align: middle;
}

.chat-messages input[type="checkbox"]:checked {
  background-color: #333;
  border-color: #333;
}

.chat-messages input[type="checkbox"]:checked::after {
  content: '\2714';
  display: block;
  text-align: center;
  color: #ffffff;
  font-size: 14px;
  line-height: 18px;
}

.checkbox-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 12px 0;
}

.unlock-email-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 6px 12px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  margin: 2px 2px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.unlock-email-btn:hover {
  background-color: #45a049;
}

.chat-messages .keywords,
.chat-messages .company {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .chat-messages table {
    font-size: 12px;
  }

  .chat-messages th,
  .chat-messages td {
    padding: 8px 10px;
  }

  .chat-messages .keywords,
  .chat-messages .company {
    max-width: 100px;
  }
}

/* Thinking and Searching message styles */
.message.assistant-message.thinking,
.message.assistant-message.searching {
  font-style: italic;
  color: #888;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* Chat form styles */
.chat-form-container {
  position: fixed;
  bottom: 20px;
  left: 270px; /* 250px sidebar width + 20px margin */
  right: 20px;
  background-color: #ffffff;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease;
  z-index: 1000;
  border: 1px solid #e0e0e0;
  max-width: 800px;
}

.sidebar.collapsed ~ .main-content .chat-form-container {
  left: 80px; /* 60px collapsed sidebar width + 20px margin */
}

#chatForm {
  display: flex;
  align-items: center;
  padding: 10px;
  margin-top: 0px;
}

#userQuery {
  flex-grow: 1;
  padding: 12px 15px;
  border: none;
  background: transparent;
  font-size: 16px;
  outline: none;
}

#chatForm button {
  background: #ffffff00;
  color: #b3b3b3;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  padding: 0;
}

#chatForm button:hover {
  background-color: #6b6d6b;
  color: #fff;
}

#chatForm button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Adjustments for mobile view */
@media (max-width: 768px) {
  .chat-form-container {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  #userQuery {
    font-size: 14px;
    padding: 10px 12px;
  }

  #chatForm button {
    width: 36px;
    height: 36px;
  }

  #chatForm button svg {
    width: 18px;
    height: 18px;
  }
}

/* master checkbox popup */

.master-checkbox-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.master-checkbox-popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.master-checkbox-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
}

.master-checkbox-popup-content p {
  margin-bottom: 15px;
  font-weight: bold;
}

.master-checkbox-select-max,
.master-checkbox-select-current-page {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #000;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.master-checkbox-select-max:hover,
.master-checkbox-select-current-page:hover {
  background-color: #e0e0e0;
}

.main-content {
  width: calc(100%);  /* Account for both sidebar (250px) and extras column (300px) */
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  margin-left: 250px;
  margin-right: 300px;  /* Add margin to prevent content from flowing under extras column */
  transition: margin-left 0.3s ease;
}

.chat-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;  /* Add some padding to prevent content from touching the scrollbar */
}

form {
  display: flex;
  margin-top: 20px;
}

input[type="text"], input[type="email"], input[type="password"] {
  flex: 1;
  padding: 10px;
  margin-right: 10px;
  border: 1px solid #ccc;
}

input[type="submit"], button {
    padding: 10px 20px;
    /* background-color: #000; */
    border: none;
    color: #fff;
    cursor: pointer;
    width: 100%;
    background: linear-gradient(135deg, #001e78, #00ff8c);
    font-weight: 700;
    border-radius: 5px;
}

.pagination, .campaigns-pagination, .contacts-pagination {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

.pagination button, .campaigns-pagination button, .contacts-pagination button {
  margin: 0 5px;
  padding: 5px 10px;
  background-color: #000000;
  border-radius: 5px;
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.pagination-button {
  background-color: black;
  color: white;
  border: none;
  padding: 10px 15px;
  margin-right: 5px;
  cursor: pointer;
  font-size: 14px;
}

.pagination-button:hover {
  background-color: #333; /* Optional: darker shade on hover */
}

.pagination-button:disabled {
  background-color: #666;
  cursor: not-allowed;
}

.message { margin-bottom: 10px; }
.user-message { text-align: right; }
.assistant-message { text-align: left; }

.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f4f6;
  border-top: 2px solid #001e78;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 5px;
  vertical-align: middle;
}

@keyframes spin { 
  0% { transform: rotate(0deg); } 
  100% { transform: rotate(360deg); } 
}

/* Mobile-friendly styles for the assistant page */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .main-content {
    width: 100%;  /* Full width on very small screens */
    margin-left: 0;
  }

  .chat-container {
    height: calc(100vh - 120px); /* Adjust based on your top bar height */
  }

  .chat-messages {
    max-height: calc(100vh - 200px);
  }

  #chatForm input[type="text"] {
    width: 100%;
    margin-bottom: 0px !important;
  }

  #chatForm input[type="submit"] {
    width: 100%;
  }

  /* Adjustments for the results table */
  table {
    font-size: 14px;
  }

  table th, table td {
    padding: 8px 4px;
  }

  .button-placeholder button,
  .unlock-email-btn {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* Adjustments for action buttons */
  .icon-container {
    flex-direction: column;
    align-items: stretch;
  }

  .icon-container button {
    margin-bottom: 10px;
  }

  /* Adjustments for pagination */
  .pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination button {
    margin-bottom: 10px;
  }
}

/* General improvements for better mobile experience */
input[type="text"], input[type="email"], input[type="password"], textarea {
  font-size: 16px; /* Prevents zoom on focus in iOS */
}

button {
  touch-action: manipulation; /* Improves touch response */
}

.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #4CAF50;
  color: white;
  padding: 10px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 2000; /* Increase this value */
}

#notification {
  z-index: 9999; /* This should be higher than any other z-index in your stylesheet */
}

.notification.show {
  opacity: 1;
}

.download-icon {
  cursor: pointer;
  margin-bottom: 10px;
}

.campaigns-container {
  width: 80%;
  margin: 20px auto;
  background: white;
  padding: 20px;
}

/* Campaigns Table Styles */
#campaignsTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

#campaignsTable th,
#campaignsTable td {
  padding: 12px 15px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e0e0e0;
}

#campaignsTable th {
  background-color: #ffffff;
  color: #333;
  font-weight: bold;
  border-bottom: 2px solid #e0e0e0;
}

#campaignsTable tr:last-child td {
  border-bottom: none;
}

#campaignsTable tr:nth-child(even) {
  background-color: #f9f9f9;
}

#campaignsTable tr:hover {
  background-color: #f0f0f0;
}

#campaignsTable th:first-child,
#campaignsTable td:first-child {
  width: 40px;
  padding: 0;
  text-align: center;
}

#campaignsTable input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #333;
  border-radius: 3px;
  outline: none;
  transition: background-color 0.3s, border-color 0.3s;
  cursor: pointer;
  margin: 0;
  vertical-align: middle;
}

#campaignsTable input[type="checkbox"]:checked {
  background-color: #333;
  border-color: #333;
}

#campaignsTable input[type="checkbox"]:checked::after {
  content: '\2714';
  display: block;
  text-align: center;
  color: #ffffff;
  font-size: 14px;
  line-height: 18px;
}

/* Campaign Actions Styles */
.campaign-actions {
  margin-bottom: 20px;
}

.campaign-actions button {
  background: #001e780f;
  color: #001e78;
  border: none;
  padding: 10px 15px;
  margin-right: 10px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 5px;
}

.campaign-actions button:hover {
  background-color: #e0e0e0;
}

/* New Campaign Button Styles */
#newCampaignButton {
  background-color: #001e78;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  margin-bottom: 20px;
}

#newCampaignButton:hover {
  background-color: #001e78;
}

/* Pagination Styles */
.campaigns-pagination {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.campaigns-pagination button {
  background-color: #000;
  color: white;
  border: none;
  padding: 10px 15px;
  margin-right: 10px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 5px;
}

.campaigns-pagination button:hover {
  background-color: #333;
}

.campaigns-pagination button:disabled {
  background-color: #666;
  cursor: not-allowed;
}

/* Responsive styles */
@media (max-width: 768px) {
  #campaignsTable {
    font-size: 12px;
  }

  #campaignsTable th,
  #campaignsTable td {
    padding: 8px 10px;
  }

  .campaign-actions button,
  .campaigns-pagination button {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* Contacts Table Styles */
#contactsTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

#contactsTable th,
#contactsTable td {
  padding: 12px 15px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e0e0e0;
}

#contactsTable th {
  background-color: #ffffff;
  color: #333;
  font-weight: bold;
  border-bottom: 2px solid #e0e0e0;
}

#contactsTable tr:last-child td {
  border-bottom: none;
}

#contactsTable tr:nth-child(even) {
  background-color: #f9f9f9;
}

#contactsTable tr:hover {
  background-color: #f0f0f0;
}

#contactsTable th:first-child,
#contactsTable td:first-child {
  width: 40px;
  padding: 0;
  text-align: center;
}

#contactsTable input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #333;
  border-radius: 3px;
  outline: none;
  transition: background-color 0.3s, border-color 0.3s;
  cursor: pointer;
  margin: 0;
  vertical-align: middle;
}

#contactsTable input[type="checkbox"]:checked {
  background-color: #333;
  border-color: #333;
}

#contactsTable input[type="checkbox"]:checked::after {
  content: '\2714';
  display: block;
  text-align: center;
  color: #ffffff;
  font-size: 14px;
  line-height: 18px;
}

/* Action Buttons Styles */
.action-buttons {
  margin-bottom: 20px;
}

.action-buttons button {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 10px 15px;
  margin-right: 10px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 5px;
}

.action-buttons button:hover {
  background-color: #333;
}

/* Add Contacts Button Styles */
#addContactsButton {
  background-color: #001e78;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  margin-top: 20px;
}

#addContactsButton:hover {
  background-color: #001e78;
}

/* Pagination Styles */
.contacts-pagination {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.contacts-pagination button {
  background-color: #000;
  color: white;
  border: none;
  padding: 10px 15px;
  margin-right: 10px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 5px;
}

.contacts-pagination button:hover {
  background-color: #333;
}

.contacts-pagination button:disabled {
  background-color: #666;
  cursor: not-allowed;
}

/* Campaign Tabs Styles */
.campaign-tabs {
  margin-bottom: 20px;
  border-bottom: solid;
}

.campaign-tabs button {
  background-color: #f0f0f0;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px 5px 0 0;
  margin-right: 5px;
  color: #333;
}

.campaign-tabs button.active {
  background-color: #000;
  color: #fff;
}

/* Campaign Title and Edit Button Container */
.campaign-title-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

#campaignTitle {
  margin: 0;
  margin-right: 10px;
}

#editTitleButton {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#editTitleButton:hover {
  background-color: #e0e0e0;
}

/* Style for the input when editing the title */
#campaignTitle input[type="text"] {
  font-size: 24px;
  font-weight: bold;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .campaign-title-container {
    flex-direction: column;
    align-items: flex-start;
  }

  #campaignTitle {
    margin-bottom: 10px;
  }

  #editTitleButton {
    align-self: flex-start;
  }
}

/* Email List Styles */

.email-item {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 10px;
}

.email-number {
    background: #001e780f;
    color: #001e78;
    width: 30px;
    padding: 10px;
    border-radius: 20px;
}

/* Add Email Step Button Styles */
#addEmailStepButton {
    background-color: #001e78;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 20px;
}

#addEmailStepButton:hover {
    background-color: #001e78;
}

/* Responsive styles */
@media (max-width: 768px) {
    #contactsTable {
        font-size: 12px;
    }

    #contactsTable th,
    #contactsTable td {
        padding: 8px 10px;
    }

    .action-buttons button,
    .contacts-pagination button,
    #addContactsButton,
    #addEmailStepButton {
        font-size: 12px;
        padding: 8px 12px;
    }

    .campaign-tabs button {
        font-size: 14px;
        padding: 8px 15px;
    }
}

/* General Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 90vh;
    overflow-y: auto;
}

/* Add to Campaign Popup Styles */
#add-to-campaign-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#add-to-campaign-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#add-to-campaign-popup .popup-header h2 {
    font-size: 24px;
    margin: 0;
}

#add-to-campaign-popup .close-btn {
    font-size: 24px;
    color: #001e78;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#add-to-campaign-popup .popup-body {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

#add-to-campaign-popup label {
    margin-bottom: 10px;
    font-weight: bold;
}

#add-to-campaign-popup select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 20px;
}

#add-to-campaign-popup #add-to-campaign-btn {
    padding: 10px 20px;
    background-color: #001e78;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#add-to-campaign-popup #add-to-campaign-btn:hover {
    background-color: #001e78;
}

#add-to-campaign-popup .notificationSmall3 {
    margin-top: 20px;
}

/* Email Campaigns Popup Styles */
#email-campaigns-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#email-campaigns-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#email-campaigns-popup .popup-header h2 {
    font-size: 24px;
    margin: 0;
}

#email-campaigns-popup .close-btn {
    font-size: 24px;
    color: #001e78;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#email-campaigns-popup .popup-body {
    display: flex;
    flex-direction: column;
}

#email-campaigns-popup .form-group {
    margin-bottom: 15px;
}

#email-campaigns-popup .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#email-campaigns-popup .form-group input[type="text"],
#email-campaigns-popup .form-group input[type="email"],
#email-campaigns-popup .form-group select,
#email-campaigns-popup .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

#email-campaigns-popup .connect-mailbox {
    display: flex;
    gap: 10px;
}

#email-campaigns-popup .mailbox-btn {
    padding: 10px 15px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Custom Dropdown for Dynamic Variables */
#email-campaigns-popup .custom-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

#email-campaigns-popup .dropdown-toggle {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #000;
}

#email-campaigns-popup .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}

#email-campaigns-popup .dropdown-menu.show {
    display: block;
}

#email-campaigns-popup .dropdown-menu li {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
    cursor: pointer;
}

#email-campaigns-popup .dropdown-menu li:hover {
    background-color: #f5f5f5;
}

#email-campaigns-popup .dynamic-variables-group {
    position: relative;
    z-index: 1000;
}
/* Adjust the AI input and generate button layout */
#email-campaigns-popup .dynamic-variables-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

#email-campaigns-popup #ai-input {
    flex: 1;
    min-width: 200px;
}

#email-campaigns-popup .generate-ai-btn {
    white-space: nowrap;
}

#email-campaigns-popup .email-body {
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

#email-campaigns-popup .formatting-toolbar {
    background-color: #f0f0f0;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

#email-campaigns-popup #email-body-editor {
    min-height: 200px;
    padding: 10px;
}

#email-campaigns-popup .send-email-btn,
#email-campaigns-popup .create-email-btn,
#email-campaigns-popup .edit-email-btn,
#email-campaigns-popup .add-to-campaign-btn {
    padding: 10px 20px;
    background-color: #001e78;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

#email-campaigns-popup .send-email-btn:hover,
#email-campaigns-popup .create-email-btn:hover,
#email-campaigns-popup .edit-email-btn:hover,
#email-campaigns-popup .add-to-campaign-btn:hover {
    background-color: #001e78;
}

/* Small Popup Styles */
.small-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.small-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.small-popup .popup-header h2 {
    font-size: 20px;
    margin: 0;
}

.small-popup .close-btn {
    font-size: 24px;
    color: #001e78;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.small-popup .popup-body {
    display: flex;
    flex-direction: column;
}

.small-popup .form-group {
    margin-bottom: 15px;
}

.small-popup .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.small-popup .form-group input[type="text"],
.small-popup .form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.small-popup #add-sendgrid-btn {
    padding: 10px 20px;
    background-color: #001e78;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.small-popup #add-sendgrid-btn:hover {
    background-color: #001e78;
}

.small-popup a {
    color: #001e78;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
}

.small-popup a:hover {
    text-decoration: underline;
}

/* Notification Styles */
.notificationSmall,
.notificationSmall2,
.notificationSmall3 {
    display: none;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

.notificationSmall.success,
.notificationSmall2.success,
.notificationSmall3.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notificationSmall.error,
.notificationSmall2.error,
.notificationSmall3.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notificationSmall.warning,
.notificationSmall2.warning,
.notificationSmall3.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.error-message {
    display: none; /* Hidden by default */
    color: red;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

.error-message.visible {
    display: block;
}
/* Campaign Page Actions */

.input-error {
    border-color: #f44336;
}

.email-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.email-actions button, .action-buttons button {
    margin-left: 10px;
    padding: 5px 10px;
    background: #001e780f;
    color: #001e78;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.email-actions button:hover, .action-buttons button:hover {
    background-color: #e0e0e0;
}

.edit-button {
    color: #333;
}

.pause-button {
    color: #333;
}

.delete-button {
    color: #333;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.contact-item input[type="checkbox"] {
    margin-right: 10px;
}

.contact-item .person-name, .contact-item .job-title, .contact-item .organization-name, .contact-item .last-email-received {
    flex: 2;
}

.contact-item .status {
    flex: 1;
}

.action-buttons {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

/* Styles for API Key section */
.info-item .copy-btn,
.info-item .refresh-btn {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.info-item .copy-btn:hover,
.info-item .refresh-btn:hover {
    background-color: #e0e0e0;
}

/* Styles for connected emails list */
.connected-emails {
    list-style-type: none;
    padding: 0;
}

.connected-emails li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.connected-emails .remove-btn {
    color: #ff0000;
    cursor: pointer;
    font-weight: bold;
}



/* Login page styles */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f2f5;
}

.login-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 320px;
    box-sizing: border-box;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.centered-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.centered-form label {
    margin-bottom: 0.5rem;
}

.centered-form input[type="email"],
.centered-form input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #001e78;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    box-sizing: border-box;
}

.submit-btn:hover {
    background-color: #001e78;
}

#forgotPassword {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #007bff;
    text-decoration: none;
}

#forgotPassword:hover {
    text-decoration: underline;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 2rem;
    border: 1px solid #888;
    width: 320px;
    border-radius: 8px;
    box-sizing: border-box;
    position: relative;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1rem;
}

.close {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 24px;
    cursor: pointer;
}

/* Onboarding Popup Styles */
.onboarding-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
}

.onboarding-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.onboarding-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.onboarding-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #666;
}

.onboarding-content .centered-form {
    display: flex;
    flex-direction: column;
}

.onboarding-content label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.onboarding-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    resize: vertical;
}

.onboarding-content .submit-btn {
    padding: 12px 20px;
    background-color: #001e78;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.onboarding-content .submit-btn:hover {
    background-color: #001e78;
}

.onboarding-content .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #001e78;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    line-height: 1;
}

.onboarding-content .close-btn:hover {
    color: #001e78;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .onboarding-content {
        margin: 10% auto;
        padding: 20px;
    }

    .onboarding-content h3 {
        font-size: 1.3rem;
    }

    .onboarding-content p {
        font-size: 0.9rem;
    }

    .onboarding-content label {
        font-size: 0.9rem;
    }

    .onboarding-content textarea {
        font-size: 0.9rem;
    }

    .onboarding-content .submit-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Settings Page Styles */
.settings-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.your-information h2,
.your-mailboxes h2 {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.save-btn {
    background-color: #001e78;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.save-btn:hover {
    background-color: #001e78;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-weight: bold;
    margin-bottom: 5px;
}

.info-item input[type="text"],
.info-item input[type="email"],
.info-item input[type="url"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}

#changePasswordButton {
    background-color: #f0f0f0;
    color: #fff;
    border: 1px solid #ccc;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#changePasswordButton:hover {
    background-color: #e0e0e0;
}

.info-item .copy-btn,
.info-item .refresh-btn {
    background-color: #f0f0f0;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.info-item .copy-btn:hover,
.info-item .refresh-btn:hover {
    background-color: #e0e0e0;
}

.credits-info {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.credits-info p {
    margin-bottom: 10px;
}

.note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.cancel-subscription {
    color: #333;
    border: none;
    font-size: 12px;
    cursor: pointer;
    margin-top: 20px;
    padding: 0px;
    background-color: #fff;
}

.cancel-subscription:hover {
    color: #c82333;
}

.connected-emails {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

.connected-emails li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.connected-emails .remove-btn {
    background-color: transparent;
    color: #dc3545;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s ease;
}

.connected-emails .remove-btn:hover {
    color: #c82333;
}

/* API Key Section Styles */
.info-item.api-key-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item.api-key-section label {
    font-weight: bold;
}

.api-key-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-key-container input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.api-key-container .copy-btn,
.api-key-container .refresh-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.api-key-container .copy-btn:hover,
.api-key-container .refresh-btn:hover {
    background-color: #e0e0e0;
}

/* Change Password Popup Styles */
#changePasswordPopup {
    width: 90%;
    max-width: 400px;
}

#changePasswordPopup .popup-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    position: relative;
}

#changePasswordPopup h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

#changePasswordPopup input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

#changePasswordPopup #confirmChangePassword {
    width: 100%;
    padding: 12px;
    background-color: #001e78;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

#changePasswordPopup #confirmChangePassword:hover {
    background-color: #001e78;
}

#changePasswordPopup .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #001e78;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#changePasswordPopup .close-btn:hover {
    color: #001e78;
}

/* Responsive styles */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .settings-container {
        padding: 10px;
    }

    .your-information h2,
    .your-mailboxes h2 {
        font-size: 20px;
    }
}

#cancellationPopup {
    max-width: 500px;
    width: 90%;
}

#cancellationPopup .popup-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    position: relative;
}

#cancellationPopup h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

#cancellationPopup p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #666;
}

#cancellationPopup textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
}

#cancellationPopup #submitCancellation {
    padding: 12px 20px;
    background-color: #001e78;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#cancellationPopup #submitCancellation:hover {
    background-color: #001e78;
}

#cancellationPopup .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #001e78;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#cancellationPopup .close-btn:hover {
    color: #000;
}

/* Enrichment styles */
.enrichment-row {
    background-color: #e6f7e6;
}

.enrichment-status {
    display: flex;
    align-items: center;
    background-color: #e6f7e6;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.magnifying-glass-icon {
    margin-right: 5px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.table-cell-content {
    display: inline-block;
    max-width: 200px; /* Adjust this value as needed */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Optional: Style for the tooltip */
.table-cell-content:hover::after {
    content: attr(title);
    position: absolute;
    background: #f9f9f9;
    color: #333;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    z-index: 1000;
    white-space: normal;
    max-width: 300px; /* Adjust as needed */
    word-wrap: break-word;
}

/* info columns */

.info-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.info-column {
    flex: 1 1 100%;
    margin-bottom: 20px;
}

.info-column h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.info-column ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-width: 300px;
}

.info-column li {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.info-column li:hover {
    color: #333;
}

@media (min-width: 768px) {
    .info-column {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (min-width: 1024px) {
    .info-column {
        flex: 1 1 calc(33.333% - 20px);
    }
    
    .info-column h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .info-column li {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 10px;
    }
}
/* Company Profile Styles */
.company-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.company-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.company-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-right: 20px;
}

.company-header h1 {
    font-size: 36px;
    color: #333;
    margin: 0;
}

.company-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.quick-info-item {
    display: flex;
    align-items: center;
}

.quick-info-item i {
    margin-right: 10px;
    color: #001e78;
}

.company-description {
    margin-bottom: 40px;
}

.company-description h2,
.info-column h2,
.social-links h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #001e78;
    padding-bottom: 5px;
}

.company-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.info-columns {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.info-column {
    flex: 1;
}

.info-column ul {
    list-style-type: none;
    padding: 0;
}

.info-column li {
    margin-bottom: 10px;
}

.info-column strong {
    font-weight: 600;
    color: #555;
}

.social-links ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

.social-links a {
    text-decoration: none;
    color: #001e78;
    font-weight: bold;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.social-links a i {
    margin-right: 5px;
}

.social-links a:hover {
    color: #0c7a00;
}


.technology-stack,
.market-presence,
.leadership,
.products-services {
    margin-bottom: 40px;
}

.technology-stack h2,
.market-presence h2,
.leadership h2,
.products-services h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #001e78;
    padding-bottom: 5px;
}

.technology-stack p,
.market-presence p,
.leadership p,
.products-services p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.leadership,
.employees {
    margin-bottom: 40px;
}

.leadership h2,
.employees h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #001e78;
    padding-bottom: 5px;
}

.leadership ul,
.employees ul {
    list-style-type: none;
    padding: 0;
}

.leadership li,
.employees li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
}

.leadership a,
.employees a {
    color: #001e78;
    text-decoration: none;
}

.leadership a:hover,
.employees a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .company-header {
        flex-direction: column;
        text-align: center;
    }

    .company-logo {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .info-columns {
        flex-direction: column;
    }
}
/* Directory pages styling */

:root {
  --brand-green: #001e78;
  --brand-green-hover: #001e78;
}

.directory-container,
.company-directory-container,
.company-directory-letter-container,
.company-directory-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

h1 {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  color: #333;
  font-size: 1.8rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: #666;
}

/* Alphabet navigation */
.alphabet-nav {
  margin: 2rem 0;
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 4px;
}

.alphabet-nav ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.alphabet-nav li {
  margin: 0.3rem;
}

.alphabet-nav a {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  background-color: var(--brand-green);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.alphabet-nav a:hover,
.alphabet-nav a.active {
  background-color: var(--brand-green-hover);
}

/* Company list */
.company-list {
  list-style-type: none;
  padding: 0;
}

.company-list li {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.company-list li:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.company-list h3 {
  color: var(--brand-green);
  margin-bottom: 0.5rem;
}

.company-list p {
  color: #666;
}


/* Directory options */
.directory-options {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.directory-option {
  flex-basis: 48%;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.directory-option h2 a {
  color: var(--brand-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

.directory-option h2 a:hover {
  color: var(--brand-green-hover);
}

/* Directory benefits */
.directory-benefits ul,
.directory-usage ol {
  padding-left: 1.5rem;
  color: #666;
}

.directory-benefits li,
.directory-usage li {
  margin-bottom: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .directory-options {
      flex-direction: column;
  }

  .directory-option {
      flex-basis: 100%;
      margin-bottom: 1rem;
  }

  .alphabet-nav ul {
      justify-content: flex-start;
  }

  .alphabet-nav li {
      margin: 0.2rem;
  }

  .alphabet-nav a {
      padding: 0.4rem 0.6rem;
      font-size: 0.9rem;
  }
}
/* Blog Page Styles */
.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.blog-container h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #333;
}

.blog-list {
  list-style-type: none;
  padding: 0;
}

.blog-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.blog-item h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #001e78;
}

.blog-item h2 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.blog-item h2 a:hover {
  color: #001e78;
}

.blog-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.blog-summary {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  color: #001e78;
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  color: #001e78;
  text-decoration: underline;
}
/* Individual Blog Article Styles */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.blog-article h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.blog-article .blog-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2rem;
}

.blog-content {
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

.blog-content h2, .blog-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #001e78;
}

.blog-content a {
  color: #001e78;
  text-decoration: underline;
}

.blog-content a:hover {
  color: #001e78;
}

/* Target Audience Section */
.target-audience {
  background-color: #f8f9fa;
  padding: 4rem 0;
}

.target-audience .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  /* Override any inherited display property */
  display: block; /* Ensure the container behaves as a block element */
}

.centered-heading {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #333;
}

.audience-columns {
  display: flex; /* Flex container for the columns */
  justify-content: space-between;
  gap: 2rem;
}

.for-column, .not-for-column {
  flex: 1;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.for-column h3, .not-for-column h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.for-column ul, .not-for-column ul {
  list-style-type: none;
  padding-left: 0;
}

.for-column li, .not-for-column li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

.for-column {
  border-left: 4px solid #001e78;
}

.not-for-column {
  border-left: 4px solid #dc3545;
}

@media (max-width: 768px) {
  .audience-columns {
      flex-direction: column;
  }

  .for-column, .not-for-column {
      margin-bottom: 2rem;
  }
}

/* Display states */
.display-none {
    display: none;
}

.display-block {
    display: block;
}

/* Popup visibility classes */
.popup-visible {
    display: block;
}

.popup-hidden {
    display: none;
}

/* Debug styles */
pre {
    border: 1px solid #ddd;
    margin: 1em 0;
    padding: 1em;
    background: #f8f9fa;
}

/* Mobile Citations and Videos Styles */
@media (max-width: 768px) {
  .mobile-citations-container {
    width: 100%;
    margin: 15px 0;
  }

  .mobile-videos-row {
    width: 100%;
    overflow-x: auto;
    padding: 15px;
    display: flex;
    gap: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

  .mobile-videos-row::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .mobile-video-container {
    flex: 0 0 280px;
    height: 157.5px; /* 16:9 aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    padding: 0; /* Remove any padding */
    margin: 0; /* Remove any margin */
    background: #000; /* Add black background to hide any gaps */
    display: flex; /* Ensure iframe fills container */
    align-items: stretch; /* Stretch iframe vertically */
  }

  .mobile-video-container iframe {
    border: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: block; /* Remove any inline spacing */
  }

  .mobile-sources-row {
    width: 100%;
    overflow-x: auto;
    padding: 10px; /* Reduced from 15px */
    display: flex;
    gap: 8px; /* Reduced from 15px */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0;
}

  .mobile-sources-row::-webkit-scrollbar {
    display: none;
  }

  .mobile-source-card {
    flex: 0 0 280px;
    max-height: 60px; /* Reduced from 100px */
    max-width: 150px;
    background: #f8f9fa;
    padding: 8px; /* Reduced from 15px */
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

  .mobile-source-card:hover {
    background: #f0f0f0;
  }

  .mobile-source-title {
    font-size: 11px; /* Reduced from 12px */
    font-weight: 500;
    color: #333;
    margin: 0; /* Remove margin */
    line-height: 1.2; /* Tighter line height */
    max-height: 2.4em; /* Show max 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mobile-source-domain {
  display: flex;
  align-items: center;
  gap: 4px; /* Reduced gap */
  font-size: 9px; /* Reduced from 10px */
  color: #666;
  margin-top: 2px; /* Minimal spacing between title and domain */
}

.mobile-source-domain img {
  width: 12px; /* Reduced from default */
  height: 12px; /* Reduced from default */
  border-radius: 2px;
}

  /* Hide desktop extras column on mobile */
  .extras-column {
    display: none !important;
  }
}

/* Update mobile styles to show generated image elements */
@media (max-width: 768px) {
  .extras-column {
    display: none !important;  /* Hide extras column on mobile */
  }

  /* Exception for generated image elements */
  .generated-image-container,
  .generate-image-btn {
    display: block !important;  /* Force display of image elements */
    width: 100%;
    margin: 10px 0;
  }

  /* Adjust image container for mobile */
  .generated-image-container {
    width: 100% !important;
    margin: 10px 0 !important;
    padding: 0 !important;
  }

  .generated-image {
    width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    object-fit: contain !important;
  }

  /* Ensure images expand properly when clicked */
  .generated-image.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95vw;
    max-height: 90vh;
    z-index: 1000;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
  }

  /* Adjust main content margins for mobile */
  .main-content {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 15px !important;
  }

  /* Add a semi-transparent overlay when image is expanded */
  .generated-image.expanded::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: -1;
  }

  /* Update mobile citations container to accommodate images */
  .mobile-citations-container {
    width: 100%;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
  }

  /* Place generate image button at the top of citations */
  .mobile-citations-container .generate-image-btn {
    order: -1;  /* Move to top */
    margin-bottom: 15px;
  }

  /* Ensure generated images appear properly */
  .mobile-citations-container .generated-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  /* Adjust loading state for mobile */
  .image-loading {
    width: 100%;
    height: 150px;  /* Smaller height for mobile */
    margin: 10px 0;
  }
}

code {
    color: #e83e8c;
    background-color: #f8f9fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

.code-block-container {
    position: relative;
    margin: 1.5em 0;
    border: 2px solid #007bff;  /* Make it obvious where our containers are */
    border-radius: 6px;
    overflow: hidden;
}

.code-block-container pre {
    margin: 0;
    border: none;
    background-color: #f8f9fa;
}

.code-block-container code {
  display: block;
    padding: 1em;
  color: #333;
  background: none;
}

/* Update code block styles to preserve formatting during typing */
.code-block-container {
    position: relative;
    margin: 1.5em 0;
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    overflow: hidden;
}

.code-block-container pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    white-space: pre !important; /* Force pre formatting */
    tab-size: 4;
}

.code-block-container code {
    display: block;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 14px;
    line-height: 1.45;
    color: #24292e;
    white-space: pre !important; /* Force pre formatting */
    word-wrap: normal !important; /* Prevent unwanted wrapping */
    padding: 0;
    margin: 0;
    background-color: transparent;
    border: 0;
    overflow: visible;
    tab-size: 4;
}

/* Fix spacing issues during typing */
.assistant-message pre {
    white-space: pre !important;
    word-wrap: normal !important;
    tab-size: 4;
}

.assistant-message code {
    white-space: pre !important;
    word-wrap: normal !important;
    tab-size: 4;
}

.citation-link {
  color: #001e78;
  text-decoration: none;
  padding: 0 2px;
  transition: all 0.2s ease;
}

.citation-link:hover {
  color: #003366;
  text-decoration: underline;
  background-color: rgba(0, 102, 204, 0.1);
}

.video-citation {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
}

.video-embed {
  margin-top: 10px;
}

.video-embed h4 {
  margin-bottom: 10px;
  color: #333;
}

.video-embed iframe {
  max-width: 100%;
  border: none;
  border-radius: 4px;
}

/* Add after the .assistant-message styles */

.message-container {
  display: flex;
  gap: 20px;
  width: 100%;
}

.message-content {
  flex: 1;
  min-width: 0; /* Prevents flex item from overflowing */
}

.citations-column {
  width: 300px;
  flex-shrink: 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e1e4e8;
  max-height: 500px;
  overflow-y: auto;
}

.youtube-embed {
  margin-bottom: 15px;
}

.youtube-embed iframe {
  width: 100%;
  border-radius: 8px;
  border: none;
}

.youtube-title {
  font-size: 14px;
  color: #333;
  margin: 5px 0;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .message-container {
    flex-direction: column;
  }
  
  .citations-column {
    width: 100%;
    max-height: none;
  }
}

a {
  color: #001e78;
}

/* Update container to support 3-column layout */
.container {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
}

/* Add styles for the extras column */
.extras-column {
  width: 320px;
  background-color: #ffffff;
  border-left: 0px solid #e0e0e0;
  padding: 20px;
  height: 100vh;
  overflow-y: auto;
  position: fixed;
  right: 0;
  top: 0;
}

/* Adjust for mobile responsiveness */
@media (max-width: 1024px) {
  .extras-column {
    display: none;  /* Hide extras column on mobile */
  }
  
  .main-content {
    width: calc(100% - 250px);  /* Only account for sidebar */
    margin-right: 0;  /* Remove right margin when extras column is hidden */
  }
}

@media (max-width: 768px) {
  .main-content {
    width: 100%;  /* Full width on very small screens */
    margin-left: 0;
  }
}

.video-block {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.video-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.2s ease-in-out;
}

/* Main featured video */
.video-container.prominent {
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: 15px; /* Add space between rows */
}

/* Smaller videos in second row */
.video-container.small {
  width: calc(50% - 8px); /* Account for gap between videos */
  aspect-ratio: 16/9;
}

/* Ensure proper spacing in mobile view */
@media (max-width: 768px) {
  .video-block {
    gap: 10px;
  }
  
  .video-container.small {
    width: 100%; /* Stack videos vertically on mobile */
  }
}

.video-thumbnail {
  width: 100%;
  height: auto;
  display: block;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.video-container:hover .video-overlay {
  opacity: 1;
}

.watch-button {
  background-color: #fff;
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.video-block {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.video-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.2s ease-in-out;
}

/* Main featured video - always full width */
.video-container.prominent {
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: 15px;
}

/* Smaller videos in second row */
.video-container.small {
  width: calc(50% - 8px);
  aspect-ratio: 16/9;
}

/* Single small video should take full width of its row */
.video-container.small:only-of-type {
  width: 100%;
}

/* Sources Block Styles */
.sources-block {
  margin-top: 30px;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
}

.sources-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.sources-heading h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.source-card {
  padding: 15px;
  border-radius: 8px;
  background: #f8f8f8;
  margin-bottom: 10px;
  transition: background-color 0.2s ease;
}

.source-card:hover {
  background: #f0f0f0;
}

.source-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.source-title {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
}

.source-domain {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
}

.source-domain img {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.source-description {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.citation-tooltip {
  position: fixed;
  z-index: 1000;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 12px;
  max-width: 300px;
  width: 100%;
  pointer-events: none;
  animation: fadeIn 0.2s ease-in-out;
}

.citation-tooltip .source-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.citation-tooltip .source-title {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.4;
}

.citation-tooltip .source-domain {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
}

.citation-tooltip .source-domain img {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.citation-tooltip .source-description {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Styles for the generated image */
.generated-image-container {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.generated-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.generated-image.expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.5);
  max-height: 90vh;
  max-width: 90vw;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.image-loading {
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.message.streaming {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.generate-image-btn {
  background: none;
  border: 1px dotted rgba(128, 128, 128, 0.3);
  border-radius: 8px;
  padding: 12px 16px; /* Slightly increased padding */
  display: inline-flex !important; /* Changed to inline-flex */
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #585858;
  margin-bottom: 10px;
  width: 100%; /* Changed from 100% to auto */
  min-width: 160px; /* Added minimum width */
  font-size: 14px; /* Added explicit font size */
  line-height: 1; /* Added to ensure proper text alignment */
}

.generate-image-btn:hover {
  background: rgba(128, 128, 128, 0.05); /* Very subtle hover effect */
  border-color: rgba(128, 128, 128, 0.5); /* Slightly darker border on hover */
}

.generate-image-btn svg {
  width: 16px; /* Reduced from 24px */
  height: 16px; /* Reduced from 24px */
  opacity: 0.8; /* Increased from 0.6 */
  flex-shrink: 0; /* Prevent icon from shrinking */
}

.emotional-connection {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #f9f9f9, #ffffff);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.emotional-connection .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.emotional-connection h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 30px;
    color: #2c3e50;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    width: 100%;
}

.emotional-connection p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: #5a6a7e;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .emotional-connection {
        padding: 40px 15px;
        min-height: 300px;
    }

    .emotional-connection .container {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .emotional-connection {
        padding: 30px 10px;
    }

    .emotional-connection .container {
        padding: 20px 15px;
    }
}

/* Add animation for the gradient */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero h1 {
    /* Add to existing h1 styles */
    background-size: 200% auto;
    animation: gradientFlow 5s ease infinite;
}

/* Optional: Add hover effect on the headline */
.hero h1:hover {
    background-size: 150% auto;
    transition: all 0.3s ease;
}

/* Add these styles for the testimonials section */

.testimonials {
    padding: 80px 20px;
    background: linear-gradient(to bottom right, #f8f9fa, #ffffff);
    position: relative;
    overflow: hidden;
}

.testimonials .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Changed from auto-fit to 3 columns */
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

/* Update responsive breakpoints */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .testimonial-content {
        padding: 20px;
    }
    
    .testimonial-content > p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    padding: 30px;
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: #3498db;
    opacity: 0.1;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
}

.testimonial-content > p {
    font-size: 1rem;
    line-height: 1.8;
    color: #5a6a7e;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0;
}

.author-info p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 5px 0 0;
}

/* Add these styles for the floating particles */

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #3498db22, #2c3e5022);
    border-radius: 50%;
    pointer-events: none;
    animation: float 15s infinite linear;
}

/* Create different sizes and starting positions for particles */
.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: -1s; width: 15px; height: 15px; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: -2s; width: 8px; height: 8px; }
.particle:nth-child(4) { left: 40%; top: 60%; animation-delay: -3s; width: 12px; height: 12px; }
.particle:nth-child(5) { left: 50%; top: 30%; animation-delay: -4s; }
.particle:nth-child(6) { left: 60%; top: 70%; animation-delay: -5s; width: 14px; height: 14px; }
.particle:nth-child(7) { left: 70%; top: 50%; animation-delay: -6s; width: 6px; height: 6px; }
.particle:nth-child(8) { left: 80%; top: 90%; animation-delay: -7s; }
.particle:nth-child(9) { left: 90%; top: 10%; animation-delay: -8s; width: 13px; height: 13px; }
.particle:nth-child(10) { left: 95%; top: 45%; animation-delay: -9s; width: 7px; height: 7px; }

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-100px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-200px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-300px) rotate(270deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(-400px) rotate(360deg);
        opacity: 0.8;
    }
}

/* Ensure main content stays above particles */
main {
    position: relative;
    z-index: 1;
}

/* Adjust particle visibility for mobile */
@media (max-width: 768px) {
    .particle {
        opacity: 0.4;
    }
}

/* Updated Carousel styles */
.carousel {
    position: relative;
    width: 100%;
    max-width: 800px; /* Add max-width for larger screens */
    margin: 0 auto;
    height: auto; /* Allow height to adjust based on content */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
    display: flex;
    width: 300%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother easing */
}

.carousel-slide {
    width: 33.333%;
    flex-shrink: 0; /* Prevent slides from shrinking */
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure full image is visible */
    max-height: 400px; /* Set a max height for larger screens */
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: #ffffff;
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .carousel {
        margin-bottom: 20px;
    }

    .carousel-slide img {
        max-height: 250px; /* Adjust max height for mobile */
    }

    .carousel-dots {
        bottom: 15px;
        gap: 8px;
        padding: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}

/* Add touch support */
.carousel {
  touch-action: pan-y pinch-zoom;
}

/* Pricing Toggle Styles */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
    padding: 10px;
    max-width: 300px;
}

.billing-toggle span {
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.billing-toggle span.active {
    color: #001e78;
    font-weight: 600;
}

/* Modern Toggle Switch */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    padding: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #ddd;
}

.toggle-switch:hover {
    background: #e8e8e8;
}

.toggle-switch input {
    display: none;
}

.toggle-switch .switch {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 26px;
    height: 26px;
    background: #001e78;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .switch {
    transform: translateX(30px);
}

p.guarantee {
  text-align: center;
}

/* Save Indicator */
.save-indicator {
    font-size: 14px;
    color: #001e78;
    margin-top: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.save-indicator.show {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .billing-toggle {
        gap: 15px;
        padding: 8px;
    }

    .billing-toggle span {
        font-size: 14px;
    }

    .toggle-switch {
        width: 50px;
        height: 26px;
    }

    .toggle-switch input:checked + .switch {
        transform: translateX(24px);
    }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
  }

  .nav-links.active {
    display: flex;
    max-height: 300px; /* Adjust as needed */
  }

  .menu-toggle {
    display: block;
    text-align: right;
  }
}

/* Landing Pages List Styles */
.landing-pages-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.landing-pages-container h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

.landing-page-item {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.landing-page-item h2 {
  margin-bottom: 0.5rem;
}

.landing-page-item h2 a {
  color: #001e78;
  text-decoration: none;
  transition: color 0.3s ease;
}

.landing-page-item h2 a:hover {
  color: #001e78;
}

.landing-page-item p {
  color: #666;
  line-height: 1.4;
}

/* Landing Pages List Styles */
.landing-pages-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.landing-pages-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #333;
  text-align: center; /* Added for better alignment */
}

.landing-pages-list {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Consistent spacing between items */
}

.landing-page-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.landing-page-item:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.landing-page-item h2 {
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
}

.landing-page-item h2 a {
  color: #001e78;
  text-decoration: none;
  transition: color 0.3s ease;
}

.landing-page-item h2 a:hover {
  color: #001e78;
}

.landing-page-item p {
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .landing-pages-container {
    padding: 1.5rem;
  }

  .landing-pages-container h1 {
    font-size: 2rem;
  }

  .landing-page-item {
    padding: 1rem;
  }

  .landing-page-item h2 {
    font-size: 1.5rem;
  }
}

.cta-button {
  background: linear-gradient(
      270deg,
      #001e78,
      #001e78,
      #001e78
  );
  background-size: 200% 200%;
  animation: gradientAnimation 6s ease infinite;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes gradientAnimation {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}

/* Review Page Styles*/
/* Base Layout and Typography */
.new_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* Header Styles */
.page_header {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  margin-bottom: 2rem;
}

.page_header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page_header h1 {
  position: relative;
  z-index: 2;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Introduction Paragraph */
.top_paragraph {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  color: #333;
}

/* Rating Criteria Section */
.cri_ttl {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.large_cri {
  font-size: 1.5rem;
  font-weight: 700;
}

.how_url {
  color: #001e78;
  text-decoration: none;
  font-weight: 600;
}

/* Criteria Icons */
.criteria_icons {
  display: flex;
  justify-content: space-around;
  margin-bottom: 3rem;
  text-align: center;
}

.cri_item {
  flex: 1;
  padding: 1rem;
}

.cri_icon {
  font-size: 2rem;
  color: #001e78;
  margin-bottom: 1rem;
}

.cri_txt {
  font-size: 1.1rem;
  color: #333;
}

/* Company Review Cards */
.solo_review {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  padding: 2rem;
  transition: transform 0.3s ease;
}

.solo_review:hover {
  transform: translateY(-2px);
}

.first_item {
  border: 2px solid #001e78;
}

.review_rank {
  margin-bottom: 1rem;
}

.rank_cnt {
  font-size: 1.5rem;
  font-weight: 700;
  color: #001e78;
}

.rank_cnt span {
  color: #666;
  font-size: 1rem;
  margin-left: 0.5rem;
}

/* Review Content Layout */
.ind_review_cnt {
  display: flex;
  gap: 2rem;
}

.review_logos img {
  max-width: 200px;
  height: auto;
  margin-bottom: 1rem;
}

.partner_text {
  color: #666;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

/* Star Ratings */
.review_stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.item_score {
  font-size: 2rem;
  font-weight: 700;
  color: #001e78;
  margin-bottom: 0.5rem;
}

.score_desc {
  color: #666;
}

/* Selling Points */
.selling_points {
  flex: 1;
}

.review_title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.single_point {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.point_icon {
  color: #001e78;
  margin-right: 0.5rem;
  padding-top: 0.25rem;
}

.point_txt {
  flex: 1;
  line-height: 1.4;
}

/* Detailed Analysis Section */
.detailed_analysis {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.company_review {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

/* Tables */
.fin_grade {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.fin_grade th,
.fin_grade td {
  padding: 1rem;
  border: 1px solid #ddd;
  text-align: left;
}

.fin_grade th {
  background: #f5f5f5;
  font-weight: 600;
}

/* CTA Buttons */
.learn_btn, 
.primary-button {
  display: inline-flex;
  align-items: center;
  background: #001e78;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.learn_btn:hover,
.primary-button:hover {
  background: #001555;
  transform: translateY(-1px);
}

.learn_btn i {
  margin-left: 0.5rem;
}

/* Conclusion Section */
.conclusion_section {
  background: #f8f9fa;
  padding: 3rem;
  border-radius: 8px;
  margin-top: 3rem;
}

.cta_final {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page_header {
      padding: 3rem 1rem;
  }

  .page_header h1 {
      font-size: 2rem;
  }

  .new_container {
      padding: 0 1rem;
  }

  .criteria_icons {
      flex-direction: column;
      gap: 2rem;
  }

  .ind_review_cnt {
      flex-direction: column;
  }

  .review_logos img {
      max-width: 150px;
  }

  .conclusion_section {
      padding: 1.5rem;
  }
}

/* Sentiment Analysis Box */
.sentiment {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.sentiment_ico {
  font-size: 2rem;
  color: #001e78;
  padding-right: 1rem;
}

.sent_cnt {
  font-size: 1rem;
  line-height: 1.6;
}

.sent_cnt ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

/* Table Notes */
.table_note {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Stars Wrap */
.stars_wrap {
  margin: 1rem 0;
}

.stars_cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.score {
  font-weight: 700;
  font-size: 1.2rem;
}

.ratingstar_cell {
  color: #666;
  margin-left: 1rem;
}