/* Import Google Font */
body {
  font-family: 'Poppins', sans-serif, "Segoe UI Emoji", "Apple Color Emoji";
}


html, body {
  max-width: 100%;
  overflow-x: hidden;
}

:root {
    --color-deep-indigo: #1E2235;
    --color-warm-terracotta: #E46C47;
    --color-off-white: #F5F3EF;
    --color-warm-gray: #A6A3A1;
    --header-height: 0px;
}

.wappbot-send-btn svg path {
  fill: #E46C47 !important;
}

#fixed-header {
  position: fixed;
  top: var(--header-height);
  width: 100%;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0px 2px 8px rgba(30, 34, 53, 0.15);
  transition: box-shadow 0.3s ease;
}

/* Universal navbar structure and alignment */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;   /* logos left, icons right */
  width: 100%;
  padding: 0.5rem 1rem;
  background-color: #fff;
  flex-wrap: nowrap;                /* keeps everything on one row by default */
}

.navbar-brand {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;                  /* allows tagline to move below on smaller screens */
  gap: 8px;
  white-space: normal;              /* allows wrapping of text */
  overflow: visible;
  text-overflow: unset;
  margin-right: auto;
}

.navbar-brand b {
  letter-spacing: 1px;
  color: var(--color-deep-indigo);
  font-size: 75%;
  display: inline-block;
  white-space: normal;
  line-height: 1.3;
  max-width: 100%;
}

/* Right-side elements: Home + Hamburger */
.navbar .d-flex.align-items-center {
  margin-left: auto;                /* ensures it sits at the far right */
  display: flex;
  align-items: center;
  gap: 12px;                        /* even spacing between icons */
}

/* Home icon color + hover transition */
.home-icon svg {
  color: var(--color-deep-indigo);
  transition: color 0.25s ease;
}

.home-icon:hover svg {
  color: var(--color-warm-terracotta);
}

/* Optional: tweak hamburger visibility and spacing */
.navbar-toggler {
  border: none;
  background: transparent;
  padding: 6px;
}

#sticky-title {
    position: sticky;
    top: calc(var(--header-height) + 80px); /* Adjust dynamically in JavaScript if needed */
    z-index: 999;
    background-color: #f0f8ff;
}

.navbar-brand img {
  margin-right: 10px;
}

/* Responsive Navbar Adjustments (mobile + tablet) */
@media (max-width: 768px) {
  /* Let the navbar be the positioning context */
  .navbar {
    position: relative;
    flex-wrap: wrap;           /* still allow brand/tagline to wrap */
    padding-left: 10px;
    padding-right: 64px;       /* reserve space for the icons on the right */
    min-height: 56px;          /* safe tap area */
  }

  /* Brand + tagline keep wrapping as before */
  .navbar-brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    white-space: normal;
    overflow: visible;
    justify-content: flex-start;
    text-align: left;
  }

  .navbar-brand b {
    flex-basis: 100%;
    font-size: 70%;
    line-height: 1.3;
    letter-spacing: 1px;
    text-align: center;        /* center just the tagline line */
  }

  /* PIN THE ICON GROUP TO THE TOP-RIGHT */
  .navbar .d-flex.align-items-center {
    position: absolute;
    top: 8px;                  /* stays at the top no matter how tall the brand gets */
    right: 10px;
    margin-left: 0;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 12px;
    z-index: 2;                /* above brand text if they overlap */
  }

  /* Collapsed menu below the brand block */
  .navbar-collapse {
    order: 3;
    flex-basis: 100%;
    flex-grow: 1;
    margin-top: 10px;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
}

/* Updated Hero Section */
.hero-section {
  background: var(--color-deep-indigo);
  color: var(--color-off-white);
  padding: 100px 0;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 600;
}

.hero-section p {
  font-size: 1.25rem;
}

.hero-section .btn-lg {
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}

.hero-section .btn-primary {
  background-color: var(--color-warm-terracotta);
  border-color: var(--color-warm-terracotta);
  color: #fff;
}

