File size: 2,947 Bytes
afcc3c4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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


/* General Body and Font Styles */
body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow: hidden; /* Prevent body scrollbars, scrolling happens in containers */
}

/* Base layout handled by Tailwind, but we ensure the container is the full height */
#main-container {
    height: 100vh;
}

/* Message Bubble Styles for a cleaner chat look */
.message-user, .message-assistant {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.message-user .mx-auto {
    background-color: rgba(255, 255, 255, 0.9);
}

.message-assistant .mx-auto {
    background-color: rgba(240, 245, 255, 0.85); /* A slightly blue tint for assistant */
}

/* Improved Markdown Formatting for Readability */
.markdown-container h1, .markdown-container h2, .markdown-container h3 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}
.markdown-container ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.markdown-container ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.markdown-container p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}
.markdown-container a {
    color: #2563eb; /* Blue-600 */
    text-decoration: underline;
}
.markdown-container code {
    background-color: rgba(229, 231, 235, 0.7); /* Gray-200 with transparency */
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-family: monospace;
}
.markdown-container pre {
    background-color: #f3f4f6; /* Gray-100 */
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.875rem;
}
.markdown-container hr {
    margin: 1.5rem 0;
    border-color: #e5e7eb; /* Gray-200 */
}

/* --- Responsive Sidebar Logic --- */


#main-content {
    flex: 1;
    transition: margin-left 0.3s ease-in-out;
}

/* Mobile & Tablet View (< 769px) */
/* Push main content on mobile when sidebar is open */
@media (max-width: 768px) {
.sidebar.open + #main-content {
 margin-left: 256px; /* same as sidebar width */
 }

 #main-content {
 transition: margin-left 0.3s ease-in-out;
 }
}


/* Desktop View (> 768px) */
@media (min-width: 769px) {
    .sidebar {
        width: 256px; /* Always open and fixed width */
    }
    #menu-button {
        display: none; /* Hide the menu button */
    }
}


.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 256px; /* Tailwind w-64 */
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(1rem);
  border-right: 1px solid rgba(147, 197, 253, 0.5); /* border-blue-100/50 */
  z-index: 50;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}

.sidebar.open {
  transform: translateX(0);
}

@media (min-width: 769px) {
  .sidebar {
    transform: none !important;
    position: relative;
    z-index: 0;
  }

  #sidebar-backdrop {
    display: none !important;
  }

  #menu-button {
    display: none;
  }
}