/* Custom CSS for Email Marketing Platform */
/* Using Bootstrap dark theme variables and minimal overrides */

:root {
  --email-canvas-bg: #ffffff;
  --email-element-border: #e9ecef;
  --email-element-hover: #f8f9fa;
  --orange-primary: #ff6b35;
  --orange-hover: #e55a2b;
  --orange-active: #cc4d24;
}

/* Email Editor Specific Styles */
.email-canvas {
  background-color: var(--email-canvas-bg);
  border: 2px dashed var(--bs-border-color);
  transition: border-color 0.3s ease;
  position: relative;
  overflow-y: auto;
  max-height: 600px;
}

.email-canvas:hover {
  border-color: var(--bs-primary);
}

.email-canvas.drag-over {
  border-color: var(--bs-success);
  background-color: rgba(var(--bs-success-rgb), 0.05);
}

/* Email Editor Elements */
.email-element {
  border: 1px solid transparent;
  margin: 10px 0;
  padding: 10px;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.email-element:hover {
  border-color: var(--email-element-border);
  background-color: var(--email-element-hover);
}

.email-element.selected {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.25);
}

.email-element .element-controls {
  position: absolute;
  top: -30px;
  right: 0;
  background: var(--bs-dark);
  border-radius: 4px;
  padding: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.email-element:hover .element-controls {
  opacity: 1;
}

.element-controls .btn {
  padding: 2px 6px;
  font-size: 12px;
  margin: 0 1px;
}

/* Email Element Types */
.email-text-block {
  min-height: 40px;
  line-height: 1.6;
}

.email-image-block {
  text-align: center;
  min-height: 100px;
  border: 2px dashed var(--bs-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bs-light);
  color: var(--bs-muted);
}

.email-button-block {
  text-align: center;
  padding: 20px;
}

.email-button-block .btn {
  min-width: 120px;
}

.email-divider-block {
  text-align: center;
  padding: 10px 0;
}

.email-divider-block hr {
  margin: 0;
  border-top: 2px solid var(--bs-border-color);
}

/* Drag and Drop Styles */
.draggable-element {
  cursor: grab;
  transition: transform 0.2s ease;
}

.draggable-element:active {
  cursor: grabbing;
  transform: scale(1.02);
}

.drop-zone {
  min-height: 40px;
  border: 2px dashed transparent;
  transition: all 0.2s ease;
  margin: 5px 0;
}

.drop-zone.drag-over {
  border-color: var(--bs-primary);
  background-color: rgba(var(--bs-primary-rgb), 0.1);
}

/* Campaign Statistics Cards */
.stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Analytics Charts */
.chart-container {
  position: relative;
  height: 300px;
  margin: 20px 0;
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(var(--bs-primary-rgb), 0.3);
  border-radius: 50%;
  border-top-color: var(--bs-primary);
  animation: spin 1s ease-in-out infinite;
}

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

/* Email Preview Styles */
.email-preview {
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.email-preview-header {
  background: var(--bs-light);
  padding: 10px;
  border-bottom: 1px solid var(--bs-border-color);
  font-size: 12px;
  color: var(--bs-muted);
}

.email-preview-body {
  padding: 20px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Mobile Preview */
.mobile-preview {
  max-width: 320px;
  margin: 0 auto;
}

.mobile-preview .email-preview-body {
  padding: 15px;
  font-size: 14px;
}

/* Sticky Elements */
.sticky-top {
  position: sticky;
  top: 1rem;
  z-index: 1020;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

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

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Enhanced Form Styles */
.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Custom Progress Bars */
.progress-custom {
  height: 8px;
  border-radius: 4px;
  background-color: var(--bs-light);
}

.progress-custom .progress-bar {
  border-radius: 4px;
}

/* Enhanced Alerts */
.alert-custom {
  border-left: 4px solid;
  border-radius: 0 4px 4px 0;
}

.alert-custom.alert-info {
  border-left-color: var(--bs-info);
}

.alert-custom.alert-success {
  border-left-color: var(--bs-success);
}

.alert-custom.alert-warning {
  border-left-color: var(--bs-warning);
}

.alert-custom.alert-danger {
  border-left-color: var(--bs-danger);
}

/* Responsive Tables */
.table-responsive-custom {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbars */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--bs-secondary) var(--bs-light);
}

.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--bs-light);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: var(--bs-secondary);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: var(--bs-dark);
}

/* Email List Import Feedback */
.import-feedback {
  max-height: 200px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 12px;
  background: var(--bs-dark);
  color: var(--bs-light);
  padding: 10px;
  border-radius: 4px;
}

/* AI Generator Styles */
.ai-prompt-examples .list-group-item {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ai-prompt-examples .list-group-item:hover {
  background-color: var(--bs-light);
}

/* Campaign Builder Toolbar */
.email-builder-toolbar {
  background: var(--bs-light);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.email-builder-toolbar .btn {
  margin: 2px;
}

/* Sequence Number Styling */
.sequence-number {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Campaign Status Badges */
.status-draft { background-color: var(--bs-secondary) !important; }
.status-scheduled { background-color: var(--bs-warning) !important; }
.status-sending { background-color: var(--bs-info) !important; }
.status-sent { background-color: var(--bs-success) !important; }
.status-paused { background-color: var(--bs-danger) !important; }

/* Metrics Display */
.metric-value {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
}

.metric-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

/* Dashboard Cards Enhancement */
.dashboard-card {
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Empty State Illustrations */
.empty-state {
  padding: 60px 20px;
  text-align: center;
}

.empty-state i {
  opacity: 0.5;
  margin-bottom: 20px;
}

.empty-state h5 {
  color: var(--bs-muted);
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--bs-muted);
  margin-bottom: 30px;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

/* Accessibility Improvements */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .email-element {
    border: 2px solid;
  }
  
  .btn {
    border-width: 2px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Orange Button Color Variables for Both Themes */
:root {
  --orange-primary: #ff6b35;
  --orange-hover: #e55a2b;
  --orange-active: #cc4d21;
}

/* Orange Call-to-Action Buttons */
.btn-orange {
  background-color: #ff6b35 !important;
  border-color: #ff6b35 !important;
  color: white !important;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-orange:hover {
  background-color: #e55a2b !important;
  border-color: #e55a2b !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-orange:active,
.btn-orange.active {
  background-color: #cc4d21 !important;
  border-color: #cc4d21 !important;
  color: white !important;
}

.btn-orange:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25) !important;
}

/* Enhanced Dropdown Positioning and Visibility */
.dropdown-menu {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
  border: 1px solid var(--bs-border-color) !important;
  border-radius: 8px !important;
  padding: 8px 0 !important;
  z-index: 1050 !important;
  min-width: 180px !important;
  backdrop-filter: blur(10px);
  background-color: var(--bs-body-bg) !important;
}

/* Ensure dropdowns don't get cut off */
.dropdown-menu.show {
  position: absolute !important;
  will-change: transform;
}

/* Ensure dropdown stays within viewport */
.dropdown-menu-end {
  right: 0 !important;
  left: auto !important;
  transform-origin: top right !important;
}

/* Enhanced dropdown items */
.dropdown-item {
  padding: 8px 16px !important;
  font-size: 14px !important;
  border-radius: 4px !important;
  margin: 2px 8px !important;
  transition: all 0.2s ease !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--bs-primary) !important;
  color: white !important;
  transform: translateX(2px);
}

.dropdown-item.text-danger:hover {
  background-color: var(--bs-danger) !important;
  color: white !important;
}

/* Dropdown divider styling */
.dropdown-divider {
  margin: 8px 0 !important;
  border-top: 1px solid var(--bs-border-color-translucent) !important;
}

/* Modern Dashboard Styles */

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

/* Typography Updates */
.hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 3.5rem;
  line-height: 1.2;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  text-align: center;
  color: #b0b0b0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Modern Hero Section */
.modern-hero-section {
  padding: 4rem 0;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 20px;
  margin-bottom: 3rem;
  overflow: hidden;
}

.modern-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.15), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-icon-container {
  margin-bottom: 2rem;
}

.hero-icon {
  display: inline-block;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-svg {
  width: 60px;
  height: 60px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Modern Stats Grid */
.modern-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.stat-card {
  position: relative;
  padding: 2rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-content {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.stat-icon-modern {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.stat-icon-modern svg {
  width: 30px;
  height: 30px;
  z-index: 2;
  position: relative;
}

.stat-icon-modern.brands {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.stat-icon-modern.ai-powered {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.stat-icon-modern.analytics {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.stat-info {
  flex: 1;
}

.stat-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.stat-description {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #b0b0b0;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Improve text readability for card descriptions */
.card-text.text-muted {
  color: #cbd5e1 !important;
  font-weight: 500;
}

.text-muted {
  color: #94a3b8 !important;
}

/* Glass Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hover-scale {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Feature Grid */
.modern-feature-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.feature-card {
  padding: 2rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.feature-icon.campaigns {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-icon.autoresponders {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.feature-icon.lists {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.feature-icon.smtp {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.feature-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffffff;
  margin: 0;
}

.feature-description {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #b0b0b0;
  line-height: 1.5;
  margin: 0;
}

/* Modern CTA Section */
.modern-cta-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 4rem 2rem;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: #b0b0b0;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Modern Primary Button - Orange CTA */
.btn-modern-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-modern-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-modern-primary:hover::before {
  left: 100%;
}

.btn-modern-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.4);
  color: white;
  text-decoration: none;
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.btn-icon svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.btn-modern-primary:hover .btn-icon svg {
  transform: translateX(2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .modern-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .stat-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* Modern Landing Page Styles */

/* Landing Hero Section */
.landing-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 50%;
  animation: float 20s infinite linear;
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation-delay: 7s;
  background: rgba(6, 182, 212, 0.1);
}

.shape-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 60%;
  animation-delay: 14s;
  background: rgba(245, 101, 101, 0.1);
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(90deg); }
  50% { transform: translateY(-40px) rotate(180deg); }
  75% { transform: translateY(-20px) rotate(270deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #e2e8f0;
  font-weight: 500;
}

.hero-icon {
  width: 20px;
  height: 20px;
  color: #8b5cf6;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-hero-primary:hover::before {
  left: 100%;
}

.btn-hero-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.4);
  color: white;
  text-decoration: none;
}

.btn-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-hero-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: transparent;
  color: #e2e8f0;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
}

.signin-icon {
  width: 20px;
  height: 20px;
}

.social-proof {
  color: #94a3b8;
}

.social-proof-text {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.stats-inline {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #8b5cf6;
}

.stat-label {
  font-size: 0.8rem;
  color: #64748b;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}

.video-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.video-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.video-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}

.video-badge svg {
  width: 16px;
  height: 16px;
  color: var(--bs-primary);
}

.dashboard-preview {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.preview-window {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-controls {
  display: flex;
  gap: 0.5rem;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.control.red { background: #ef4444; }
.control.yellow { background: #eab308; }
.control.green { background: #22c55e; }

.window-title {
  font-size: 0.9rem;
  color: #e2e8f0;
  font-weight: 500;
}

.window-content {
  padding: 2rem;
}

.preview-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.preview-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.primary-bg { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.success-bg { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.stat-info {
  color: #e2e8f0;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.stat-name {
  font-size: 0.8rem;
  color: #94a3b8;
}

.preview-chart {
  height: 80px;
  display: flex;
  align-items: end;
  gap: 0.5rem;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
}

.chart-bar {
  background: linear-gradient(to top, #8b5cf6, #a855f7);
  border-radius: 4px 4px 0 0;
  flex: 1;
  min-height: 10px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.chart-bar:hover {
  opacity: 1;
}

/* How It Works Section */
.how-it-works {
  padding: 6rem 0;
  background: #0f172a;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.process-step {
  position: relative;
  text-align: center;
}

.step-number {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  z-index: 2;
}

.step-content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem 2rem 2rem;
  transition: all 0.3s ease;
}

.step-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.step-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.step-icon svg {
  width: 30px;
  height: 30px;
  color: white;
}

.create-bg { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.automate-bg { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.track-bg { background: linear-gradient(135deg, #f59e0b, #d97706); }
.optimize-bg { background: linear-gradient(135deg, #10b981, #059669); }

.step-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.step-description {
  font-family: 'Inter', sans-serif;
  color: #94a3b8;
  line-height: 1.6;
}

/* Features Showcase */
.features-showcase {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon svg {
  width: 35px;
  height: 35px;
  color: white;
}

.brands-bg { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.ai-bg { background: linear-gradient(135deg, #f59e0b, #d97706); }
.analytics-bg { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.campaigns-bg { background: linear-gradient(135deg, #10b981, #059669); }
.auto-bg { background: linear-gradient(135deg, #ef4444, #dc2626); }
.lists-bg { background: linear-gradient(135deg, #8b5cf6, #a855f7); }

.feature-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.feature-description {
  font-family: 'Inter', sans-serif;
  color: #94a3b8;
  line-height: 1.6;
}

/* Social Proof Section */
.social-proof {
  padding: 6rem 0;
  background: #0f172a;
  text-align: center;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin: 3rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.trust-stat {
  text-align: center;
}

.trust-number {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.trust-label {
  font-family: 'Inter', sans-serif;
  color: #94a3b8;
  font-size: 1.1rem;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #e2e8f0;
  font-weight: 500;
}

.trust-badge svg {
  width: 20px;
  height: 20px;
  color: #10b981;
}

/* Final CTA */
.final-cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 3rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.3);
}

.btn-cta-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 25px 50px rgba(249, 115, 22, 0.4);
  color: white;
  text-decoration: none;
}

.cta-features {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.cta-feature svg {
  width: 16px;
  height: 16px;
  color: #10b981;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .cta-title {
    font-size: 2.25rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .stats-inline {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-divider {
    width: 30px;
    height: 1px;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .trust-badges {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-features {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Pricing Page Styles */
.pricing-hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 100%);
  text-align: center;
}

.pricing-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.pricing-hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}

.pricing-plans {
  padding: 4rem 0;
  background: #1a1a2e;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
  border: 2px solid #8b5cf6;
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.plan-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 1rem;
}

.currency {
  font-size: 1.5rem;
  color: #8b5cf6;
  font-weight: 600;
}

.amount {
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0.25rem;
}

.period {
  font-size: 1.25rem;
  color: #94a3b8;
}

.plan-description {
  color: #94a3b8;
  font-size: 1rem;
}

.pricing-features {
  margin-bottom: 2rem;
}

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

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: #e2e8f0;
}

.feature-check {
  width: 20px;
  height: 20px;
  color: #10b981;
  flex-shrink: 0;
}

.pricing-cta {
  text-align: center;
}

.btn-pricing-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
  width: 100%;
}

.btn-pricing-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.4);
  color: white;
  text-decoration: none;
}

.btn-pricing-primary.large {
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
  width: auto;
}

.btn-pricing-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: #e2e8f0;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-pricing-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
}

.pricing-faq {
  padding: 4rem 0;
  background: #0f172a;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-question h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: #8b5cf6;
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: #94a3b8;
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

.pricing-final-cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  text-align: center;
}

.cta-note {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Responsive Pricing */
@media (max-width: 768px) {
  .pricing-hero-title {
    font-size: 2.5rem;
  }
  
  .pricing-card.featured {
    transform: none;
    margin-top: 1rem;
  }
  
  .amount {
    font-size: 3rem;
  }
}

/* Quill.js Dark Theme Styling */
.quill-container {
  background: var(--bs-dark);
  border-radius: 8px;
  border: 1px solid var(--bs-border-color);
}

.ql-toolbar {
  background: var(--bs-gray-800) !important;
  border-color: var(--bs-border-color) !important;
  border-radius: 8px 8px 0 0 !important;
}

.ql-container {
  background: var(--bs-dark) !important;
  border-color: var(--bs-border-color) !important;
  border-radius: 0 0 8px 8px !important;
  color: var(--bs-body-color) !important;
}

.ql-editor {
  color: var(--bs-body-color) !important;
  min-height: 200px;
  font-family: var(--bs-font-sans-serif);
  font-size: 1rem;
  line-height: 1.5;
}

.ql-editor p {
  color: var(--bs-body-color) !important;
}

.ql-editor.ql-blank::before {
  color: var(--bs-secondary-color) !important;
  font-style: italic;
}

/* Toolbar button styling */
.ql-toolbar .ql-stroke {
  stroke: var(--bs-body-color) !important;
}

.ql-toolbar .ql-fill {
  fill: var(--bs-body-color) !important;
}

.ql-toolbar button {
  color: var(--bs-body-color) !important;
}

.ql-toolbar button:hover {
  background: var(--bs-gray-700) !important;
}

.ql-toolbar button.ql-active {
  background: var(--bs-primary) !important;
  color: white !important;
}

.ql-toolbar button.ql-active .ql-stroke {
  stroke: white !important;
}

.ql-toolbar button.ql-active .ql-fill {
  fill: white !important;
}

/* Dropdown styling */
.ql-toolbar .ql-picker {
  color: var(--bs-body-color) !important;
}

.ql-toolbar .ql-picker-options {
  background: var(--bs-dark) !important;
  border: 1px solid var(--bs-border-color) !important;
  border-radius: 4px;
}

.ql-toolbar .ql-picker-item {
  color: var(--bs-body-color) !important;
}

.ql-toolbar .ql-picker-item:hover {
  background: var(--bs-gray-700) !important;
}

.ql-toolbar .ql-picker-label {
  color: var(--bs-body-color) !important;
}

.ql-toolbar .ql-picker-label:hover {
  background: var(--bs-gray-700) !important;
}

/* Snow theme specific adjustments */
.ql-snow .ql-tooltip {
  background: var(--bs-dark) !important;
  border: 1px solid var(--bs-border-color) !important;
  color: var(--bs-body-color) !important;
  border-radius: 4px;
}

.ql-snow .ql-tooltip input {
  background: var(--bs-gray-800) !important;
  border: 1px solid var(--bs-border-color) !important;
  color: var(--bs-body-color) !important;
}

.ql-snow .ql-tooltip a {
  color: var(--bs-primary) !important;
}

/* Selection styling */
.ql-editor .ql-selected {
  background: var(--bs-primary-bg-subtle) !important;
}

/* Focus styling */
.ql-container.ql-snow {
  border-color: var(--bs-border-color) !important;
}

.quill-container:focus-within .ql-container {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25) !important;
}

.quill-container:focus-within .ql-toolbar {
  border-color: var(--bs-primary) !important;
}

/* Email Editor Specific Styling */
.email-editor-container {
  background: var(--bs-body-bg);
  border-radius: 12px;
  border: 1px solid var(--bs-border-color);
  overflow: hidden;
  margin-bottom: 1rem;
}

.email-editor-header {
  background: var(--bs-gray-800);
  padding: 1rem;
  border-bottom: 1px solid var(--bs-border-color);
  display: flex;
  justify-content: between;
  align-items: center;
}

.email-editor-title {
  color: var(--bs-body-color);
  font-weight: 600;
  margin: 0;
}

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

.email-editor-content {
  padding: 0;
}

.email-editor-content .ql-toolbar {
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
}

.email-editor-content .ql-container {
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
}

/* Email Preview Styling */
.email-preview {
  background: white;
  color: #333;
  padding: 2rem;
  margin: 1rem 0;
  border-radius: 8px;
  border: 1px solid var(--bs-border-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.email-preview h1,
.email-preview h2,
.email-preview h3,
.email-preview h4,
.email-preview h5,
.email-preview h6 {
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.email-preview p {
  color: #333;
  margin-bottom: 1rem;
}

.email-preview a {
  color: #007bff;
  text-decoration: underline;
}

.email-preview ul,
.email-preview ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.email-preview li {
  margin-bottom: 0.25rem;
}

.email-preview strong {
  font-weight: bold;
}

.email-preview em {
  font-style: italic;
}

/* Better dropdown button styling */
.btn[data-bs-toggle="dropdown"] {
  position: relative;
  z-index: 1;
}

/* Ensure dropdown content is always visible */
.dropdown {
  position: static !important;
}

/* Force dropdown visibility in constrained containers */
.card .dropdown,
.list-group-item .dropdown {
  position: static !important;
}

.card .dropdown-menu,
.list-group-item .dropdown-menu {
  position: fixed !important;
  z-index: 1055 !important;
}

/* Special handling for small screens */
@media (max-width: 768px) {
  .dropdown-menu {
    min-width: 160px !important;
    max-width: 90vw !important;
  }
  
  .dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
  }
}

/* Enhanced Tooltip and Popover Positioning */
.tooltip {
  z-index: 9999 !important;
  position: absolute !important;
  max-width: 300px !important;
  pointer-events: none !important;
}

.tooltip-inner {
  background-color: rgba(0, 0, 0, 0.9) !important;
  color: white !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  text-align: center !important;
  word-wrap: break-word !important;
  white-space: nowrap !important;
}

/* Prevent tooltip overlap by ensuring unique positioning */
.tooltip.bs-tooltip-top {
  margin-bottom: 5px !important;
}

.tooltip.bs-tooltip-bottom {
  margin-top: 5px !important;
}

.tooltip.bs-tooltip-start {
  margin-right: 5px !important;
}

.tooltip.bs-tooltip-end {
  margin-left: 5px !important;
}

.popover {
  z-index: 9999 !important;
  position: absolute !important;
  max-width: 320px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid var(--bs-border-color) !important;
}

.popover-body {
  padding: 12px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  word-wrap: break-word !important;
}

.popover-header {
  padding: 8px 12px !important;
  font-weight: 600 !important;
  border-bottom: 1px solid var(--bs-border-color-translucent) !important;
}

/* Ensure tooltips don't get clipped by overflow containers */
.overflow-hidden .tooltip,
.overflow-auto .tooltip,
.overflow-scroll .tooltip {
  position: fixed !important;
}

/* Better warning message styling */
.warning-tooltip .tooltip-inner {
  background-color: var(--bs-warning) !important;
  color: var(--bs-dark) !important;
}

.danger-tooltip .tooltip-inner {
  background-color: var(--bs-danger) !important;
  color: white !important;
}

/* Ensure tooltips are always visible above other content */
.modal .tooltip,
.modal .popover {
  z-index: 10000 !important;
}

.offcanvas .tooltip,
.offcanvas .popover {
  z-index: 10000 !important;
}

/* Fix for tooltips on buttons in button groups */
.btn-group .tooltip,
.btn-toolbar .tooltip {
  z-index: 9999 !important;
}

/* Better positioning for tooltips on small screens */
@media (max-width: 576px) {
  .tooltip {
    max-width: 250px !important;
  }
  
  .tooltip-inner {
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
}

/* Theme Toggle Button - Dark Theme Specific */
.navbar .theme-toggle.nav-link {
  border: none;
  background: none;
  padding: 0.5rem 1rem;
  color: var(--bs-navbar-color);
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.navbar .theme-toggle.nav-link:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  text-decoration: none;
}

.navbar .theme-toggle.nav-link:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
  outline: none;
}

.theme-toggle i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.theme-toggle:hover i {
  transform: scale(1.1);
}

/* Consistent CTA Button System */
/* Green CTA Buttons - For growth, success, and positive actions */
.btn-cta-green {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-cta-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-cta-green:hover::before {
  left: 100%;
}

.btn-cta-green:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
  color: white;
  text-decoration: none;
}

/* Small Green Button */
.btn-sm-green {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-sm-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
  color: white;
  text-decoration: none;
}

/* Orange CTA Buttons - For primary actions and conversion */
.btn-cta-orange {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-cta-orange::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-cta-orange:hover::before {
  left: 100%;
}

.btn-cta-orange:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.4);
  color: white;
  text-decoration: none;
}

/* Small Orange Button */
.btn-sm-orange {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
}

.btn-sm-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
  color: white;
  text-decoration: none;
}