/* Features Section */
.features-section h5 {
  color: #006666; /* Slightly vibrant teal for emphasis */
  font-weight: 600;
}

/* Sign-Up Section */
.signup-section .btn-success {
  background-color: #00A3A3; /* Bright teal accent */
  border-color: #00A3A3;
  color: #F5F3EF;
}

/* Footer */
.footer {
  background-color: var(--color-warm-terracotta);
  color: var(--color-off-white);
}

/* Conversation Selector Specific Styles */
.conversation-selector .hero-section {
    padding: 20px;
    text-align: center;
}

.conversation-selector .hero-section h1 {
    font-size: 2rem;
    margin: 0;
}

.conversation-selector .hero-section p {
    font-size: 1rem;
}

.conversation-selector .dropdown-container {
    text-align: center;
    margin: 20px 0;
}

.conversation-selector .dropdown-container select {
    font-size: 1rem;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

/* Table Styling */
.conversation-selector table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.conversation-selector th, .conversation-selector td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.conversation-selector th {
    background: #004D4D; /* Deep teal */
    color: white;
}

.conversation-selector tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

#session-warning {
    animation: fadeIn 0.3s ease-in-out;
}

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


<!-- START - Stylesheet for Message reply Box -->

.message-type {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0 10px;
}

.message-type input {
    display: none;
}

.message-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f0f0f0;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.message-icon i {
    font-size: 24px;
    color: #007BFF;
    margin-bottom: 5px;
}

.message-icon span {
    font-size: 14px;
    color: #333;
}

.message-type input:checked + .message-icon {
    background: #007BFF;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
<!-- END - Stylesheet for Message reply Box -->

<!-- START Styled Loading Indicator when eail is being sent coz PHP mailer takes a few seconds to send the email -->
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.loading-spinner {
    margin-bottom: 20px;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.loading-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.loading-recipient {
    font-weight: bold;
    color: #0066cc;
}

.loading-subtext {
    font-size: 14px;
    color: #777;
    margin-top: 10px;
}

.loading-company {
    margin-top: 20px;
    font-size: 12px;
    color: #999;
}
<!-- END Styled Loading Indicator when eail is being sent coz PHP mailer takes a few seconds to send the email -->

/* ————— Landing Asset Styling ————— */
#landingAsset {
  /* ensure it sits above any background */
  position: relative;
  z-index: 1;
}

/* Hero inside landingAsset */
#landingAsset .hero {
  background: linear-gradient(135deg, #008080, #004D4D);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
#landingAsset .hero h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
#landingAsset .hero p.lead {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
#landingAsset .hero a.btn-primary {
  background-color: #004D4D;
  border-color: #004D4D;
}
#landingAsset .hero a.btn-primary:hover {
  background-color: #003737;
  border-color: #003737;
}
#landingAsset .hero a.btn-outline-secondary {
  border-color: #008080;
  color: #008080;
}
#landingAsset .hero a.btn-outline-secondary:hover {
  background-color: #008080;
  color: #fff;
}

/* Architecture details */
#landingAsset .architecture {
  padding: 3rem 0;
  font-size: 1rem;
  color: #333;
}
#landingAsset .architecture h3 {
  color: #008080;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
#landingAsset .architecture ul {
  list-style: disc inside;
  margin-left: 0;
  padding-left: 0;
}
#landingAsset .architecture ul li {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Responsive tweaks */
@media (max-width: 767px) {
  #landingAsset .hero h1 {
    font-size: 2.5rem;
  }
  #landingAsset .architecture h3 {
    font-size: 1.25rem;
  }
}

/* Architecture Cards */
.architecture {
  background-color: #f8f9fa;
}
.architecture h2 {
  font-weight: 600;
  color: #004D4D;
}
.architecture-card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.architecture-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.1);
}
.architecture-card h4 {
  color: #008080;
  font-weight: 600;
  margin-bottom: 1rem;
}
.architecture-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.architecture-card ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.architecture-card ul li:before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0.2em;
  color: #00A3A3;
  font-size: 1.2rem;
}

