Spaces:
Configuration error
Configuration error
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
body { | |
font-family: Arial, sans-serif; | |
background-color: #f0f2f5; | |
} | |
.container { | |
max-width: 1200px; | |
margin: 0 auto; | |
padding: 20px; | |
height: 100vh; | |
} | |
.chat-container { | |
background-color: #343541; | |
color: #fff; | |
border-radius: 10px; | |
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | |
height: 90vh; | |
display: flex; | |
flex-direction: column; | |
} | |
.chat-header { | |
padding: 20px; | |
border-bottom: 1px solid #e0e0e0; | |
background-color: #202123; | |
} | |
.chat-header h1 { | |
color: #fff; | |
font-size: 24px; | |
} | |
.chat-messages { | |
flex: 1; | |
overflow-y: auto; | |
padding: 20px; | |
} | |
.message { | |
margin-bottom: 20px; | |
max-width: 70%; | |
} | |
.user-message { | |
margin-left: auto; | |
background-color: #343541; | |
color: #fff; | |
padding: 10px 15px; | |
border-radius: 15px; | |
border: 1px solid #565869; | |
} | |
.bot-message { | |
background-color: #444654; | |
color: #fff; | |
padding: 10px 15px; | |
border-radius: 15px; | |
animation: fadeIn 0.3s ease-in; | |
} | |
@keyframes fadeIn { | |
from { | |
opacity: 0; | |
transform: translateY(10px); | |
} | |
to { | |
opacity: 1; | |
transform: translateY(0); | |
} | |
} | |
.chat-input { | |
padding: 20px; | |
border-top: 1px solid #e0e0e0; | |
display: flex; | |
gap: 10px; | |
} | |
#user-input { | |
flex: 1; | |
padding: 10px; | |
border: 1px solid #565869; | |
border-radius: 5px; | |
resize: none; | |
height: 50px; | |
background-color: #40414f; | |
color: #fff; | |
} | |
#user-input::placeholder { | |
color: #8e8ea0; | |
} | |
#send-button { | |
padding: 10px 20px; | |
background-color: #19c37d; | |
color: white; | |
border: none; | |
border-radius: 5px; | |
cursor: pointer; | |
transition: background-color 0.3s; | |
} | |
#send-button:hover { | |
background-color: #1a8870; | |
} | |
.typing-indicator { | |
display: flex; | |
align-items: center; | |
padding: 10px 15px; | |
} | |
.typing-indicator span { | |
height: 8px; | |
width: 8px; | |
background: #fff; | |
border-radius: 50%; | |
margin: 0 2px; | |
display: inline-block; | |
animation: bounce 1.3s linear infinite; | |
} | |
.typing-indicator span:nth-child(2) { | |
animation-delay: 0.15s; | |
} | |
.typing-indicator span:nth-child(3) { | |
animation-delay: 0.3s; | |
} | |
@keyframes bounce { | |
0%, 60%, 100% { | |
transform: translateY(0); | |
} | |
30% { | |
transform: translateY(-4px); | |
} | |
} | |
.code-block-container { | |
position: relative; | |
background-color: #1e1e1e; | |
border-radius: 8px; | |
margin: 10px 0; | |
padding: 10px; | |
} | |
.code-block-container pre { | |
margin: 0; | |
padding: 10px; | |
overflow-x: auto; | |
color: #d4d4d4; | |
font-family: 'Consolas', 'Monaco', monospace; | |
} | |
.code-block-container code { | |
display: block; | |
white-space: pre-wrap; | |
} | |
.copy-btn { | |
position: absolute; | |
top: 10px; | |
right: 10px; | |
padding: 5px 10px; | |
background-color: #19c37d; | |
color: white; | |
border: none; | |
border-radius: 5px; | |
cursor: pointer; | |
font-size: 12px; | |
transition: background-color 0.3s; | |
} | |
.copy-btn:hover { | |
background-color: #1a8870; | |
} | |
/* Add syntax highlighting colors */ | |
.code-block-container .keyword { color: #569cd6; } | |
.code-block-container .string { color: #ce9178; } | |
.code-block-container .comment { color: #6a9955; } | |
.code-block-container .function { color: #dcdcaa; } | |