/* ALwrity Co-Pilot Compact Styling - 60% Smaller & More Efficient */

/* ===== COMPACT SIDEBAR CONTAINER ===== */
.alwrity-copilot-sidebar .copilot-sidebar-container,
.alwrity-copilot-sidebar .copilotkit-sidebar,
.alwrity-copilot-sidebar .copilotkit-chat-container {
  /* Reduce overall width by 60% */
  width: 40% !important; /* Reduced from 100% */
  max-width: 320px !important; /* Reduced from typical 800px+ */
  min-width: 280px !important;
  
  /* Compact height */
  height: 85vh !important; /* Reduced from 100vh */
  max-height: 600px !important;
  
  /* Reduced padding and margins */
  padding: 8px !important; /* Reduced from 20px+ */
  margin: 8px !important;
  
  /* Compact border radius */
  border-radius: 8px !important; /* Reduced from 16px+ */
  
  /* Subtle shadow */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important; /* Reduced from 18px+ */
}

/* ===== COMPACT TRIGGER BUTTONS ===== */
.alwrity-copilot-sidebar .copilot-sidebar-trigger,
.alwrity-copilot-sidebar [data-testid="copilot-sidebar-trigger"],
.alwrity-copilot-sidebar .copilot-sidebar-trigger-button,
.alwrity-copilot-sidebar button[aria-label*="copilot"],
.alwrity-copilot-sidebar button[aria-label*="assistant"],
.alwrity-copilot-sidebar .copilot-sidebar-trigger > button,
.alwrity-copilot-sidebar .copilot-sidebar-trigger > div,
.alwrity-copilot-sidebar button[class*="trigger"],
.alwrity-copilot-sidebar button[class*="floating"],
.alwrity-copilot-sidebar button[class*="assistant"],
.alwrity-copilot-sidebar button[class*="copilot"],
.alwrity-copilot-sidebar [data-testid*="trigger"],
.alwrity-copilot-sidebar [data-testid*="assistant"],
.alwrity-copilot-sidebar [data-testid*="copilot"] {
  /* Reduce button size by 60% */
  width: 32px !important; /* Reduced from 48px */
  height: 32px !important; /* Reduced from 48px */
  border-radius: 50% !important;
  
  /* Compact shadow */
  box-shadow: 0 2px 8px rgba(10, 102, 194, 0.25) !important; /* Reduced from 12px */
  transition: all 0.2s ease !important; /* Reduced from 0.3s */
}

/* Compact hover effects */
.alwrity-copilot-sidebar .copilot-sidebar-trigger:hover,
.alwrity-copilot-sidebar [data-testid="copilot-sidebar-trigger"]:hover,
.alwrity-copilot-sidebar .copilot-sidebar-trigger-button:hover,
.alwrity-copilot-sidebar button[aria-label*="copilot"]:hover,
.alwrity-copilot-sidebar button[aria-label*="assistant"]:hover,
.alwrity-copilot-sidebar .copilot-sidebar-trigger > button:hover,
.alwrity-copilot-sidebar .copilot-sidebar-trigger > div:hover,
.alwrity-copilot-sidebar button[class*="trigger"]:hover,
.alwrity-copilot-sidebar button[class*="floating"]:hover,
.alwrity-copilot-sidebar button[class*="assistant"]:hover,
.alwrity-copilot-sidebar button[class*="copilot"]:hover {
  transform: scale(1.05) !important; /* Reduced from 1.1 */
  box-shadow: 0 3px 12px rgba(10, 102, 194, 0.35) !important; /* Reduced from 20px */
}