/* Responsive tweak: slightly smaller heading on mobile */
@media (max-width: 576px) {
  .architecture-card h4 {
    font-size: 1.25rem;
  }
}

/* Rotating Cards CSS - Add to your existing stylesheet */

/* Main card container */
.rotating-card-container {
  perspective: 1000px;
  width: 90vw;       /* ? responsive width */
  max-width: 320px;  /* ? same visual limit */
  height: 420px;
  margin: 0 auto;
  position: relative;
}

/* The card wrapper - controls the rotation */
.card-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease-in-out;
}

.rotating-card-container:hover .card-wrapper {
  transform: rotateY(180deg);
}

/* Card sides styling */
.card-side {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Front side styling */
.card-front {
  background: #ffffff;
  border-top: 4px solid #E46C47; /* warm accent border */
}

/* Back side styling */
.card-back {
  background: linear-gradient(135deg, #1E2235, #2a2f4b); /* deep indigo gradient */
  color: #ffffff;
  transform: rotateY(180deg);
}

/* Inner content styling */
.card-side .card-title {
  color: #1E2235; /* deep indigo titles */
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.3rem;
  text-align: center;
}

.card-back .card-title {
  color: #ffffff;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-start;
}

.feature-icon {
  color: #E46C47; /* terracotta icon color */
  margin-right: 10px;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.feature-item:hover .feature-icon {
  color: #ff825b; /* lighter terracotta on hover */
}

.card-back .feature-icon {
  color: #E46C47; /* consistent warm accent on dark background */
}

.feature-content {
  font-size: 0.9rem;
  line-height: 1.5;
}

.feature-content strong {
  display: block;
  margin-bottom: 3px;
  letter-spacing: -0.2px;
  color: #1E2235;
}

.card-back .feature-content strong {
  color: #ffffff;
}

/* Cards container */
.rotating-cards-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto;
}


/* Section title */
.section-title {
  text-align: center;
  color: #1E2235; /* deep indigo */
  margin-bottom: 40px;
  font-weight: 600;
  border-bottom: 3px solid #E46C47; /* accent underline */
  display: inline-block;
  padding-bottom: 6px;
}

/* Card animations */
.rotating-card-container {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rotating-card-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.rotating-card-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(30, 34, 53, 0.15); /* soft indigo shadow */
}

/* Ensure the card flip isn't affected by the hover rise effect */
.rotating-card-container:hover .card-wrapper {
  transform: rotateY(180deg);
}

/* Pulse animation for the front icons */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Card fronts */
.card-front {
  background-color: #fff;
  border: 1px solid #E46C47;
  border-radius: 10px;
  color: #1E2235;
}

.card-front .feature-icon {
  transition: all 0.3s ease;
  color: #E46C47; /* warm terracotta for icons */
}

.rotating-card-container:hover .card-front .feature-icon {
  animation: pulse 1.5s infinite;
  color: #ff825b; /* lighter terracotta pulse */
}

/* Card backs */
.card-back {
  background-color: #1E2235; /* deep indigo */
  color: #ffffff;
  border-radius: 10px;
  border: 1px solid #E46C47;
}

.card-back .feature-icon {
  color: #E46C47;
}

/* Better mobile experience */
@media (max-width: 767px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
  }
  
  .rotating-card-container {
    margin-bottom: 20px;
    width: 90%;
    max-width: 350px;
  }
}

/* Card click effect for mobile */
@media (max-width: 991px) {
  .card-wrapper.flipped {
    transform: rotateY(180deg);
  }
}



/* WappBot Responsive Styles */

/* General Layout */
.wappbot-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f9f9fa;
}

.wappbot-header {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
}

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

.wappbot-logo-section {
  display: flex;
  align-items: center;
}

.wappbot-logo {
  color: #00A3A3;
  margin-right: 0.5rem;
}

