File size: 1,889 Bytes
83b4232
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* frontend/src/App.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f8;
}

.app-container {
    max-width: 800px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 90vh;
}

.app-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.chat-window {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}
.message.user {
    align-items: flex-end;
}
.message.bot {
    align-items: flex-start;
}
.message p {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    margin: 0;
}
.message.user p {
    background-color: #007bff;
    color: white;
}
.message.bot p {
    background-color: #e9e9eb;
    color: black;
}

.loading-indicator {
    text-align: center;
    color: #888;
    font-style: italic;
}

.chat-form {
    display: flex;
    padding: 20px;
    border-top: 1px solid #eee;
}
.chat-form input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 1em;
}
.chat-form button {
    margin-left: 10px;
    border: none;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}
.chat-form button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}
/* frontend/src/App.css */
.feedback-buttons {
    margin-top: 8px;
}
.feedback-buttons button {
    background: none;
    border: 1px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    margin-right: 5px;
    width: 30px;
    height: 30px;
}
.feedback-buttons button:hover {
    background-color: #f0f0f0;
}