/* ===== COMPACT SIDEBAR HEADER ===== */
.alwrity-copilot-sidebar .copilot-sidebar-header {
  background: linear-gradient(135deg, #0a66c2 0%, #0056b3 100%) !important;
  border-bottom: 1px solid #ffffff20 !important; /* Reduced from 2px */
  padding: 8px 12px !important; /* Reduced from 16px+ */
  margin-bottom: 8px !important; /* Reduced from 20px+ */
}

/* Compact sidebar title */
.alwrity-copilot-sidebar .copilot-sidebar-title {
  color: #ffffff !important;
  font-weight: 600 !important; /* Reduced from 700 */
  font-size: 14px !important; /* Reduced from 18px */
  display: flex !important;
  align-items: center !important;
  gap: 6px !important; /* Reduced from 8px */
}

/* ===== COMPACT MESSAGE STYLING ===== */
.alwrity-copilot-sidebar .copilot-message,
.alwrity-copilot-sidebar [data-testid="copilot-message"],
.alwrity-copilot-sidebar .message,
.alwrity-copilot-sidebar .chat-message,
.alwrity-copilot-sidebar .assistant-message,
.alwrity-copilot-sidebar .user-message {
  /* Reduce spacing by 60% */
  border-radius: 8px !important; /* Reduced from 16px */
  margin: 6px 0 !important; /* Reduced from 12px */
  padding: 8px 12px !important; /* Reduced from 16px 20px */
  
  /* Maximize message width for chat */
  max-width: 95% !important; /* Increased from 85% for better space usage */
  width: fit-content !important;
  
  /* Compact shadows and effects */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important; /* Reduced from 12px */
  transition: all 0.15s ease !important; /* Reduced from 0.2s */
  
  /* Compact typography */
  line-height: 1.4 !important; /* Reduced from 1.5 */
  font-size: 13px !important; /* Reduced from 14px */
}

/* Compact user message styling */
.alwrity-copilot-sidebar .copilot-message.user,
.alwrity-copilot-sidebar [data-testid="copilot-message"].user,
.alwrity-copilot-sidebar .message.user,
.alwrity-copilot-sidebar .chat-message.user,
.alwrity-copilot-sidebar .user-message {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%) !important;
  border: 1px solid #d1e7ff !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  color: #1a365d !important;
  font-weight: 500 !important;
}

/* Compact user message arrow */
.alwrity-copilot-sidebar .copilot-message.user::before,
.alwrity-copilot-sidebar [data-testid="copilot-message"].user::before,
.alwrity-copilot-sidebar .message.user::before,
.alwrity-copilot-sidebar .chat-message.user::before,
.alwrity-copilot-sidebar .user-message::before {
  content: '' !important;
  position: absolute !important;
  right: -6px !important; /* Reduced from -8px */
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 6px solid #d1e7ff !important; /* Reduced from 8px */
  border-top: 4px solid transparent !important; /* Reduced from 6px */
  border-bottom: 4px solid transparent !important; /* Reduced from 6px */
}

/* Compact assistant message styling */
.alwrity-copilot-sidebar .copilot-message.assistant,
.alwrity-copilot-sidebar [data-testid="copilot-message"].assistant,
.alwrity-copilot-sidebar .message.assistant,
.alwrity-copilot-sidebar .chat-message.assistant,
.alwrity-copilot-sidebar .assistant-message {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%) !important;
  border: 1px solid #e1e8ed !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  color: #2d3748 !important;
  font-weight: 400 !important;
}

/* Compact assistant message arrow */
.alwrity-copilot-sidebar .copilot-message.assistant::before,
.alwrity-copilot-sidebar [data-testid="copilot-message"].assistant::before,
.alwrity-copilot-sidebar .message.assistant::before,
.alwrity-copilot-sidebar .chat-message.assistant::before,
.alwrity-copilot-sidebar .assistant-message::before {
  content: '' !important;
  position: absolute !important;
  left: -6px !important; /* Reduced from -8px */
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-right: 6px solid #e1e8ed !important; /* Reduced from 8px */
  border-top: 4px solid transparent !important; /* Reduced from 6px */
  border-bottom: 4px solid transparent !important; /* Reduced from 6px */
}

