Spaces:
Sleeping
Sleeping
body { | |
font-family: 'Arial', sans-serif; | |
background-color: #f0f4f8; | |
margin: 0; | |
padding: 0; | |
color: #333; | |
} | |
.navbar { | |
background-color: #ffffff; | |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | |
padding: 15px 0; | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
} | |
.navbar-brand { | |
font-size: 24px; | |
font-weight: bold; | |
color: #007bff; | |
margin-left: 20px; | |
} | |
.navbar-menu { | |
list-style-type: none; | |
margin: 0; | |
padding: 0; | |
display: flex; | |
margin-right: 20px; | |
} | |
.navbar-menu li { | |
margin: 0 15px; | |
} | |
.navbar-menu li a { | |
text-decoration: none; | |
color: #333; | |
font-weight: bold; | |
transition: color 0.3s; | |
} | |
.navbar-menu li a:hover { | |
color: #007bff; | |
} | |
.container { | |
max-width: 800px; | |
margin: 20px auto; | |
padding: 0 20px; | |
} | |
h1 { | |
text-align: center; | |
color: #007bff; | |
margin-bottom: 20px; | |
} | |
.chatbox { | |
background-color: #ffffff; | |
border-radius: 10px; | |
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); | |
padding: 20px; | |
height: 500px; | |
display: flex; | |
flex-direction: column; | |
} | |
.chatlog { | |
flex: 1; | |
overflow-y: auto; | |
padding: 10px; | |
border-bottom: 1px solid #ddd; | |
margin-bottom: 20px; | |
} | |
.chat-message { | |
margin-bottom: 15px; | |
display: flex; | |
flex-direction: column; | |
opacity: 0; | |
animation: fadeIn 0.3s ease-in forwards; | |
} | |
@keyframes fadeIn { | |
from { | |
opacity: 0; | |
transform: translateY(10px); | |
} | |
to { | |
opacity: 1; | |
transform: translateY(0); | |
} | |
} | |
.user-message { | |
align-items: flex-end; | |
} | |
.bot-message { | |
align-items: flex-start; | |
} | |
.message-sender { | |
font-weight: bold; | |
color: #007bff; | |
} | |
.message-text { | |
background-color: #e9ecef; | |
padding: 10px 15px; | |
border-radius: 15px; | |
display: inline-block; | |
max-width: 70%; | |
word-wrap: break-word; | |
} | |
.user-message .message-text { | |
background-color: #007bff; | |
color: #ffffff; | |
} | |
.chat-input { | |
display: flex; | |
gap: 10px; | |
} | |
.chat-input input { | |
flex: 1; | |
padding: 10px; | |
border: 1px solid #ddd; | |
border-radius: 5px; | |
font-size: 16px; | |
outline: none; | |
} | |
.chat-input button { | |
padding: 10px 20px; | |
background-color: #007bff; | |
color: #ffffff; | |
border: none; | |
border-radius: 5px; | |
cursor: pointer; | |
transition: background-color 0.3s; | |
} | |
.chat-input button:hover { | |
background-color: #0056b3; | |
} | |
.clear-button { | |
padding: 10px 20px; | |
background-color: #dc3545; | |
color: #ffffff; | |
border: none; | |
border-radius: 5px; | |
cursor: pointer; | |
transition: background-color 0.3s; | |
margin-top: 10px; | |
align-self: center; | |
} | |
.clear-button:hover { | |
background-color: #c82333; | |
} | |
.typing-indicator { | |
color: #777; | |
font-style: italic; | |
margin-bottom: 15px; | |
} | |
.accuracy-box { | |
background-color: #ffffff; | |
border-radius: 10px; | |
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); | |
padding: 20px; | |
margin-bottom: 20px; | |
} | |
.accuracy-box p { | |
margin: 10px 0; | |
font-size: 18px; | |
} | |
.accuracy-box p strong { | |
color: #007bff; | |
} | |
.classification-report { | |
background-color: #ffffff; | |
border-radius: 10px; | |
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); | |
padding: 20px; | |
font-size: 14px; | |
white-space: pre-wrap; | |
} | |
.predicted-tag { | |
font-style: italic; | |
color: #555; | |
margin-left: 10px; | |
} | |
.toggle-probs { | |
background-color: #f0f0f0; | |
border: none; | |
padding: 5px 10px; | |
cursor: pointer; | |
margin-left: 10px; | |
border-radius: 5px; | |
} | |
.probabilities { | |
margin-top: 5px; | |
padding: 10px; | |
background-color: #f9f9f9; | |
border: 1px solid #ddd; | |
font-size: 0.9em; | |
border-radius: 5px; | |
} |