File size: 1,992 Bytes
c917d47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* Container for all messages */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

/* Message wrapper with avatar support */
.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    max-width: 900px;
    margin: 0.5rem 0;
}

/* Avatar container */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Message content wrapper */
.message-content-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

/* Message bubble */
.message-bubble {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 0.2rem 0;
}

/* User message specific styling */
.user-message {
    flex-direction: row-reverse;
}

.user-message .message-bubble {
    background-color: #2b313e;
    border-top-right-radius: 0;
    color: white;
}

/* Assistant message specific styling */
.assistant-message .message-bubble {
    background-color: #343741;
    border-top-left-radius: 0;
    color: white;
}

/* Message content */
.message-content {
    word-wrap: break-word;
}

/* Remove default streamlit margins */
.stMarkdown {
    margin: 0 !important;
}

/* Style for code blocks within messages */
.message-content pre {
    background-color: #1e1e1e;
    padding: 0.5rem;
    border-radius: 0.3rem;
    margin: 0.5rem 0;
    overflow-x: auto;
}

/* Improved loading spinner visibility */
.stSpinner {
    text-align: center;
    margin: 1rem 0;
}

/* Time stamp styling */
.timestamp {
    font-size: 0.8em;
    color: #999;
    margin: 0.2rem 0;
}

.logo-container {
    display: flex;
    /* Enable flexbox layout */
    align-items: center;
    /* Vertically center-align items */
    padding: 10px 0;
    /* Add padding top/bottom */
}

.logo-image {
    max-width: 110px;
    /* Set maximum width */
    height: auto;
    /* Maintain aspect ratio */
}