/* Compact message hover effects */
.alwrity-copilot-sidebar .copilot-message:hover,
.alwrity-copilot-sidebar [data-testid="copilot-message"]:hover,
.alwrity-copilot-sidebar .message:hover,
.alwrity-copilot-sidebar .chat-message:hover,
.alwrity-copilot-sidebar .assistant-message:hover,
.alwrity-copilot-sidebar .user-message:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important; /* Reduced from 20px */
}

/* ===== COMPACT MESSAGE CONTENT ===== */
.alwrity-copilot-sidebar .copilot-message p,
.alwrity-copilot-sidebar [data-testid="copilot-message"] p,
.alwrity-copilot-sidebar .message p,
.alwrity-copilot-sidebar .chat-message p,
.alwrity-copilot-sidebar .assistant-message p,
.alwrity-copilot-sidebar .user-message p {
  margin: 0 0 8px 0 !important; /* Reduced from 12px */
  line-height: 1.4 !important; /* Reduced from 1.6 */
  font-size: 13px !important; /* Reduced from 14px */
}

.alwrity-copilot-sidebar .copilot-message p:last-child,
.alwrity-copilot-sidebar [data-testid="copilot-message"] p:last-child,
.alwrity-copilot-sidebar .message p:last-child,
.alwrity-copilot-sidebar .chat-message p:last-child,
.alwrity-copilot-sidebar .assistant-message p:last-child,
.alwrity-copilot-sidebar .user-message p:last-child {
  margin-bottom: 0 !important;
}

/* ===== COMPACT CODE BLOCKS ===== */
.alwrity-copilot-sidebar .copilot-message code,
.alwrity-copilot-sidebar [data-testid="copilot-message"] code,
.alwrity-copilot-sidebar .message code,
.alwrity-copilot-sidebar .chat-message code,
.alwrity-copilot-sidebar .assistant-message code,
.alwrity-copilot-sidebar .user-message code {
  background: #f7fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 4px !important; /* Reduced from 6px */
  padding: 1px 4px !important; /* Reduced from 2px 6px */
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
  font-size: 12px !important; /* Reduced from 13px */
  color: #2d3748 !important;
}

/* ===== COMPACT BUTTON STYLING ===== */
.alwrity-copilot-sidebar .copilot-button,
.alwrity-copilot-sidebar button,
.alwrity-copilot-sidebar .btn {
  background: linear-gradient(135deg, #0a66c2 0%, #0056b3 100%) !important;
  border: none !important;
  border-radius: 6px !important; /* Reduced from 10px */
  color: white !important;
  font-weight: 500 !important; /* Reduced from 600 */
  
  /* Reduce padding by 60% */
  padding: 6px 12px !important; /* Reduced from 10px 20px */
  
  /* Compact transitions */
  transition: all 0.15s ease !important; /* Reduced from 0.2s */
  
  /* Compact shadows */
  box-shadow: 0 1px 4px rgba(10, 102, 194, 0.25) !important; /* Reduced from 8px */
  
  /* Smaller font size */
  font-size: 12px !important; /* Reduced from 14px */
}

.alwrity-copilot-sidebar .copilot-button:hover,
.alwrity-copilot-sidebar button:hover,
.alwrity-copilot-sidebar .btn:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004494 100%) !important;
  transform: translateY(-1px) !important; /* Reduced from -2px */
  box-shadow: 0 2px 8px rgba(10, 102, 194, 0.35) !important; /* Reduced from 16px */
}

/* ===== COMPACT INPUT STYLING ===== */
.alwrity-copilot-sidebar .copilot-input,
.alwrity-copilot-sidebar input,
.alwrity-copilot-sidebar textarea {
  border: 1px solid #e2e8f0 !important; /* Reduced from 2px */
  border-radius: 6px !important; /* Reduced from 12px */
  
  /* Reduce padding by 60% */
  padding: 8px 12px !important; /* Reduced from 14px 18px */
  
  /* Compact font size */
  font-size: 13px !important; /* Reduced from 14px */
  
  /* Compact transitions */
  transition: all 0.15s ease !important; /* Reduced from 0.2s */
  
  background: #ffffff !important;
  color: #2d3748 !important;
}

