:root {
  --rp-primary: #3858e9;
  --rp-primary-hover: #2a4bd7;
  --rp-secondary: #f8f9fa;
  --rp-border: #e0e3e7;
  --rp-border-dark: #d0d5dd;
  --rp-text: #1f2937;
  --rp-text-light: #6b7280;
  --rp-success: #10b981;
  --rp-error: #ef4444;
  --rp-warning: #f59e0b;
  --rp-er-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  --rp-er-card-shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --rp-accent-color: #ff7043;
  --rp-white: #fff;
  --rp-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --rp-transition: all 0.3s ease;
    --dark-bg: #ffffff;
  --dark-text-color: #282c34;
}
#replypilot_ai_chatbot_tone,
#replypilot_ai_chatbot_about_business {
  max-width: 100%;
}
#wpbody-content {
  display: flex;
  flex-wrap: wrap;
}
.rp-plugin-admin {
  display: flex;
  min-height: 100vh;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}
/* rp-sidebar Navigation */
.rp-sidebar {
  width: 280px;
  background: white;
  border-right: 1px solid var(--rp-border);
  padding: 80px 0;
  position: sticky;
  top: 0;
  height: 100vh;
}
.rp-sidebar-header {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--rp-border);
  margin-bottom: 24px;
}

.rp-plugin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rp-plugin-icon>img {
  width: 80px;
  height: 80px;

}

.rp-plugin-name {
  font-size: 18px;
  font-weight: 600;
}

.rp-plugin-version {
  font-size: 12px;
  color: var(--rp-text-light);
  font-weight: 400;
  margin-top: 2px;
}

.rp-nav-menu {
  list-style: none;
  padding: 0 16px;
}

.rp-nav-item {
  margin-bottom: 4px;
}

.rp-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 6px;
  color: var(--rp-text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.rp-nav-link:hover {
  background-color: var(--rp-secondary);
  color: var(--rp-text);
}

.rp-tab-content {
  display: none;
}

.rp-tab-content.active {
  display: block;
  min-width: 880px;
}

.rp-nav-link.active {
  background-color: rgba(56, 88, 233, 0.1);
  color: var(--rp-primary);
  font-weight: 600;
}

.rp-nav-link i {
  width: 20px;
  text-align: center;
}

/* Main Content Area */
.rp-main-content {
  flex: 1;
  padding: 32px;
  max-width: 1200px;
}

.rp-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.rp-page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--rp-text);
}

.rp-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--rp-text-light);
}

.rp-breadcrumbs a {
  color: var(--rp-text-light);
  text-decoration: none;
}

.rp-breadcrumbs a:hover {
  color: var(--rp-primary);
}

/* er-cards */
.er-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--rp-er-card-shadow);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--rp-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.er-card:hover {
  box-shadow: var(--rp-er-card-shadow-hover);
  transform: translateY(-2px);
}

.er-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rp-border);
}

.er-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--rp-text);
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rp-text);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--rp-border);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
  max-width: 500px;
}

.form-control:focus {
  outline: none;
  border-color: var(--rp-primary);
  box-shadow: 0 0 0 3px rgba(56, 88, 233, 0.1);
}

.form-text {
  font-size: 13px;
  color: var(--rp-text-light);
  margin-top: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  gap: 8px;
}

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

.btn-primary:hover {
  background-color: var(--rp-primary-hover);
}

.btn-secondary {
  background-color: white;
  color: var(--rp-text);
  border: 1px solid var(--rp-border);
}

.btn-secondary:hover {
  background-color: var(--rp-secondary);
  border-color: var(--rp-border-dark);
}

.btn-danger {
  background-color: var(--rp-error);
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.rp-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.rp-toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.rp-toggle-slider-div {
  display: flex;
  align-items: center;
  gap: 16px;
}

input:checked+.rp-toggle-slider {
  background-color: var(--rp-primary);
}

input:checked+.rp-toggle-slider:before {
  transform: translateX(20px);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--rp-success);
}

.badge-warning {
  background-color: rgba(245, 11, 11, 0.1);
  color: #f50b0b;
}

