File size: 16,087 Bytes
bc0dab9
8af739b
 
a677ebd
bc0dab9
8af739b
 
734142c
8af739b
 
 
 
 
 
 
 
 
 
 
 
 
bc0dab9
8af739b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc0dab9
 
 
d7409d2
 
 
8af739b
 
 
 
bc0dab9
 
8af739b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
734142c
8af739b
 
 
 
 
 
 
 
 
734142c
8af739b
 
 
 
bc0dab9
 
8af739b
 
 
bc0dab9
8af739b
 
 
 
 
 
 
 
 
 
 
 
 
 
734142c
 
 
8af739b
734142c
8af739b
 
 
734142c
 
 
 
 
8af739b
 
 
 
734142c
 
8af739b
734142c
8af739b
 
 
 
734142c
8af739b
734142c
8af739b
734142c
8af739b
734142c
8af739b
 
 
 
 
 
734142c
8af739b
734142c
8af739b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b15ad2e
 
8af739b
734142c
8af739b
 
 
 
734142c
8af739b
 
 
 
734142c
8af739b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
734142c
8af739b
 
734142c
 
 
 
 
 
 
 
 
 
 
 
8af739b
2a7ce2c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8af739b
 
734142c
 
8af739b
734142c
8af739b
 
 
734142c
8af739b
734142c
 
 
 
8af739b
734142c
8af739b
734142c
bc0dab9
 
8af739b
 
734142c
bc0dab9
734142c
8af739b
734142c
 
 
8af739b
734142c
8af739b
 
734142c
 
 
 
 
8af739b
 
 
 
 
 
 
734142c
8af739b
 
 
 
734142c
8af739b
 
 
 
 
734142c
8af739b
 
 
 
 
 
 
 
734142c
8af739b
 
 
 
5ab4f0a
 
 
 
 
 
 
 
 
b15ad2e
5ab4f0a
b15ad2e
 
5ab4f0a
 
 
 
 
 
 
 
 
b15ad2e
 
5ab4f0a
 
b15ad2e
 
 
 
 
 
5ab4f0a
b15ad2e
 
5ab4f0a
 
b15ad2e
 
 
 
 
 
5ab4f0a
b15ad2e
 
 
 
 
 
 
 
 
 
5ab4f0a
 
 
 
 
b15ad2e
5ab4f0a
 
b15ad2e
5ab4f0a
 
b15ad2e
5ab4f0a
b15ad2e
 
 
5ab4f0a
 
b15ad2e
5ab4f0a
 
 
 
 
 
b15ad2e
 
 
 
 
 
5ab4f0a
 
 
 
 
 
 
 
 
 
 
b15ad2e
5ab4f0a
 
 
 
 
 
 
 
 
 
 
 
 
b15ad2e
 
5ab4f0a
b15ad2e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5ab4f0a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b15ad2e
 
 
 
 
a677ebd
 
 
 
 
 
 
b15ad2e
a677ebd
 
 
b15ad2e
a677ebd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b15ad2e
 
a677ebd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9bdd7d9
 
 
10299c3
9bdd7d9
 
 
10299c3
9bdd7d9
 
 
10299c3
9bdd7d9
 
 
10299c3
9bdd7d9
 
 
 
10299c3
 
9bdd7d9
 
 
10299c3
9bdd7d9
 
 
 
10299c3
9bdd7d9
 
 
10299c3
9bdd7d9
 
 
10299c3
9bdd7d9
 
 
10299c3
9bdd7d9
 
 
 
10299c3
 
9bdd7d9
 
 
10299c3
9bdd7d9
8af739b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
@import "tailwindcss";
@import "tw-animate-css";
@import "./styles/theme.css";
@import "highlight.js/styles/github.css";

/* Tailwind base layer for compatibility */
@layer base {

  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    border-color: var(--color-gray-200, currentColor);
  }
}

/* Custom variant for dark mode */
@custom-variant dark (&:is(.dark *));

/* CSS Variables for theming */
:root {
  --radius: 0.625rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(1 0 0);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: oklch(0.205 0 0);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.205 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.922 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.704 0.191 22.216);
  --destructive-foreground: oklch(1 0 0);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.556 0 0);
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  --chart-4: oklch(0.627 0.265 303.9);
  --chart-5: oklch(0.645 0.246 16.439);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.556 0 0);
}

