File size: 1,684 Bytes
e227a15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
body {
    background: #f4f6fb;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}
.chat-container {
    max-width: 480px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 24px 18px 18px 18px;
}
h2 {
    text-align: center;
    color: #2d3a4b;
    margin-bottom: 18px;
}
#chat-box {
    min-height: 220px;
    max-height: 340px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: #fafbfc;
    margin-bottom: 16px;
}
.message {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}
.message.user {
    align-items: flex-end;
}
.message.ai {
    align-items: flex-start;
}
.bubble {
    padding: 10px 16px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 1rem;
    line-height: 1.5;
}
.bubble.user {
    background: #e3f0ff;
    color: #1a2a3a;
    border-bottom-right-radius: 4px;
}
.bubble.ai {
    background: #e9fbe5;
    color: #1a3a1a;
    border-bottom-left-radius: 4px;
}
.feedback {
    margin-top: 4px;
    display: flex;
    gap: 8px;
}
.feedback button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    transition: color 0.2s;
}
.feedback button:hover {
    color: #0078d7;
}
#loading {
    text-align: center;
    color: #888;
    margin-top: 10px;
}
@media (max-width: 600px) {
    .chat-container {
        max-width: 98vw;
        padding: 10px 2vw 10px 2vw;
    }
    #chat-box {
        min-height: 120px;
        max-height: 220px;
    }
}