.wappbot-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #00A3A3;
}

/* WABA Selector */
.waba-selector {
  background-color: #00A3A3;
  padding: 1rem;
}

.waba-dropdown {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Conversation List */
.conversation-list-container {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}

.conversation-list {
  background-color: #e8f5e9;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.conversation-item {
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.conversation-item:hover {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.conversation-item-content {
  display: flex;
  align-items: center;
}

.conversation-item-info {
  min-width: 8rem;
  margin-right: 0.75rem;
}

.conversation-item-name {
  font-weight: 500;
  color: #1976d2;
  margin-bottom: 0.25rem;
}

.conversation-item-number {
  font-size: 0.875rem;
  color: #666;
}

.conversation-item-message {
  flex: 1;
  min-width: 0;
  background-color: #e3f2fd;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
}

.conversation-item-message-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.875rem;
}

.conversation-item-count {
  margin-left: 0.75rem;
  font-size: 0.75rem;
  color: #757575;
}

/* Chat Messages */
.messages-container {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background-color: #f5f5f5;
}

.message-bubble-container {
  display: flex;
  margin-bottom: 0.75rem;
}

.message-content li {
  margin-bottom: 0.3rem;
}

.message-bubble-container.outgoing {
  justify-content: flex-end;
}

.message-bubble-container.incoming {
  justify-content: flex-start;
}

.message-bubble {
  padding: 0.5rem;
  margin-bottom: 0.5rem;     
  border-radius: 0.75rem;
  max-width: 75%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.message-bubble.outgoing {
  background-color: #d1ffd7; /* Make slightly darker */
  color: #333;             /* Ensure dark text */
  font-weight: 500;        /* Make text slightly bolder */
}

.message-bubble.incoming {
  background-color: #e1f5fe; /* Make slightly darker */
  color: #333;             /* Ensure dark text */
  font-weight: 500;        /* Make text slightly bolder */
}

.message-content ol, 
.message-content ul {
  padding-left: 1.2rem; /* Slightly reduced */
  margin: 0.3rem 0; /* Reduced from 0.5rem */
}

.message-content {
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  font-weight: 400; /* Normal weight instead of bold/semi-bold */
  line-height: 1.2; /* Reduce from 1.5 to make lines closer together */
  padding: 0.3rem;
}

.message-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: #555;            /* Darker than #757575 */
  margin-top: 0.15rem; /* Reduced from 0.25rem */
  font-size: 0.7rem; /* Smaller font for timestamp */
  font-weight: 500;       /* Add this */
}

.message-reply {
  margin-right: 0.15rem;
  color: #2196f3;
  cursor: pointer;
}

.message-timestamp {
  margin-right: 0.25rem;
  color: #444;       /* Darker than before */
  font-weight: 600;  /* Make bolder */
}

/* Fix paragraph spacing */
.message-content p {
  margin-bottom: 0.5rem; /* Reduce from likely 1rem or more */
}

.parent-message {
  background-color: #f0f0f0;
  border-radius: 0.375rem;
  padding: 4px 6px; /* Reduced from 5px 8px */
  margin-bottom: 5px; /* Reduced from 7.5px */
  font-size: 0.5rem;
  color: #666;
  border-left: 2px solid #ccc;
}

.parent-message-meta {
  text-align: right;
  font-size: 0.7rem;
  color: #999;
}

/* Message Input Section */
.message-input-container {
  background-color: white;
  border-top: 1px solid #e0e0e0;
  padding: 0.75rem;
}

.message-type-selector {
  display: flex;
  justify-content: space-around;
  margin-bottom: 0.75rem;
}

.message-type-option {
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
}

.message-type-option.active {
  background-color: #e3f2fd;
}

.message-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
}

.send-button {
  display: flex;
  justify-content: flex-end;
}

.send-button button {
  padding: 0.5rem 1rem;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.send-button button:hover {
  background-color: #45a049;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .conversation-item-content {
    flex-wrap: wrap;
  }
  
  .conversation-item-info {
    min-width: 6rem;
  }
  
  .message-bubble {
    max-width: 85%;
  }
  
  .message-type-selector {
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .conversation-item-info {
    min-width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .conversation-item-message {
    min-width: 100%;
  }
  
  .conversation-item-count {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .message-bubble {
    max-width: 90%;
  }
}

/* Make workflow buttons more compact */
.message-content div[style*="margin: 4px 0"] {
  margin: 2px 0 !important; /* Reduce vertical spacing between buttons */
  display: inline-block;    /* Display buttons side by side when possible */
  margin-right: 4px !important; /* Add spacing between side-by-side buttons */
}

/* Make the buttons themselves more compact */
.message-content span[onclick*="showModal"] {
  padding: 4px 8px !important; /* Reduced from 6px 12px */
  font-size: 0.85em !important; /* Slightly smaller font */
}

/* Add flex container to group buttons */
.message-content div.workflow-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

/* Make modals more compact */
.workflow-modal > div {
  max-width: 400px !important; /* Smaller max-width */
  margin: 80px auto !important; /* Center vertically a bit higher */
  padding: 15px !important; /* Less padding */
}

/* Make modal fit better on mobile */
@media (max-width: 480px) {
  .workflow-modal > div {
    max-width: 90% !important; /* Use percentage for small screens */
    margin: 60px auto !important; /* Even higher on mobile */
    padding: 12px !important; /* Even less padding on mobile */
  }
}

/* Reduce padding in modal content */
.workflow-modal div[style*="max-height: 300px"] {
  max-height: 250px !important; /* Less height */
}

.workflow-modal div[style*="padding: 8px; background: #f8f9fa"] {
  padding: 6px !important; /* Less padding */
  margin: 3px 0 !important; /* Less margin */
}

/* Make close button smaller */
.workflow-modal button[onclick*="hideModal"] {
  margin-top: 10px !important; /* Less margin */
  padding: 4px 12px !important; /* Less padding */
  font-size: 0.9em !important; /* Smaller font */
}

/* Updated WappBot Welcome Screen Styles */
.welcome-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 40vh;
  padding: 15px;
  background-color: #f8f9fa;  /* Light background color */
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.welcome-emoji {
  font-size: 48px;
  margin-bottom: 15px;
  animation: wave 1.5s infinite;
  display: inline-block; /* Ensures animation works properly */
}

.welcome-title {
  font-size: 1.6rem;
  font-weight: 500;
  color: #333;  /* Darker text for better contrast */
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
}

.welcome-subtitle {
  font-size: 1.1rem;
  color: #555;  /* Slightly darker than before */
  max-width: 500px;
  font-family: 'Poppins', sans-serif;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

/ WABA Dropdown Styling /
.waba-selector {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 20px auto;
}
.waba-dropdown {
  width: 100%;
  padding: 15px 15px;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.waba-dropdown:focus {
  outline: none;
  border-color: 
#00A3A3;
  box-shadow: 0 0 0 3px rgba(0, 163, 163, 0.2);
}
/ Custom dropdown arrow /
.waba-selector::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid 
#00A3A3;
  transform: translateY(-50%);
  pointer-events: none;
}
/ Responsive adjustments */
@media (max-width: 576px) {
  .waba-dropdown {
    font-size: 14px;
    padding: 10px 12px;
  }
}

.home-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: color 0.2s ease;
}

.home-icon:hover {
  color: #00A3A3;
}

.home-icon svg {
  stroke: currentColor;
}

/* Fix navbar layout */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.home-icon {
  order: 1; /* Move home icon to the right side */
  margin-right: 10px;
  color: #333;
  transition: color 0.2s ease;
}

.home-icon:hover {
  color: #00A3A3;
}

.navbar-toggler {
  order: 2; /* Keep toggler on the far right */
}

/* Make sure navbar-nav stays on the right */
.navbar-collapse {
  flex-grow: 0; /* Prevent the collapse from growing */
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .navbar {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .home-icon {
    margin-left: auto; /* Push to right on mobile */
    margin-right: 15px;
  }
}

/* Improve search container layout */
#searchContainer {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 15px 0;
  padding: 0 15px;
}

/* Make search input larger and consistent */
#senderSearch {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Style the action buttons */
.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.action-button:hover {
  background-color: #45a049;
}

.action-button i,
.action-button svg {
  font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  #searchContainer {
    flex-wrap: wrap;
  }


  
  #senderSearch {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .action-button {
    width: 44px;
    height: 44px;
  }
}

/* Make sure that section really covers the full viewport width */
#WorkflowRoutesDashboard {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  /* optionally reset any inherited padding/margin */
  padding: 0;
}

/* Remove the default Bootstrap gutter on that container */
#WorkflowRoutesDashboard .container-fluid.px-0 {
  padding-left: 0;
  padding-right: 0;
}

