oussamaor's picture
Upload 12 files
f368eec verified
/* Additional styles for the Drug Interaction Assistant web interface */
/* Chat message styling */
.chat-message {
margin-bottom: 1rem;
}
.chat-message.user {
text-align: right;
}
.chat-message.bot {
text-align: left;
}
/* Visualization container */
#visualization-container {
min-height: 300px;
border: 1px solid #e2e8f0;
border-radius: 0.5rem;
overflow: hidden;
}
#visualization-container img {
max-width: 100%;
max-height: 300px;
object-fit: contain;
}
/* Drug information container */
#drug-info-container {
min-height: 200px;
border: 1px solid #e2e8f0;
border-radius: 0.5rem;
overflow: auto;
}
/* Loading animation */
.loading {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.loading div {
position: absolute;
top: 33px;
width: 13px;
height: 13px;
border-radius: 50%;
background: #3b82f6;
animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.loading div:nth-child(1) {
left: 8px;
animation: loading1 0.6s infinite;
}
.loading div:nth-child(2) {
left: 8px;
animation: loading2 0.6s infinite;
}
.loading div:nth-child(3) {
left: 32px;
animation: loading2 0.6s infinite;
}
.loading div:nth-child(4) {
left: 56px;
animation: loading3 0.6s infinite;
}
@keyframes loading1 {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@keyframes loading3 {
0% {
transform: scale(1);
}
100% {
transform: scale(0);
}
}
@keyframes loading2 {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(24px, 0);
}
}
/* Responsive adjustments */
@media (max-width: 768px) {
.container {
padding: 1rem;
}
#chat-history {
height: 300px;
}
#visualization-container {
min-height: 200px;
}
#visualization-container img {
max-height: 200px;
}
}