@theme inline {
  /* Custom breakpoints */
  --breakpoint-xs: 480px;

  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
  --animate-accordion-down: accordion-down 0.2s ease-out;
  --animate-accordion-up: accordion-up 0.2s ease-out;

  @keyframes accordion-down {
    from {
      height: 0;
    }

    to {
      height: var(--radix-accordion-content-height);
    }
  }

  @keyframes accordion-up {
    from {
      height: var(--radix-accordion-content-height);
    }

    to {
      height: 0;
    }
  }
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }

  body {
    @apply bg-background text-foreground;
    font-family: var(--font-inter, 'Inter'), 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Ubuntu', ui-sans-serif, system-ui, sans-serif;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Glassmorphism utilities */
.glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.glass-dark {
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.dock-glass {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* App Icon Styles */
.app-icon {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-icon:hover {
  transform: scale(1.15) translateY(-8px);
}

.app-icon:active {
  transform: scale(0.95);
}

/* Window Animations */
.window-transition {
  transition: opacity 0.2s ease-out;
}

.window-hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* Traffic Lights */
.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.traffic-close {
  background-color: #ff5f56;
  border: 1px solid #e0443e;
}

.traffic-min {
  background-color: #ffbd2e;
  border: 1px solid #dea123;
}

.traffic-max {
  background-color: #27c93f;
  border: 1px solid #1aab29;
}

.traffic-light:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.traffic-close:hover::after {
  content: '×';
}

.traffic-min:hover::after {
  content: '−';
}

.traffic-max:hover::after {
  content: '+';
}

/* Text Selection Styling */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: inherit;
}

::-moz-selection {
  background: rgba(59, 130, 246, 0.3);
  color: inherit;
}

/* Enable text selection for specific elements */
.select-text {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  cursor: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.25);
}

/* Desktop Icon Grid */
.desktop-icon {
  @apply flex flex-col items-center gap-1.5 cursor-pointer transition-all;
}

.desktop-icon:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.desktop-icon-label {
  @apply text-xs text-white font-medium px-2 py-0.5 rounded;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.desktop-icon:hover .desktop-icon-label {
  background: rgba(0, 0, 0, 0.5);
}

/* macOS style window */
.macos-window {
  @apply rounded-xl shadow-2xl overflow-hidden;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.macos-window-header {
  @apply h-10 flex items-center px-4 justify-between;
  background: linear-gradient(to bottom, #f6f6f6, #e8e8e8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Dock styles */
.dock-container {
  @apply fixed bottom-4 left-0 right-0 flex justify-center z-50;
}

.dock-item {
  @apply relative flex flex-col items-center gap-1;
}

.dock-dot {
  @apply w-1 h-1 rounded-full mt-1 opacity-0 transition-opacity;
  background: rgba(0, 0, 0, 0.6);
}

.dock-item:hover .dock-dot {
  @apply opacity-100;
}

/* Mobile & Tablet Responsive Styles */
@media (max-width: 1024px) {
  body {
    touch-action: pan-x pan-y;
    user-select: auto;
  }

  /* Don't force windows to be full screen - keep them contained */
  .macos-window {
    @apply rounded-lg shadow-xl;
    max-height: calc(100vh - 140px) !important;
  }

  /* Adjust dock for mobile */
  .dock-container {
    @apply bottom-0 px-2;
  }

  .dock-glass {
    @apply rounded-t-2xl rounded-b-none;
    padding: 0.5rem 0.75rem;
    max-height: 70px;
  }

  /* Dock icons smaller on mobile */
  .dock-item {
    @apply w-10 h-10 sm:w-12 sm:h-12;
  }

  /* Desktop icons visible on mobile now */
  .desktop-icon {
    display: flex !important;
    @apply w-16 h-16 sm:w-20 sm:h-20;
  }

  /* Desktop icon labels smaller on mobile */
  .desktop-icon-label {
    @apply text-[9px] sm:text-[10px];
  }

  /* Adjust traffic lights for touch - make them clickable */
  .traffic-light {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    @apply cursor-pointer;
  }

  /* Ensure traffic lights are always on top and show symbols */
  .traffic-light::after {
    font-size: 14px;
    opacity: 1;
  }
}

/* Landscape mobile optimization */
@media (max-width: 1024px) and (orientation: landscape) {

  /* Top bar more compact */
  .macos-window-header {
    @apply h-10 px-3;
  }

  /* Keep traffic lights larger for touch in landscape */
  .traffic-light {
    width: 20px;
    height: 20px;
    margin-right: 8px;
  }

  /* Dock compact in landscape */
  .dock-container {
    @apply bottom-0;
  }

  .dock-glass {
    padding: 0.25rem 0.75rem;
    max-height: 60px;
  }

  /* Windows should leave space for dock and topbar in landscape */
  .macos-window {
    max-height: calc(100vh - 100px) !important;
  }

  /* Scrollbars thinner on mobile */
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
}

/* Portrait mobile optimization */
@media (max-width: 768px) and (orientation: portrait) {

  /* Stack dock items more compactly */
  .dock-item {
    @apply gap-0;
  }

  /* Adjust font sizes for mobile */
  .desktop-icon-label {
    @apply text-[10px];
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {

  /* Larger touch targets - 44px is Apple's recommended minimum */
  .traffic-light {
    min-width: 32px;
    min-height: 32px;
    width: 32px;
    height: 32px;
    margin-right: 10px;
    touch-action: manipulation;
  }

  /* Always show traffic light symbols on touch devices */
  .traffic-close::after {
    content: '×' !important;
    opacity: 0.7;
  }

  .traffic-min::after {
    content: '−' !important;
    opacity: 0.7;
  }

  .traffic-max::after {
    content: '+' !important;
    opacity: 0.7;
  }

  /* Better tap feedback */
  .app-icon:active {
    transform: scale(0.90);
  }

  .dock-item:active {
    transform: scale(0.95);
  }

  /* Remove hover effects on touch devices */
  .app-icon:hover {
    transform: none;
  }

  .desktop-icon:hover {
    background-color: transparent;
    box-shadow: none;
  }

  /* Ensure windows are touch-scrollable */
  .macos-window {
    -webkit-overflow-scrolling: touch;
  }
}

/* Markdown Content Styles */
.markdown-content {
  @apply text-sm leading-relaxed;
}

.markdown-content>* {
  @apply mb-3;
}

.markdown-content>*:last-child {
  @apply mb-0;
}

/* Headings */
.markdown-content h1 {
  @apply text-xl font-bold mb-3 mt-4;
}

.markdown-content h2 {
  @apply text-lg font-bold mb-2 mt-3;
}

.markdown-content h3 {
  @apply text-base font-bold mb-2 mt-3;
}

.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  @apply text-sm font-bold mb-2 mt-2;
}

/* Paragraphs */
.markdown-content p {
  @apply mb-3 whitespace-pre-wrap;
}

/* Lists */
.markdown-content ul {
  @apply list-disc list-inside mb-3 space-y-1;
}

.markdown-content ol {
  @apply list-decimal list-inside mb-3 space-y-1;
}

.markdown-content li {
  @apply ml-2;
}

.markdown-content li>ul,
.markdown-content li>ol {
  @apply ml-4 mt-1;
}

/* Links */
.markdown-content a {
  @apply text-blue-600 hover:text-blue-800 underline;
}

/* Code */
.markdown-content code {
  @apply px-1.5 py-0.5 rounded text-xs font-mono;
  background: rgba(0, 0, 0, 0.05);
}

.markdown-content pre {
  @apply p-3 rounded-lg overflow-x-auto mb-3 text-xs;
  background: rgba(0, 0, 0, 0.05);
}

.markdown-content pre code {
  @apply p-0 bg-transparent;
}

/* Blockquotes */
.markdown-content blockquote {
  @apply pl-4 border-l-4 border-gray-300 italic mb-3;
  color: rgba(0, 0, 0, 0.7);
}

/* Tables */
.markdown-content table {
  @apply w-full border-collapse mb-3 text-xs;
}

.markdown-content th,
.markdown-content td {
  @apply border border-gray-300 px-2 py-1 text-left;
}

.markdown-content th {
  @apply bg-gray-100 font-bold;
}

/* Horizontal Rule */
.markdown-content hr {
  @apply my-4 border-t border-gray-300;
}

/* Images */
.markdown-content img {
  @apply max-w-full h-auto rounded-lg mb-3;
}

/* Strong and Emphasis */
.markdown-content strong {
  @apply font-bold;
}

.markdown-content em {
  @apply italic;
}

/* Strikethrough */
.markdown-content del {
  @apply line-through;
}

/* User message markdown (white text on blue background) */
.bg-blue-600 .markdown-content code {
  background: rgba(255, 255, 255, 0.2);
}

.bg-blue-600 .markdown-content pre {
  background: rgba(255, 255, 255, 0.1);
}

.bg-blue-600 .markdown-content a {
  @apply text-white underline;
}

.bg-blue-600 .markdown-content blockquote {
  @apply border-white/30;
  color: rgba(255, 255, 255, 0.9);
}

/* Messages app markdown styles (iMessage-style bubbles) */
.message-bubble-sent .markdown-content code {
  background: rgba(255, 255, 255, 0.2);
}

.message-bubble-sent .markdown-content pre {
  background: rgba(255, 255, 255, 0.15);
}

.message-bubble-sent .markdown-content a {
  @apply text-white underline;
}

.message-bubble-sent .markdown-content blockquote {
  @apply border-white/30;
  color: rgba(255, 255, 255, 0.95);
}

.message-bubble-sent .markdown-content th,
.message-bubble-sent .markdown-content td {
  @apply border-white/20;
}

.message-bubble-sent .markdown-content th {
  background: rgba(255, 255, 255, 0.1);
}

/* Dark message bubbles (received messages) */
.message-bubble-received .markdown-content code {
  background: rgba(255, 255, 255, 0.1);
}

.message-bubble-received .markdown-content pre {
  background: rgba(0, 0, 0, 0.3);
}

.message-bubble-received .markdown-content a {
  @apply text-blue-400 underline;
}

.message-bubble-received .markdown-content blockquote {
  @apply border-gray-500;
  color: rgba(255, 255, 255, 0.8);
}

.message-bubble-received .markdown-content th,
.message-bubble-received .markdown-content td {
  @apply border-gray-600;
}

.message-bubble-received .markdown-content th {
  background: rgba(255, 255, 255, 0.05);
}