/* Template creator placeholder */
.placeholder {
  background-color: #f0f0f0;     /* Light grey background */
  padding: 2px 4px;              /* Tiny padding inside */
  border-radius: 4px;            /* Slightly rounded corners */
  font-weight: 500;
  font-family: monospace;        /* Optional: makes it look like a variable/token */
  color: #333;                   /* Darker text for contrast */
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  color: #128C7E;
}




/* Accordion Container */
.wappbot-accordion-container {
    background-color: #f8f9fa;
    padding: 3rem 0;
}

/* Title */
.wappbot-accordion-title {
    color: #1E2235;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
    border-bottom: 3px solid #E46C47;
    display: inline-block;
    padding-bottom: 5px;
}

/* Custom Accordion Styling */
.wappbot-accordion {
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(30, 34, 53, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.wappbot-accordion-item {
    border: none;
    margin-bottom: 0;
    background: white;
}

.wappbot-accordion-item:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

/* Accordion Header */
.wappbot-accordion-header {
    padding: 0;
}

/* Accordion Button */
.wappbot-accordion-button {
    background: linear-gradient(135deg, #1E2235, #1E2235);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: none;
}

.wappbot-accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #E46C47, #d85f3f);
    color: white;
    box-shadow: none;
}

.wappbot-accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(228,108,71,0.2);
    border: none;
}

.wappbot-accordion-button:hover {
    background: linear-gradient(135deg, #E46C47, #c85438);
    transform: translateY(-1px);
}

/* Accordion Icon */
.wappbot-accordion-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
    min-width: 20px;
    color: #E46C47;
}

/* Accordion Arrow */
.wappbot-accordion-button::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: white;
    transition: transform 0.3s ease;
}