.rp-pricing-container {
  display: flex;

  justify-content: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.rp-pricing-card {
  background: var(--rp-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--rp-shadow);
  width: 100%;
  max-width: 300px;
  transition: var(--rp-transition);
  position: relative;
}

.rp-pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.rp-pricing-header {
  padding: 1rem;
  text-align: center;
  background: linear-gradient(135deg, var(--rp-primary), #6a5acd);
  color: var(--rp-white);
  position: relative;
}

.popular-tag {
  position: absolute;
  top: 0;
  right: 2rem;
  background: var(--rp-accent-color);
  color: var(--rp-white);
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.rp-pricing-title {
  font-size: 2.0rem;
  margin: 0;
  margin-top: 0.5rem;
  font-weight: 600;
  color: #fba724;
}

.rp-pricing-price {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
}

.rp-pricing-price span {
  font-size: 1rem;
  font-weight: 400;
}

.rp-pricing-period {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}


.rp-feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.rp-feature-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  font-size: 12px;
  align-items: center;
}

.rp-feature-list li:last-child {
  border-bottom: none;
}

.rp-feature-list li::before {
  content: "✓";
  color: var(--rp-primary);
  font-weight: bold;
  margin-right: 0.5rem;
}

.rp-feature-list .not-included {
  opacity: 0.5;
}

.rp-feature-list .not-included::before {
  content: "✕";
  color: #ff4d4d;
}

.rp-pricing-button {
  display: block;
  width: 100%;
  padding: 10px 0;
  border: none;
  background: var(--rp-primary);
  color: var(--rp-white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--rp-transition);
  text-align: center;
  text-decoration: none;
}

.rp-pricing-button:hover {
  background: #3a5bed;
  transform: translateY(-2px);
  color: #ff7043;
}

.popular .rp-pricing-button {
  background: var(--rp-accent-color);
}

.popular .rp-pricing-button:hover {
  background: #f45c2c;
  color: #3a5bed;
}

.save-popup-rp {
  position: absolute !important;
  top: 100px;
  right: 22px;
}

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

  .rp-pricing-card {
    max-width: 100%;
  }

  .rp-plugin-admin {
    flex-direction: column;
  }

  .rp-sidebar {
    width: 100%;
    height: auto;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid var(--rp-border);
  }

  .rp-sidebar-header {
    padding: 0 0 16px;
  }

  .rp-nav-menu {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .rp-nav-item {
    flex: 0 0 auto;
    margin-bottom: 0;
    margin-right: 8px;
  }

  .rp-main-content {
    padding: 24px;
  }
}



.chatbot-conversations {
  display: flex;
  background: #fff;
  width: 100%;
}

.chatbot-conversations h1 {
  line-height: 3;
}


/* Conversation Detail View */
.chatbot-admin-conversation {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  overflow: hidden;
  padding: 10px 20px;
  width: 100%;
  box-sizing: border-box;
  height: 100%;

}

.chatbot-admin-conversation-header {
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: white;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-admin-conversation-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.chatbot-admin-conversation-meta {
  background: #f8fafc;
  padding: 15px 25px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
}

/* Chat Messages Container */
.chatbot-admin-messages {
  padding: 15px;
  background: #f5f7fb;
  min-height: 500px;
  max-height: 70vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;

}

#replypilot-admin-message {
  border-radius: 10px;
  padding: 10px;
  width: calc(100% - 60px);
  margin-top: 10px;
}

#replypilot-admin-send {
  margin-top: 15px;
  font-size: 50px;
  border-radius: 51px;
  width: 50px;
  height: 50px;
  line-height: 7px;
  font-family: fantasy;
  background-color: #4a628b;
  border: none;
}

/* Message Bubbles */
.chatbot-admin-message {
  max-width: 75%;
  position: relative;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.chatbot-admin-message.user {
  margin-right: auto;
}

.chatbot-admin-message.bot {

  margin-left: auto;
}

.message-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  line-height: 1.5;
  word-wrap: break-word;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chatbot-admin-message.user.message-bubble {

  background: white;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}

.chatbot-admin-message.bot.message-bubble {
  background: #4a628b;
  color: white;
  border-bottom-right-radius: 4px;
}

.message-time {
  font-size: 11px;
  margin-top: 6px;
  display: block;
  text-align: right;
  opacity: 0.8;
}

.chatbot-admin-message.user .message-time {
  color: #94a3b8;
}

.chatbot-admin-message.bot .message-time {
  color: rgba(255, 255, 255, 0.7);
}



/* Responsive Design */
@media (max-width: 1024px) {

  .chatbot-admin-messages {
    padding: 15px;
    min-height: 400px;
  }

  .message-bubble {
    padding: 12px 16px;
  }

  .chatbot-admin-conversation {
    width: 100%;
  }
}

@media (max-width: 782px) {

  .chatbot-admin-conversation-header,
  .chatbot-admin-conversation-meta {
    flex-direction: column;
    gap: 8px;
  }

  .chatbot-admin-message {
    max-width: 85%;
  }

  .chatbot-admin-conversation {
    width: auto;
  }
}



/* settings css */
.rp-tag-container {
  width: 100%;
  max-width: 500px;
  border: 1px solid #ccc;
  background-color: #fff;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

#rp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rp-tag {
  background-color: var(--rp-primary);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.rp-tag .rp-remove-btn {
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
}

#rp-tag-input {
  border: none;
  resize: none;
  min-height: 30px;
  font-size: 14px;
  padding: 5px;
  outline: none;
  width: 100%;
}

#rp-tag-input:focus {
  box-shadow: 0 0 0 0px #2271b1;
}

:root {
  --primary: #6e48aa;
  --primary-light: #9d50bb;
  --secondary: #3858e9;
  --text: #1d2327;
  --text-light: #646970;
  --bg: #f8f9fa;
  --card-bg: rgba(255, 255, 255, 0.85);
  --border-radius: 12px;
  --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

/* Base Styles */
.rp-about-about-wrap {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  color: var(--text);
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Hero Section - Glass Morphism Effect */
.rp-about-about-hero {
  background: linear-gradient(135deg, var(--rp-primary), #6a5acd);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  padding: 15px;
  border-radius: var(--border-radius);
  margin: 2rem 0 3rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.rp-about-about-hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.rp-about-logo {
  height: 100px;
  width: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: var(--transition);
  border-radius: 29px;
  overflow: visible;
  background: #fff;

}

.rp-about-logo:hover {
  transform: scale(1.05) rotate(-5deg);
}

.rp-about-about-hero h1 {
  color: #fff;
}

.rp-about-about-hero h1 span {
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.rp-about-tagline {
  font-size: 15px;
  opacity: 0.9;
  margin-left: auto;
  margin-right: auto;
}



.rp-about-button {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.75rem;
  margin: 0 0.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  z-index: 1;
}

.rp-about-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
  transition: var(--transition);
  opacity: 0;
}

.rp-about-button:hover::before {
  opacity: 1;
}



.rp-about-button {
  background: rgb(200, 212, 255);
  color: #444edb;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.rp-about-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.rp-about-cta-buttons .dashicons {
  margin-right: 10px;
  vertical-align: middle;
}

/* Section Headers */
.rp-about-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.rp-about-section-header h2 {
  font-size: 26px;
  color: var(--text);
  margin-bottom: 0.75rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.rp-about-section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px;
}

.rp-about-section-header p {
  font-size: 16px;
  color: var(--text-light);
  margin-top: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Plugins Grid - Modern App Store Style */
.rp-about-plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 3rem;
}

.rp-about-plugin-card {
  display: flex;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  flex-direction: column;
}

.rp-about-plugin-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.rp-about-plugin-card img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  padding: 1.5rem;
  align-self: center;
  transition: var(--transition);
}

.rp-about-plugin-card:hover img {
  transform: scale(1.1);
}

.rp-about-plugin-content {
  padding: 0 10px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rp-about-plugin-content h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.rp-about-plugin-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 14px;
  line-height: 1.7;
  flex-grow: 1;
}

.rp-about-plugin-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.salesafw-ab-button {
  padding: 0.65rem 1.25rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.salesafw-ab-button-secondary {
  background: linear-gradient(135deg, #f5f5f5 0%, #e9e9e9 100%);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.salesafw-ab-button-secondary:hover {
  background: linear-gradient(135deg, #e9e9e9 0%, #ddd 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* CTA Section - Floating Effect */
.rp-about-about-cta {
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(241, 242, 246, 0.9) 100%);
  border-radius: var(--border-radius);
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.rp-about-cta-content {
  position: relative;
  z-index: 1;
}

.rp-about-cta-content h2 {
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.rp-about-cta-content p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.rp-about-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Footer */
.rp-about-about-footer {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.rp-about-about-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.rp-about-about-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.rp-about-about-footer a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .rp-about-about-hero h1 {
    font-size: 2.5rem;
  }

  .rp-about-section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .rp-about-about-hero {
    padding: 3rem 1.5rem;
  }

  .rp-about-about-hero h1 {
    font-size: 2.25rem;
  }

  .rp-about-tagline {
    font-size: 1.2rem;
  }


  .rp-about-button {
    width: 100%;
    justify-content: center;
  }

  .rp-about-plugin-card {
    flex-direction: column;
  }

  .rp-about-plugin-card img {
    width: 100%;
    max-height: 150px;
    padding: 1.5rem 1.5rem 0;
  }

  .rp-about-cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .rp-about-about-hero h1 {
    font-size: 2rem;
  }


  .rp-about-plugins-grid {
    grid-template-columns: 1fr;
  }

  .rp-about-section-header h2 {
    font-size: 1.75rem;
  }
}

.replypilot-typing .replypilot-message-content {
  display: flex;
  align-items: center;
  height: 20px;
}

.replypilot-message-content a {
  text-decoration: none;
  color: #4285f4;
}

.replypilot-typing-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 2px;
  animation: typingAnimation 1.4s infinite ease-in-out;
}

.replypilot-typing-dot:nth-child(1) {
  animation-delay: 0s;
}

.replypilot-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.replypilot-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingAnimation {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-5px);
  }
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  font-size: 28px;
  text-align: center;
  box-shadow: 0 0 10px 1px #bdbdbd;
  align-content: center;
  color: #4a628b;

}

.sidebar {
  width: 650px;
  /* Fixed width for the sidebar */
  background-color: var(--dark-bg);
  color: var(--dark-text-color);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.search-box {
  padding: 10px 20px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 10px 10px 35px;
  border: none;
  border-radius: 8px;
  background-color: #e7e7e7;
  color: var(--dark-text-color);
}

.search-box .fas {
  position: absolute;
  top: 40%;
  right: 36px;
  color: #999;
  font-size: 20px;
}

.contact-list {
  flex-grow: 1;
  overflow-y: auto;
  height: 80vh;
}

.contact-list a {
  text-decoration: none;
}

.contact-item {
  display: flex;
  padding: 15px 20px;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid rgb(139 139 139 / 18%);
  transition: background-color 0.2s;
  position: relative;
}

.contact-item:hover .contact-info {
  color: #fff;
}

.contact-item:hover {
  background-color: #4a628b;
}

.contact-item.active {
  background-color: #4a628b;
  /* Highlight active chat */
}
.contact-item .unread-badge {
      background: #00b800;
    color: #fff;
    border-radius: 20px;
    padding: 4px 9px;
    position: absolute;
    right: 20px;
    top: 35px;
    font-size: 16px;
}
.contact-item.active .contact-info {
  color: #fff;
}

.contact-info {
  flex-grow: 1;
  margin-left: 15px;
  overflow: hidden;
}

.contact-name {
  font-weight: bold;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

}
.unread-message .contact-name{
  font-weight: 800;
}
.contact-item .contact-info {
  color: #4a628b;
}

.last-message {
  color: #b0b0b0;
  font-size: 0.9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timestamp {
  font-size: 0.8em;
  color: #999;
  align-self: flex-start;
}

.chat-image-1 {
  width: 100%;
  height: 80vh;
  object-fit: contain;
}

.contact-list a:nth-child(even) {
  background: #f4f4f4;
  display: block;
}

.sidebar-header {
  padding: 15px 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header-default-mode,
.header-selection-mode {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.header-default-mode h2,
.header-selection-mode h2 {
  flex-grow: 1;
  text-align: left;
  margin-right: 10px;
}

.action-toggle-btn {
  border: none;
  color: #ff4343;
  font-size: 1.2em;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s;
}
#refresh-contact-list{
  color: #4a628b;
}
#refresh-contact-list:hover {
  color: var(--accent-color);
}
.action-toggle-btn:hover {
  color: var(--delete-color);
}
.header-selection-mode h2 {
  text-align: center;
  font-size: 1.2em;
  margin: 0;
  padding: 0;
}

.cancel-btn,
.delete-selected-btn {
  border: none;
  color: #ff4343;
  font-size: 1.2em;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s;
}

.cancel-btn {
  margin-right: 10px;
  color: #5e5e5e;
  background-color: #efefef;
}

.cancel-btn:hover {
  background-color: #e7e6e6;
}

.delete-selected-btn {
  background-color: #ff4343;
  color: white;
  margin-left: 10px;
}

.delete-selected-btn:disabled {
  background-color: #555;
  cursor: not-allowed;
  opacity: 0.5;
}
.sidebar.selection-mode .contact-item {
  padding-left: 15px;
}
.sidebar.selection-mode .contact-action-btn {
  display: none !important;
}

.hidden {
  display: none !important;
}

.contact-item .contact-checkbox {
  margin-right: 15px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-color);
  flex-shrink: 0;
  -webkit-appearance: checkbox;
}