.alwrity-copilot-sidebar .copilot-input:focus,
.alwrity-copilot-sidebar input:focus,
.alwrity-copilot-sidebar textarea:focus {
  border-color: #0a66c2 !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.1) !important; /* Reduced from 3px */
  transform: translateY(-1px) !important;
}

/* ===== COMPACT SUGGESTION CHIPS ===== */
.alwrity-copilot-sidebar .copilot-suggestion,
.alwrity-copilot-sidebar .suggestion,
.alwrity-copilot-sidebar .chip {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important; /* Reduced from 24px */
  
  /* Reduce padding by 60% */
  padding: 6px 12px !important; /* Reduced from 10px 18px */
  
  /* Compact margins */
  margin: 3px !important; /* Reduced from 6px */
  
  cursor: pointer !important;
  transition: all 0.15s ease !important; /* Reduced from 0.2s */
  
  /* Compact font size */
  font-size: 12px !important; /* Reduced from 13px */
  color: #475569 !important;
  font-weight: 500 !important;
  
  /* Compact shadows */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important; /* Reduced from 3px */
}

.alwrity-copilot-sidebar .copilot-suggestion:hover,
.alwrity-copilot-sidebar .suggestion:hover,
.alwrity-copilot-sidebar .chip:hover {
  background: linear-gradient(135deg, #0a66c2 0%, #0056b3 100%) !important;
  color: white !important;
  border-color: #0a66c2 !important;
  transform: translateY(-1px) !important; /* Reduced from -2px */
  box-shadow: 0 2px 6px rgba(10, 102, 194, 0.25) !important; /* Reduced from 12px */
}

/* ===== COMPACT LOADING STATES ===== */
.alwrity-copilot-sidebar .copilot-loading,
.alwrity-copilot-sidebar .loading {
  color: #0a66c2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important; /* Reduced from 8px */
  font-size: 12px !important; /* Reduced from 14px */
}

/* ===== COMPACT TYPING INDICATOR ===== */
.alwrity-copilot-sidebar .typing-indicator,
.alwrity-copilot-sidebar .is-typing {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important; /* Reduced from 4px */
  padding: 6px 12px !important; /* Reduced from 8px 16px */
  color: #64748b !important;
  font-style: italic !important;
  font-size: 12px !important; /* Reduced from 14px */
}

.alwrity-copilot-sidebar .typing-dot {
  width: 4px !important; /* Reduced from 6px */
  height: 4px !important; /* Reduced from 6px */
  border-radius: 50% !important;
  background: #0a66c2 !important;
  animation: typing 1.2s infinite ease-in-out !important; /* Reduced from 1.4s */
}

/* ===== COMPACT TOOL CALL STYLING ===== */
.alwrity-copilot-sidebar .tool-call,
.alwrity-copilot-sidebar .function-call {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important; /* Reduced from 8px */
  padding: 8px 12px !important; /* Reduced from 12px 16px */
  margin: 4px 0 !important; /* Reduced from 8px */
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
  font-size: 11px !important; /* Reduced from 12px */
  color: #475569 !important;
  border-left: 3px solid #0a66c2 !important; /* Reduced from 4px */
}

/* ===== COMPACT ERROR/SUCCESS MESSAGE STYLING ===== */
.alwrity-copilot-sidebar .error-message,
.alwrity-copilot-sidebar .error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
  border-left: 3px solid #dc2626 !important; /* Reduced from 4px */
  padding: 8px 12px !important; /* Reduced from 12px 16px */
  border-radius: 6px !important; /* Reduced from 8px */
  font-size: 12px !important; /* Reduced from 14px */
}

