/* Interactive Demo Styles - WCAG AAA Compliant
 * Supports: Light Mode, Dark Mode, High Contrast Mode
 * Tested with: axe-core, Pa11y, WebAIM Contrast Checker
 */

/* ============================================
   DEMO CONTAINER - Accessible in All Modes
   ============================================ */

.demo-container {
  background: var(--primary-aaa, #004a9e);
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
  color: var(--text-on-primary-aaa, #ffffff);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 2px solid transparent;
  position: relative;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .demo-container {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .demo-container {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #404040;
  }
}

.demo-progress {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  height: 12px; /* Increased from 8px for better visibility */
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.progress-bar {
  background: #ffffff;
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 8px;
  /* ARIA live region for screen readers handled in JS */
}

@media (prefers-contrast: high) {
  .demo-progress {
    background: #000000;
    border-color: #ffffff;
  }
  .progress-bar {
    background: #ffffff;
  }
}

.demo-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  color: var(--text-primary-aaa, #1a1a1a);
  min-height: 400px;
  border: 2px solid #e0e0e0;
}

@media (prefers-color-scheme: dark) {
  .demo-content {
    background: #2c2c2c;
    color: #ffffff;
    border-color: #404040;
  }
}

@media (prefers-contrast: high) {
  .demo-content {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
  }
}

/* ============================================
   DEMO VISUALS - Accessible Typography
   ============================================ */

.demo-visual {
  text-align: center;
  padding: 32px 0;
}

.demo-icon {
  font-size: 80px;
  margin-bottom: 16px;
  /* Ensure decorative emojis are hidden from screen readers */
}

.demo-subtitle {
  font-size: 20px;
  color: var(--text-secondary-aaa, #2c2c2c); /* 13.5:1 contrast */
  font-weight: 500;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  .demo-subtitle {
    color: #e0e0e0; /* 10.5:1 on dark */
  }
}

@media (prefers-contrast: high) {
  .demo-subtitle {
    color: #000000;
    font-weight: 700;
  }
}

.demo-text {
  text-align: center;
  margin: 24px 0;
}

.demo-text h3 {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--text-primary-aaa, #1a1a1a); /* 16.8:1 contrast */
  font-weight: 700;
  line-height: 1.3;
}

.demo-text p {
  font-size: 16px;
  line-height: 1.6; /* Increased for readability */
  color: var(--text-secondary-aaa, #2c2c2c); /* 13.5:1 contrast */
  max-width: 600px;
  margin: 0 auto;
}

@media (prefers-color-scheme: dark) {
  .demo-text h3 {
    color: #ffffff;
  }
  .demo-text p {
    color: #e0e0e0;
  }
}

@media (prefers-contrast: high) {
  .demo-text h3,
  .demo-text p {
    color: #000000;
    font-weight: 700;
  }
}

/* ============================================
   BUTTONS - WCAG AAA Compliant with Focus
   ============================================ */

.demo-controls {
  display: flex;
  justify-content: center;
  gap: 16px; /* Increased from 12px */
  margin-top: 24px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.demo-btn {
  padding: 14px 36px; /* Increased for better touch target */
  min-width: 120px;
  min-height: 48px; /* WCAG AAA touch target size */
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Focus indicator - WCAG 2.2 Focus Appearance */
.demo-btn:focus {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(0, 74, 158, 0.2);
}

.demo-btn:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.demo-btn:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.demo-btn-primary {
  background: var(--primary-aaa, #004a9e); /* 7.02:1 on white */
  color: #ffffff; /* 10.5:1 on primary */
  border-color: var(--primary-aaa, #004a9e);
}

.demo-btn-primary:hover:not(:disabled) {
  background: var(--primary-hover-aaa, #003d85); /* 8.5:1 on white */
  border-color: var(--primary-hover-aaa, #003d85);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 74, 158, 0.3);
}

.demo-btn-primary:active:not(:disabled) {
  background: var(--primary-active-aaa, #003070); /* 10.2:1 on white */
  transform: translateY(0);
}

.demo-btn-secondary {
  background: #f5f5f5;
  color: var(--text-primary-aaa, #1a1a1a); /* 14.2:1 on #f5f5f5 */
  border-color: #d0d0d0;
}

.demo-btn-secondary:hover:not(:disabled) {
  background: #e0e0e0;
  border-color: #b0b0b0;
}

@media (prefers-color-scheme: dark) {
  .demo-btn-primary {
    background: #3b82f6;
    color: #000000;
    border-color: #3b82f6;
  }
  .demo-btn-primary:hover:not(:disabled) {
    background: #2563eb;
  }
  .demo-btn-secondary {
    background: #404040;
    color: #ffffff;
    border-color: #595959;
  }
}

@media (prefers-contrast: high) {
  .demo-btn-primary {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
    border-width: 3px;
  }
  .demo-btn-secondary {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
    border-width: 3px;
  }
}

/* ============================================
   FOOTER AND NOTES - Accessible
   ============================================ */

.demo-footer {
  margin-top: 24px;
  text-align: center;
}

.demo-note {
  font-size: 16px; /* Increased from 14px for better readability */
  color: rgba(255, 255, 255, 0.95); /* Improved contrast */
  margin-bottom: 16px;
  line-height: 1.5;
}

@media (prefers-contrast: high) {
  .demo-note {
    color: #ffffff;
    font-weight: 600;
  }
}

/* ============================================
   FILE PICKER - WCAG AAA Compliant
   ============================================ */

.file-picker-sim {
  padding: 40px;
  text-align: center;
}

.file-picker-btn {
  background: var(--primary-aaa, #004a9e);
  color: #ffffff;
  border: 2px solid var(--primary-aaa, #004a9e);
  padding: 16px 48px;
  min-height: 56px; /* WCAG touch target */
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.file-picker-btn:hover:not(:disabled) {
  background: var(--primary-hover-aaa, #003d85);
  transform: scale(1.02); /* Reduced from 1.05 for reduced motion */
}

.file-picker-btn:focus {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(0, 74, 158, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .file-picker-btn:hover:not(:disabled) {
    transform: none;
  }
}

@media (prefers-contrast: high) {
  .file-picker-btn {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
    border-width: 3px;
  }
}

.file-types {
  margin-top: 16px;
  color: var(--text-muted-aaa, #595959); /* 7.4:1 contrast */
  font-size: 16px; /* Increased from 14px */
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  .file-types {
    color: #b0b0b0; /* 8.2:1 on dark */
  }
}

@media (prefers-contrast: high) {
  .file-types {
    color: #000000;
    font-weight: 600;
  }
}

.file-selected {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
  border: 2px solid #d0d0d0;
  margin-top: 16px;
}

@media (prefers-color-scheme: dark) {
  .file-selected {
    background: #2c2c2c;
    border-color: #404040;
  }
}

@media (prefers-contrast: high) {
  .file-selected {
    background: #ffffff;
    border-color: #000000;
    border-width: 3px;
  }
}

.file-icon {
  font-size: 40px;
}

.file-info {
  flex: 1;
  text-align: left;
}

.file-name {
  font-weight: 700; /* Increased from 600 */
  margin-bottom: 4px;
  color: var(--text-primary-aaa, #1a1a1a);
  font-size: 16px;
}

.file-size {
  color: var(--text-muted-aaa, #595959);
  font-size: 14px;
  line-height: 1.5;
}

.file-status {
  color: var(--success-text, #15803d); /* 7.8:1 contrast */
  font-weight: 700;
  font-size: 14px;
}

@media (prefers-color-scheme: dark) {
  .file-name {
    color: #ffffff;
  }
  .file-size {
    color: #b0b0b0;
  }
  .file-status {
    color: #4ade80; /* High contrast success on dark */
  }
}

@media (prefers-contrast: high) {
  .file-name,
  .file-size,
  .file-status {
    color: #000000;
    font-weight: 700;
  }
}

/* ============================================
   FORM STYLES - WCAG AAA Compliant
   ============================================ */

.demo-form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 24px; /* Increased spacing */
}

.form-group label {
  display: block;
  font-weight: 700; /* Increased from 600 */
  margin-bottom: 8px;
  color: var(--text-primary-aaa, #1a1a1a); /* 16.8:1 contrast */
  font-size: 16px;
  line-height: 1.5;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  min-height: 48px; /* WCAG touch target */
  border: 2px solid var(--text-muted-aaa, #595959);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text-primary-aaa, #1a1a1a);
  background: #ffffff;
  line-height: 1.5;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 3px solid var(--primary-aaa, #004a9e);
  outline-offset: 2px;
  border-color: var(--primary-aaa, #004a9e);
  box-shadow: 0 0 0 4px rgba(0, 74, 158, 0.1);
}

@media (prefers-color-scheme: dark) {
  .form-group label {
    color: #ffffff;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    background: #2c2c2c;
    color: #ffffff;
    border-color: #595959;
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: #3b82f6;
    outline-color: #3b82f6;
  }
}

@media (prefers-contrast: high) {
  .form-group label {
    color: #000000;
    font-weight: 700;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
    border-width: 3px;
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline-width: 4px;
    outline-offset: 3px;
  }
}

/* ============================================
   LOADING ANIMATION - Accessible
   ============================================ */

.demo-loading {
  text-align: center;
  padding: 40px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid var(--primary-aaa, #004a9e);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 32px;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
    border-top-color: var(--primary-aaa, #004a9e);
    opacity: 0.7;
  }
}

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

@media (prefers-color-scheme: dark) {
  .spinner {
    border-color: #404040;
    border-top-color: #3b82f6;
  }
}

@media (prefers-contrast: high) {
  .spinner {
    border-color: #ffffff;
    border-top-color: #000000;
    border-width: 6px;
  }
}

.encryption-steps {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.encryption-steps .step {
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #f5f5f5;
  color: var(--text-muted-aaa, #595959);
  border: 2px solid #d0d0d0;
  line-height: 1.5;
  font-size: 16px;
}

.encryption-steps .step.completed {
  background: var(--success-bg, #dcfce7);
  color: var(--success-text, #15803d); /* 7.8:1 contrast */
  border-color: var(--success-border, #22c55e);
  font-weight: 600;
}

.encryption-steps .step.active {
  background: var(--info-bg, #dbeafe);
  color: var(--info-text, #1e3a8a); /* 8.2:1 contrast */
  border-color: var(--info-border, #3b82f6);
  font-weight: 600;
  animation: pulse 1.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .encryption-steps .step.active {
    animation: none;
  }
}

@media (prefers-color-scheme: dark) {
  .encryption-steps .step {
    background: #2c2c2c;
    color: #b0b0b0;
    border-color: #404040;
  }
  .encryption-steps .step.completed {
    background: #1a3d2a;
    color: #4ade80;
    border-color: #22c55e;
  }
  .encryption-steps .step.active {
    background: #1e3a5f;
    color: #60a5fa;
    border-color: #3b82f6;
  }
}

@media (prefers-contrast: high) {
  .encryption-steps .step {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
    border-width: 3px;
    font-weight: 700;
  }
  .encryption-steps .step.completed,
  .encryption-steps .step.active {
    background: #ffffff;
    color: #000000;
  }
}

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

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

/* Success State */
.demo-success {
  text-align: center;
  padding: 40px;
}

.success-icon {
  font-size: 80px;
  margin-bottom: 24px;
}

.success-details p {
  font-size: 18px;
  margin-bottom: 12px;
}

.encrypted-badge,
.offline-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin: 4px;
}

.encrypted-badge {
  background: #e8f5e9;
  color: #4caf50;
}

.offline-badge {
  background: #e3f2fd;
  color: #2196f3;
}

/* Feedback System Styles */
.feedback-section {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin: 32px 0;
}

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

.feedback-prompt p {
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.feedback-btn {
  padding: 10px 24px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.feedback-btn:hover:not(:disabled) {
  border-color: #667eea;
  background: #f5f7ff;
  transform: translateY(-2px);
}

.feedback-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.feedback-thanks {
  text-align: center;
  color: #4caf50;
  font-weight: 600;
}

.feedback-form {
  margin-top: 16px;
}

.feedback-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 12px;
}

.feedback-submit-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.feedback-submit-btn:hover {
  background: #5568d3;
}

/* App Link Button */
.app-link-btn {
  display: inline-block;
  padding: 12px 32px;
  background: white;
  color: #667eea;
  border: 2px solid white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.app-link-btn:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
}

/* Letter Wizard Specific Styles */
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.template-card {
  background: #f9f9f9;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.template-card:hover {
  border-color: #667eea;
  background: #f5f7ff;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.template-card.selected {
  border-color: #667eea;
  background: #667eea;
  color: white;
}

.template-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.template-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

.template-description {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.template-complexity {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.6;
}

.letter-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.feature-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.letter-form {
  max-width: 600px;
}

.letter-preview {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  font-family: 'Times New Roman', serif;
  line-height: 1.6;
}

.letter-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.letter-date {
  margin-bottom: 16px;
}

.letter-to {
  line-height: 1.5;
}

.letter-body p {
  margin-bottom: 16px;
}

.letter-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.edit-btn,
.ai-improve-btn {
  padding: 10px 24px;
  border: 1px solid #667eea;
  border-radius: 8px;
  background: white;
  color: #667eea;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.edit-btn:hover:not(:disabled),
.ai-improve-btn:hover:not(:disabled) {
  background: #667eea;
  color: white;
}

.export-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.export-option {
  background: #f9f9f9;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.export-option:hover {
  border-color: #667eea;
  background: #f5f7ff;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.export-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.export-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  color: #333;
}

.export-description {
  font-size: 14px;
  color: #666;
}

.security-note {
  text-align: center;
  margin-top: 24px;
  color: #4caf50;
  font-weight: 600;
}

/* Wellness Demo Specific Styles */
.wellness-demo {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.wellness-features {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.feature-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.mood-grid,
.sleep-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  flex-wrap: wrap;
}

.mood-option,
.sleep-option {
  background: #f9f9f9;
  border: 3px solid #e0e0e0;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 100px;
}

.mood-option:hover,
.sleep-option:hover {
  border-color: #11998e;
  background: #f0fff4;
  transform: scale(1.05);
}

.mood-option.selected,
.sleep-option.selected {
  border-color: #11998e;
  background: #11998e;
  color: white;
  transform: scale(1.1);
}

.mood-emoji,
.sleep-emoji {
  font-size: 48px;
  margin-bottom: 8px;
}

.mood-label,
.sleep-label {
  font-weight: 600;
  font-size: 14px;
}

.slider-container {
  padding: 20px 40px;
  max-width: 600px;
  margin: 0 auto;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 14px;
  color: #666;
}

.wellness-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.wellness-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #11998e;
  cursor: pointer;
  transition: all 0.2s;
}

.wellness-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 8px rgba(17, 153, 142, 0.2);
}

.wellness-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #11998e;
  cursor: pointer;
  border: none;
}

.pain-slider::-webkit-slider-thumb {
  background: #ff5722;
}

.pain-slider::-moz-range-thumb {
  background: #ff5722;
}

.slider-value {
  text-align: center;
  margin-top: 12px;
  font-size: 24px;
  font-weight: 600;
  color: #11998e;
}

.pain-scale-hint {
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
  color: #999;
}

.notes-container {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.wellness-notes {
  width: 100%;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  resize: vertical;
  transition: border-color 0.2s;
}

.wellness-notes:focus {
  outline: none;
  border-color: #11998e;
  box-shadow: 0 0 0 3px rgba(17, 153, 142, 0.1);
}

.notes-hint {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
  text-align: center;
}

.wellness-success {
  text-align: center;
  padding: 20px;
}

.wellness-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 500px;
  margin: 24px auto;
}

.summary-item {
  background: #f9f9f9;
  padding: 16px;
  border-radius: 12px;
}

.summary-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.summary-value {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.streak-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 600;
  display: inline-block;
  margin: 16px 0;
  font-size: 18px;
}

.insight-card {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  padding: 16px;
  border-radius: 8px;
  margin-top: 24px;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  color: #2e7d32;
}

/* Responsive Design */
@media (max-width: 768px) {
  .demo-container {
    padding: 20px;
  }
  
  .demo-content {
    padding: 16px;
    min-height: 300px;
  }
  
  .demo-icon {
    font-size: 60px;
  }
  
  .demo-text h3 {
    font-size: 24px;
  }
  
  .demo-controls {
    flex-direction: column;
  }
  
  .demo-btn {
    width: 100%;
  }
  
  .feedback-buttons {
    flex-direction: column;
  }
  
  .feedback-btn {
    width: 100%;
  }
  
  .template-grid,
  .export-options-grid {
    grid-template-columns: 1fr;
  }
  
  .wellness-summary {
    grid-template-columns: 1fr;
  }
  
  .mood-grid,
  .sleep-grid {
    gap: 12px;
  }
  
  .mood-option,
  .sleep-option {
    min-width: 80px;
    padding: 16px;
  }
}
