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+
body {
|
| 2 |
+
font-family: Arial, sans-serif;
|
| 3 |
+
display: flex;
|
| 4 |
+
justify-content: center;
|
| 5 |
+
align-items: center;
|
| 6 |
+
height: 100vh;
|
| 7 |
+
margin: 0;
|
| 8 |
+
background-color: #121212;
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
.chat-container {
|
| 12 |
+
width: 360px;
|
| 13 |
+
height: 540px;
|
| 14 |
+
border: 1px solid #333;
|
| 15 |
+
border-radius: 12px;
|
| 16 |
+
background-color: #1e1e1e;
|
| 17 |
+
display: flex;
|
| 18 |
+
flex-direction: column;
|
| 19 |
+
overflow: hidden;
|
| 20 |
+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
|
| 21 |
+
animation: fadeIn 0.5s ease-in;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
.chat-box {
|
| 25 |
+
flex: 1;
|
| 26 |
+
display: flex;
|
| 27 |
+
flex-direction: column;
|
| 28 |
+
overflow-y: auto;
|
| 29 |
+
padding: 15px;
|
| 30 |
+
border-bottom: 1px solid #333;
|
| 31 |
+
position: relative;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
.messages {
|
| 35 |
+
display: flex;
|
| 36 |
+
flex-direction: column;
|
| 37 |
+
transition: opacity 0.3s ease-in-out;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
.message {
|
| 41 |
+
padding: 10px 15px;
|
| 42 |
+
border-radius: 10px;
|
| 43 |
+
margin-bottom: 8px;
|
| 44 |
+
max-width: 80%;
|
| 45 |
+
word-wrap: break-word;
|
| 46 |
+
color: #f5f5f5;
|
| 47 |
+
opacity: 0;
|
| 48 |
+
animation: fadeInMessage 0.5s ease-in forwards;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
.user-message {
|
| 52 |
+
align-self: flex-end;
|
| 53 |
+
background-color: #4caf50;
|
| 54 |
+
border: 1px solid #388e3c;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
.bot-message {
|
| 58 |
+
align-self: flex-start;
|
| 59 |
+
background-color: #2196f3;
|
| 60 |
+
border: 1px solid #1976d2;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
.input-area {
|
| 64 |
+
display: flex;
|
| 65 |
+
padding: 12px;
|
| 66 |
+
border-top: 1px solid #333;
|
| 67 |
+
background-color: #1e1e1e;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
input[type="text"] {
|
| 71 |
+
flex: 1;
|
| 72 |
+
padding: 12px;
|
| 73 |
+
border: 1px solid #333;
|
| 74 |
+
border-radius: 20px;
|
| 75 |
+
margin-right: 12px;
|
| 76 |
+
background-color: #333;
|
| 77 |
+
color: #f5f5f5;
|
| 78 |
+
outline: none;
|
| 79 |
+
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
|
| 80 |
+
transition: border-color 0.3s ease;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
input[type="text"]::placeholder {
|
| 84 |
+
color: #888;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
input[type="text"]:focus {
|
| 88 |
+
border-color: #f5f5f5;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
button {
|
| 92 |
+
padding: 12px 18px;
|
| 93 |
+
border: none;
|
| 94 |
+
border-radius: 20px;
|
| 95 |
+
background-color: #ff5722;
|
| 96 |
+
color: white;
|
| 97 |
+
cursor: pointer;
|
| 98 |
+
font-size: 16px;
|
| 99 |
+
transition: background-color 0.3s ease, transform 0.2s ease;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
button:hover {
|
| 103 |
+
background-color: #e64a19;
|
| 104 |
+
transform: scale(1.05);
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
.typing-indicator {
|
| 108 |
+
display: flex;
|
| 109 |
+
justify-content: center;
|
| 110 |
+
align-items: center;
|
| 111 |
+
margin-top: 10px;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
.typing-indicator .dot {
|
| 115 |
+
width: 10px;
|
| 116 |
+
height: 10px;
|
| 117 |
+
margin: 0 4px;
|
| 118 |
+
background-color: #888;
|
| 119 |
+
border-radius: 50%;
|
| 120 |
+
animation: typing 1.4s infinite ease-in-out;
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
.typing-indicator .dot:nth-child(2) {
|
| 124 |
+
animation-delay: 0.2s;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
.typing-indicator .dot:nth-child(3) {
|
| 128 |
+
animation-delay: 0.4s;
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
@keyframes typing {
|
| 132 |
+
0%, 100% {
|
| 133 |
+
opacity: 0.2;
|
| 134 |
+
}
|
| 135 |
+
50% {
|
| 136 |
+
opacity: 1;
|
| 137 |
+
}
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
@keyframes fadeIn {
|
| 141 |
+
from {
|
| 142 |
+
opacity: 0;
|
| 143 |
+
transform: translateY(10px);
|
| 144 |
+
}
|
| 145 |
+
to {
|
| 146 |
+
opacity: 1;
|
| 147 |
+
transform: translateY(0);
|
| 148 |
+
}
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
@keyframes fadeInMessage {
|
| 152 |
+
from {
|
| 153 |
+
opacity: 0;
|
| 154 |
+
transform: translateY(10px);
|
| 155 |
+
}
|
| 156 |
+
to {
|
| 157 |
+
opacity: 1;
|
| 158 |
+
transform: translateY(0);
|
| 159 |
+
}
|
| 160 |
+
}
|