.alwrity-copilot-sidebar .success-message,
.alwrity-copilot-sidebar .success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
  border: 1px solid #bbf7d0 !important;
  color: #16a34a !important;
  border-left: 3px solid #16a34a !important; /* Reduced from 4px */
  padding: 8px 12px !important; /* Reduced from 12px 16px */
  border-radius: 6px !important; /* Reduced from 8px */
  font-size: 12px !important; /* Reduced from 14px */
}

/* ===== COMPACT SCROLLBAR STYLING ===== */
.alwrity-copilot-sidebar ::-webkit-scrollbar {
  width: 6px !important; /* Reduced from 10px */
  height: 6px !important; /* Reduced from 10px */
}

.alwrity-copilot-sidebar ::-webkit-scrollbar-thumb {
  background: rgba(10, 102, 194, 0.3) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 6px !important; /* Reduced from 10px */
}

.alwrity-copilot-sidebar ::-webkit-scrollbar-track {
  background: rgba(10, 102, 194, 0.05) !important;
  border-radius: 6px !important; /* Reduced from 10px */
}

/* ===== COMPACT SUGGESTIONS GRID ===== */
.alwrity-copilot-sidebar .copilotkit-suggestions,
.alwrity-copilot-sidebar .copilot-suggestions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important; /* Reduced from 10px */
  margin: 8px 0 !important; /* Reduced from 16px+ */
}

@media (min-width: 420px) {
  .alwrity-copilot-sidebar .copilotkit-suggestions,
  .alwrity-copilot-sidebar .copilot-suggestions {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important; /* Reduced from 12px */
  }
}

/* ===== COMPACT CHAT INPUT AREA ===== */
.alwrity-copilot-sidebar .copilotkit-input-container,
.alwrity-copilot-sidebar .copilot-input-container {
  padding: 8px !important; /* Reduced from 16px+ */
  margin: 8px 0 !important; /* Reduced from 16px+ */
  border-top: 1px solid rgba(10, 102, 194, 0.1) !important;
}

/* ===== COMPACT CHAT MESSAGES CONTAINER ===== */
.alwrity-copilot-sidebar .copilotkit-messages,
.alwrity-copilot-sidebar .copilot-messages,
.alwrity-copilot-sidebar .chat-messages {
  padding: 8px !important; /* Reduced from 16px+ */
  margin: 0 !important;
  max-height: 70vh !important; /* Ensure chat takes most space */
  overflow-y: auto !important;
}

/* ===== COMPACT INITIAL MESSAGE ===== */
.alwrity-copilot-sidebar .copilotkit-initial-message,
.alwrity-copilot-sidebar .copilot-initial-message {
  padding: 12px !important; /* Reduced from 20px+ */
  margin: 8px 0 !important; /* Reduced from 16px+ */
  font-size: 13px !important; /* Reduced from 16px+ */
  line-height: 1.4 !important; /* Reduced from 1.6 */
}

/* ===== COMPACT SUBTITLE ===== */
.alwrity-copilot-sidebar .copilotkit-subtitle,
.alwrity-copilot-sidebar .copilot-subtitle {
  font-size: 12px !important; /* Reduced from 14px+ */
  color: #64748b !important;
  margin: 4px 0 8px 0 !important; /* Reduced from 8px+ */
  line-height: 1.3 !important; /* Reduced from 1.5 */
}

/* ===== COMPACT ICONS IN SUGGESTIONS ===== */
.alwrity-copilot-sidebar .copilot-suggestion .icon,
.alwrity-copilot-sidebar .copilotkit-suggestion .icon,
.alwrity-copilot-sidebar .copilotkit-suggestions button .icon {
  width: 14px !important; /* Reduced from 18px+ */
  height: 14px !important; /* Reduced from 18px+ */
  margin-right: 6px !important; /* Reduced from 8px+ */
}

