forked from PriyaGhosal/BuddyTrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chatbot.css
124 lines (110 loc) · 2.18 KB
/
chatbot.css
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
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
#chatbot {
width: 350px;
border: 1px solid #e2e2e2;
border-radius: 10px;
background-color: #fff;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
position: fixed;
bottom: 20px;
right: 20px;
display: none;
flex-direction: column;
transition: all 0.3s ease;
overflow: hidden;
}
#chatbox {
height: 350px;
overflow-y: auto;
padding: 15px;
border-bottom: 1px solid #e2e2e2;
background-color: #f9f9f9;
}
#messages {
margin-bottom: 10px;
font-size: small;
}
.user, .bot {
padding: 8px 12px;
border-radius: 15px;
max-width: 70%;
word-wrap: break-word;
margin: 5px 0;
}
.user {
background-color: #007bff;
color: #fff;
text-align: right;
font-size: 15px;
}
.bot {
background-color: #e1f5fe;
color: #333;
text-align: left;
font-size: 15px;
}
#user-input {
width: calc(100% - 22px);
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
margin: 10px 0;
}
#send-button {
padding: 10px 15px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
#send-button:hover {
background-color: #120cb3;
}
#chat-icon {
width: 60px;
height: 60px;
position: fixed;
bottom: 20px;
right: 20px;
background-color: #007bff;
color: #fff;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
transition: background-color 0.3s;
}
#chat-icon:hover {
background-color: #0056b3;
}
#chat-header {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #3d0aab;
color: #fff;
padding-left: 10px;
font-size: 1.5rem;
}
#close-button {
background: none;
border: none;
padding: 15px;
color: rgb(229, 63, 63);
font-size: 1.5rem;
font-weight: 700;
cursor: pointer;
}
#close-button:hover {
color: #dbe913;
}