.wappbot-accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

/* Accordion Body */
.wappbot-accordion-collapse {
    border: none;
    transition: all 0.3s ease;
}

.wappbot-accordion-body {
    padding: 2rem;
    background: white;
    border-top: 2px solid #E46C47;
}

/* Content Grid inside accordion */
.wappbot-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.wappbot-content-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #E46C47;
    transition: transform 0.2s ease;
}

.wappbot-content-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 34, 53, 0.15);
}

.wappbot-content-item-icon {
    color: #E46C47;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.wappbot-content-item-title {
    color: #1E2235;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.wappbot-content-item-desc {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Steps Layout for Getting Started */
.wappbot-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.wappbot-step-item {
    background: linear-gradient(135deg, rgba(30, 34, 53, 0.05), rgba(228, 108, 71, 0.05));
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(228, 108, 71, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.wappbot-step-number {
    background: #E46C47;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.wappbot-step-content h6 {
    color: #1E2235;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.wappbot-step-content p {
    color: #495057;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wappbot-accordion {
        margin: 0 1rem;
    }
    
    .wappbot-accordion-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .wappbot-accordion-body {
        padding: 1.5rem;
    }
    
    .wappbot-content-grid,
    .wappbot-steps-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation for smooth expand/collapse */
.wappbot-accordion-collapse {
    transition: all 0.3s ease;
}




/* 1) Make the “Add Button” in the editor the same size & color as Create’s “Add Another Button” */
#editTemplateModal #addButtonBtn {
  /* remove the btn-sm look: */
  padding: 0.375rem 0.75rem !important;
  font-size: 1rem !important;
  /* match Create’s grey secondary button: */
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #fff !important;
}

/* 2) Match the “Update” and “Cancel” button colors to your Create form */
#editTemplateModal #updateTemplateBtn {
  /* match Create’s primary (teal) button */
  background-color: #025e5c !important;
  border-color: #025e5c !important;
  color: #fff !important;
}
#editTemplateModal #cancelEditBtn {
  /* match Create’s grey secondary button */
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #fff !important;
}

