Spaces:
Sleeping
Sleeping
Update static/styles.css
Browse files- static/styles.css +100 -12
static/styles.css
CHANGED
|
@@ -1,38 +1,126 @@
|
|
| 1 |
body {
|
| 2 |
-
font-family:
|
| 3 |
-
background
|
|
|
|
|
|
|
| 4 |
padding: 20px;
|
|
|
|
| 5 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
.chat-container {
|
| 7 |
-
max-width:
|
| 8 |
margin: auto;
|
| 9 |
-
background:
|
| 10 |
-
padding:
|
| 11 |
-
border-radius:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
}
|
|
|
|
| 13 |
.chat-box {
|
| 14 |
border: 1px solid #ccc;
|
| 15 |
-
|
|
|
|
| 16 |
max-height: 300px;
|
| 17 |
overflow-y: auto;
|
| 18 |
-
|
|
|
|
| 19 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
.user {
|
| 21 |
-
|
| 22 |
-
color:
|
|
|
|
|
|
|
| 23 |
}
|
|
|
|
| 24 |
.bot {
|
| 25 |
-
|
| 26 |
color: #333;
|
|
|
|
|
|
|
| 27 |
}
|
|
|
|
| 28 |
form {
|
| 29 |
display: flex;
|
| 30 |
gap: 10px;
|
|
|
|
| 31 |
}
|
|
|
|
| 32 |
input[type="text"] {
|
| 33 |
flex-grow: 1;
|
| 34 |
-
padding:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
.entities {
|
| 37 |
margin-top: 20px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
}
|
|
|
|
| 1 |
body {
|
| 2 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 3 |
+
background: linear-gradient(135deg, #e3f2fd, #e1bee7);
|
| 4 |
+
background-size: 400% 400%;
|
| 5 |
+
animation: gradientBackground 15s ease infinite;
|
| 6 |
padding: 20px;
|
| 7 |
+
margin: 0;
|
| 8 |
}
|
| 9 |
+
|
| 10 |
+
@keyframes gradientBackground {
|
| 11 |
+
0% { background-position: 0% 50%; }
|
| 12 |
+
50% { background-position: 100% 50%; }
|
| 13 |
+
100% { background-position: 0% 50%; }
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
.chat-container {
|
| 17 |
+
max-width: 700px;
|
| 18 |
margin: auto;
|
| 19 |
+
background: rgba(255, 255, 255, 0.85);
|
| 20 |
+
padding: 25px;
|
| 21 |
+
border-radius: 16px;
|
| 22 |
+
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
|
| 23 |
+
backdrop-filter: blur(10px);
|
| 24 |
+
border: 1px solid #ddd;
|
| 25 |
+
transition: all 0.3s ease-in-out;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
h2 {
|
| 29 |
+
text-align: center;
|
| 30 |
+
font-size: 1.8em;
|
| 31 |
+
margin-bottom: 20px;
|
| 32 |
+
background: linear-gradient(to right, #8e24aa, #1e88e5);
|
| 33 |
+
-webkit-background-clip: text;
|
| 34 |
+
-webkit-text-fill-color: transparent;
|
| 35 |
}
|
| 36 |
+
|
| 37 |
.chat-box {
|
| 38 |
border: 1px solid #ccc;
|
| 39 |
+
border-radius: 8px;
|
| 40 |
+
padding: 15px;
|
| 41 |
max-height: 300px;
|
| 42 |
overflow-y: auto;
|
| 43 |
+
background-color: #fafafa;
|
| 44 |
+
margin-bottom: 15px;
|
| 45 |
}
|
| 46 |
+
|
| 47 |
+
.user, .bot {
|
| 48 |
+
margin: 8px 0;
|
| 49 |
+
padding: 10px 14px;
|
| 50 |
+
border-radius: 20px;
|
| 51 |
+
display: inline-block;
|
| 52 |
+
max-width: 80%;
|
| 53 |
+
word-wrap: break-word;
|
| 54 |
+
animation: fadeIn 0.4s ease-in-out;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
.user {
|
| 58 |
+
background: linear-gradient(135deg, #42a5f5, #1e88e5);
|
| 59 |
+
color: white;
|
| 60 |
+
float: right;
|
| 61 |
+
clear: both;
|
| 62 |
}
|
| 63 |
+
|
| 64 |
.bot {
|
| 65 |
+
background: #f1f3f4;
|
| 66 |
color: #333;
|
| 67 |
+
float: left;
|
| 68 |
+
clear: both;
|
| 69 |
}
|
| 70 |
+
|
| 71 |
form {
|
| 72 |
display: flex;
|
| 73 |
gap: 10px;
|
| 74 |
+
margin-top: 10px;
|
| 75 |
}
|
| 76 |
+
|
| 77 |
input[type="text"] {
|
| 78 |
flex-grow: 1;
|
| 79 |
+
padding: 10px 14px;
|
| 80 |
+
border: 1px solid #ccc;
|
| 81 |
+
border-radius: 25px;
|
| 82 |
+
outline: none;
|
| 83 |
+
transition: border-color 0.3s;
|
| 84 |
}
|
| 85 |
+
|
| 86 |
+
input[type="text"]:focus {
|
| 87 |
+
border-color: #42a5f5;
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
button {
|
| 91 |
+
padding: 10px 20px;
|
| 92 |
+
background: linear-gradient(135deg, #8e24aa, #42a5f5);
|
| 93 |
+
border: none;
|
| 94 |
+
border-radius: 25px;
|
| 95 |
+
color: white;
|
| 96 |
+
cursor: pointer;
|
| 97 |
+
font-weight: bold;
|
| 98 |
+
transition: background 0.3s;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
button:hover {
|
| 102 |
+
background: linear-gradient(135deg, #6a1b9a, #1976d2);
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
.entities {
|
| 106 |
margin-top: 20px;
|
| 107 |
+
padding: 15px;
|
| 108 |
+
background: #fff;
|
| 109 |
+
border-radius: 10px;
|
| 110 |
+
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
|
| 111 |
+
border-left: 5px solid #8e24aa;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
.entities h4 {
|
| 115 |
+
margin-bottom: 10px;
|
| 116 |
+
color: #8e24aa;
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
.entities ul {
|
| 120 |
+
padding-left: 20px;
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
@keyframes fadeIn {
|
| 124 |
+
from { opacity: 0; transform: translateY(5px); }
|
| 125 |
+
to { opacity: 1; transform: translateY(0); }
|
| 126 |
}
|