/* ===== COMPACT CLOSE BUTTON ===== */
.alwrity-copilot-sidebar .copilotkit-close,
.alwrity-copilot-sidebar .copilot-close,
.alwrity-copilot-sidebar button[aria-label*="close"],
.alwrity-copilot-sidebar button[aria-label*="Close"] {
  width: 24px !important; /* Reduced from 32px+ */
  height: 24px !important; /* Reduced from 32px+ */
  border-radius: 50% !important;
  padding: 0 !important;
  font-size: 12px !important; /* Reduced from 16px+ */
}

/* ===== COMPACT ANIMATIONS ===== */
@keyframes typing {
  0%, 60%, 100% { 
    opacity: 0.4; 
    transform: scale(0.8); /* Reduced from 1.0 */
  }
  30% { 
    opacity: 1; 
    transform: scale(1.0); 
  }
}

/* ===== COMPACT RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .alwrity-copilot-sidebar .copilot-sidebar-container,
  .alwrity-copilot-sidebar .copilotkit-sidebar,
  .alwrity-copilot-sidebar .copilotkit-chat-container {
    width: 90% !important; /* Mobile: take more width */
    max-width: none !important;
    min-width: 280px !important;
    height: 80vh !important;
  }
  
  .alwrity-copilot-sidebar .copilotkit-suggestions,
  .alwrity-copilot-sidebar .copilot-suggestions {
    grid-template-columns: 1fr !important; /* Single column on mobile */
    gap: 4px !important; /* Even more compact on mobile */
  }
}

/* ===== COMPACT FOCUS STATES ===== */
.alwrity-copilot-sidebar .copilot-suggestion:focus-visible,
.alwrity-copilot-sidebar .copilotkit-suggestion:focus-visible,
.alwrity-copilot-sidebar .copilotkit-suggestions button:focus-visible,
.alwrity-copilot-sidebar .copilot-suggestions button:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.3) !important; /* Reduced from 4px */
}

/* ===== COMPACT ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .alwrity-copilot-sidebar * {
    transition: none !important;
    animation: none !important;
  }
}

/* ========================================
   IMAGE GENERATION SUGGESTIONS COMPONENT
   ======================================== */

.image-generation-suggestions {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  max-width: 100%;
  margin: 0 auto;
}

/* Main Suggestion Card */
.suggestion-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

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

.suggestion-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.suggestion-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.suggestion-content {
  flex: 1;
}

.suggestion-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.suggestion-description {
  font-size: 16px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.suggestion-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #475569;
}