/* 3) Make the live-preview card look identical */
#editTemplateModal .card-header.bg-light {
  /* match Create’s preview header */
  background-color: #025e5c !important;
  color: #fff !important;
  font-weight: 600;
}
#editTemplateModal #editTemplatePreview {
  /* match Create’s preview body */
  background-color: #e6ffe6 !important;      /* light green */
  border: 1px solid #c3e6c3 !important;       /* green border */
  border-radius: 0.25rem !important;
  padding: 1rem !important;
  color: #025e5c !important;
  font-family: inherit;
}


/*-----------------------------------------------------------------------------*/
/* 1) Make the entire editor bar fixed to the bottom of the viewport          */
/*-----------------------------------------------------------------------------*/
#EditorFormForAConversationStickyBottom {
  position: fixed !important;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;           /* sit above other content */
  background-color: #f0f8ff;/* same background you already have */
  /* remove any margin-left hack so it spans full viewport */
  margin-left: 0 !important;
  /* ensure it doesn’t get clipped by any ancestor */
  overflow: visible;
}

/*-----------------------------------------------------------------------------*/
/* 2) When inner sections appear (templates/previews/etc.), let them expand   */
/*    upward from the bottom bar rather than downward.                         */
/*-----------------------------------------------------------------------------*/
/* Wrap the form’s children in a flex container with column-reverse, so that */
/* new content (template lists, preview areas, etc.) always flow “above” the  */
/* Send button, opening upward.                                               */

#EditorFormForAConversationStickyBottom > #EditorFormForAConversation {
  display: flex;
  flex-direction: column-reverse;
}

/* Make sure any sub-sections (replyPreview, templatesSection, inlineEditor) */
/* are not themselves absolutely positioned at bottom; they should slot above */
#EditorFormForAConversationStickyBottom 
  #replyPreviewSection,
#EditorFormForAConversationStickyBottom 
  #templatesSection,
#EditorFormForAConversationStickyBottom 
  #inlineMessageEditorSection {
  position: relative;
  z-index: 1; /* sit above the bottom bar if needed */
}

/* If you have a “Send” button at the very bottom, keep it pinned */
#EditorFormForAConversationStickyBottom 
  #sendMessageButton {
  align-self: center;
  margin-top: 8px;
  z-index: 2;
}

/*-----------------------------------------------------------------------------*/
/* 3) Ensure scrollable parts above aren’t clipped behind the fixed editor    */
/*-----------------------------------------------------------------------------*/
/* If you ever make the editor taller (e.g. template editor pops open), any   */
/* overflow should be visible above rather than getting cut off.              */

#EditorFormForAConversationStickyBottom,
#EditorFormForAConversationStickyBottom * {
  overflow: visible !important;
}

/*-----------------------------------------------------------------------------*/
/* 4) (Optional) If certain panels should max out and scroll internally,      */
/*    give them an explicit max-height and overflow-y: auto.                  */
/*-----------------------------------------------------------------------------*/
#EditorFormForAConversationStickyBottom 
  #templatesSection,
#EditorFormForAConversationStickyBottom 
  #inlineMessageEditorSection {
  max-height: 60vh;   /* or whatever makes sense */
  overflow-y: auto;
}




