-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathchatbot.css
More file actions
78 lines (74 loc) · 1.38 KB
/
chatbot.css
File metadata and controls
78 lines (74 loc) · 1.38 KB
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
/* Floating Icon */
#chatbot-icon {
position: fixed;
bottom: 20px;
right: 20px;
background: #0f172a;
color: white;
font-size: 24px;
padding: 15px;
border-radius: 50%;
cursor: pointer;
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
z-index: 1000;
text-align: center;
}
/* Chat Window */
#chatbot-window {
display: none;
position: fixed;
bottom: 80px;
right: 20px;
width: 300px;
background: white;
border: 1px solid #ccc;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
z-index: 1000;
display: flex;
flex-direction: column;
}
/* Header */
#chatbot-header {
background: #0f172a;
color: white;
padding: 10px;
font-weight: bold;
display: flex;
justify-content: space-between;
align-items: center;
border-radius: 10px 10px 0 0;
}
#close-btn {
cursor: pointer;
font-size: 14px;
}
/* Body */
#chatbot-body {
display: flex;
flex-direction: column;
height: 350px;
}
#chatbot-messages {
flex: 1;
padding: 10px;
overflow-y: auto;
font-size: 14px;
}
#chatbot-input {
border: none;
border-top: 1px solid #ccc;
padding: 10px;
font-size: 14px;
border-radius: 0 0 10px 10px;
outline: none;
}
/* Messages */
.message {
margin: 8px 0;
padding: 8px;
border-radius: 8px;
max-width: 80%;
}
.user { background: #3498db; color: white; margin-left: auto; }
.bot { background: #ecf0f1; color: #2c3e50; margin-right: auto; }