.generate-prompts-btn {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.generate-prompts-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.generate-prompts-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Prompt Selection */
.prompts-selection {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.prompts-header {
  text-align: center;
  margin-bottom: 24px;
}

.prompts-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.prompts-subtitle {
  font-size: 16px;
  color: #64748b;
  margin: 0;
}

.prompts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .prompts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.prompt-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.prompt-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -8px rgba(59, 130, 246, 0.3);
}

.prompt-card.selected {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  box-shadow: 0 8px 25px -8px rgba(59, 130, 246, 0.3);
}

.prompt-header {
  margin-bottom: 16px;
}

.prompt-style-badge {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prompt-content {
  margin-bottom: 20px;
}

.prompt-description {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.prompt-preview {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  border-left: 3px solid #e2e8f0;
}

.prompt-actions {
  text-align: center;
}

.select-prompt-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.select-prompt-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.back-btn {
  background: transparent;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.back-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Image Generation Progress */
.generation-progress {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.progress-title {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-status {
  margin-bottom: 12px;
}

.progress-text {
  font-size: 16px;
  font-weight: 500;
  color: #475569;
}

.progress-message {
  font-size: 14px;
  color: #64748b;
  font-style: italic;
}

/* Generated Image Display */
.generated-image {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.image-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.image-title {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.image-preview {
  text-align: center;
  margin-bottom: 24px;
}

.preview-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.image-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .image-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

.action-btn {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.action-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.action-btn.secondary {
  background: white;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.action-btn.secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.image-metadata {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
}

.metadata-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.metadata-item:last-child {
  border-bottom: none;
}

.metadata-label {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}

.metadata-value {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

/* Error Display */
.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.error-text {
  flex: 1;
  color: #dc2626;
  font-size: 14px;
  font-weight: 500;
}

.error-dismiss {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.error-dismiss:hover {
  background: rgba(220, 38, 38, 0.1);
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .suggestion-card,
  .prompts-selection,
  .generation-progress,
  .generated-image {
    padding: 16px;
    margin-bottom: 16px;
  }

  .suggestion-title {
    font-size: 18px;
  }

  .prompts-title {
    font-size: 20px;
  }

  .suggestion-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .suggestion-icon {
    align-self: center;
  }

  .prompts-grid {
    gap: 16px;
  }

  .image-actions {
    grid-template-columns: 1fr;
  }

  .action-btn {
    padding: 14px 16px;
    font-size: 16px;
  }
}

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

.image-generation-suggestions > * {
  animation: fadeIn 0.3s ease-out;
}

/* Loading States */
.generate-prompts-btn:disabled,
.select-prompt-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Focus States for Accessibility */
.generate-prompts-btn:focus,
.select-prompt-btn:focus,
.back-btn:focus,
.action-btn:focus,
.error-dismiss:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
  .suggestion-card,
  .prompts-selection,
  .generation-progress,
  .generated-image {
    background: #1e293b;
    border-color: #334155;
  }

  .suggestion-title,
  .prompts-title,
  .progress-title,
  .image-title {
    color: #f1f5f9;
  }

  .suggestion-description,
  .prompts-subtitle,
  .progress-text,
  .progress-message {
    color: #cbd5e1;
  }

  .prompt-card {
    background: #334155;
    border-color: #475569;
  }

  .prompt-description {
    color: #f1f5f9;
  }

  .prompt-preview {
    background: #475569;
    border-left-color: #64748b;
    color: #cbd5e1;
  }

  .image-metadata {
    background: #334155;
  }

  .metadata-label {
    color: #cbd5e1;
  }

  .metadata-value {
    color: #f1f5f9;
  }
}

/* ========================================
   IMAGE GENERATION DEMO COMPONENT
   ======================================== */

.image-generation-demo {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.demo-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 32px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
}

.demo-title {
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.demo-description {
  font-size: 18px;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.demo-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .demo-content {
    grid-template-columns: 1fr 1fr;
  }
}

.content-preview,
.image-generation-section {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.content-title,
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.content-display {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
}

.content-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.content-type-badge {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.content-topic {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.content-industry {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.content-text {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  white-space: pre-wrap;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.demo-footer {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.footer-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 24px 0;
  text-align: center;
}

.workflow-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .workflow-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -8px rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.step-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.step-content p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Mobile Optimizations for Demo */
@media (max-width: 640px) {
  .image-generation-demo {
    padding: 16px;
  }

  .demo-header {
    padding: 20px;
    margin-bottom: 24px;
  }

  .demo-title {
    font-size: 24px;
  }

  .demo-description {
    font-size: 16px;
  }

  .demo-content {
    gap: 20px;
    margin-bottom: 24px;
  }

  .content-preview,
  .image-generation-section,
  .demo-footer {
    padding: 16px;
  }

  .workflow-steps {
    gap: 16px;
  }

  .step {
    padding: 16px;
  }
}

/* Demo-specific image suggestions styling */
.demo-image-suggestions {
  margin: 0;
}

.demo-image-suggestions .suggestion-card {
  margin-bottom: 0;
}

/* Animation for demo elements */
.image-generation-demo > * {
  animation: fadeInUp 0.5s ease-out;
}

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

/* Stagger animation for workflow steps */
.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }

/* Hover effects for interactive elements */
.content-display:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

/* Focus states for accessibility */
.content-preview:focus-within,
.image-generation-section:focus-within,
.demo-footer:focus-within {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
