244 lines
4.3 KiB
CSS
244 lines
4.3 KiB
CSS
/* Base styles */
|
|
:root {
|
|
--primary-color: #007bff;
|
|
--secondary-color: #6c757d;
|
|
--background-color: #ffffff;
|
|
--text-color: #212529;
|
|
--sidebar-color: #f8f9fa;
|
|
--message-user-bg: #e9f5ff;
|
|
--message-bot-bg: #f8f9fa;
|
|
--border-radius: 8px;
|
|
--spacing: 16px;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
line-height: 1.6;
|
|
color: var(--text-color);
|
|
background-color: var(--background-color);
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.container {
|
|
height: 100vh;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Chat layout */
|
|
.chat-container {
|
|
display: flex;
|
|
height: 100%;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 280px;
|
|
background-color: var(--sidebar-color);
|
|
border-right: 1px solid rgba(0,0,0,0.1);
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: var(--spacing);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.logo {
|
|
margin-bottom: var(--spacing);
|
|
text-align: center;
|
|
}
|
|
|
|
.logo img {
|
|
max-width: 100%;
|
|
max-height: 60px;
|
|
}
|
|
|
|
.sidebar-content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.sidebar-text {
|
|
margin-bottom: var(--spacing);
|
|
}
|
|
|
|
.team-info {
|
|
margin-top: auto;
|
|
padding-top: var(--spacing);
|
|
border-top: 1px solid rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.team-member {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.team-member img {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.chat-main {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
|
|
.chat-header {
|
|
padding: var(--spacing);
|
|
border-bottom: 1px solid rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.chat-messages {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: var(--spacing);
|
|
}
|
|
|
|
.message {
|
|
margin-bottom: var(--spacing);
|
|
max-width: 80%;
|
|
clear: both;
|
|
}
|
|
|
|
.user-message {
|
|
float: right;
|
|
}
|
|
|
|
.bot-message {
|
|
float: left;
|
|
}
|
|
|
|
.message-content {
|
|
padding: 12px 16px;
|
|
border-radius: var(--border-radius);
|
|
display: inline-block;
|
|
}
|
|
|
|
.user-message .message-content {
|
|
background-color: var(--message-user-bg);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.bot-message .message-content {
|
|
background-color: var(--message-bot-bg);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.chat-input-container {
|
|
padding: var(--spacing);
|
|
border-top: 1px solid rgba(0,0,0,0.1);
|
|
display: flex;
|
|
}
|
|
|
|
#chat-input {
|
|
flex: 1;
|
|
padding: 12px;
|
|
border: 1px solid rgba(0,0,0,0.2);
|
|
border-radius: var(--border-radius);
|
|
resize: none;
|
|
height: 60px;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
#send-button {
|
|
padding: 0 24px;
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Loading indicator */
|
|
.typing-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.typing-indicator span {
|
|
height: 8px;
|
|
width: 8px;
|
|
background-color: rgba(0,0,0,0.3);
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
margin-right: 4px;
|
|
animation: typing 1.5s infinite ease-in-out;
|
|
}
|
|
|
|
.typing-indicator span:nth-child(2) {
|
|
animation-delay: 0.2s;
|
|
}
|
|
|
|
.typing-indicator span:nth-child(3) {
|
|
animation-delay: 0.4s;
|
|
}
|
|
|
|
@keyframes typing {
|
|
0% { transform: scale(1); }
|
|
50% { transform: scale(1.5); }
|
|
100% { transform: scale(1); }
|
|
}
|
|
|
|
/* Error page styles */
|
|
.error-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
}
|
|
|
|
.error-box {
|
|
background-color: white;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
|
padding: 2rem;
|
|
text-align: center;
|
|
max-width: 500px;
|
|
}
|
|
|
|
.error-message {
|
|
margin: 1rem 0;
|
|
color: #dc3545;
|
|
}
|
|
|
|
.error-actions {
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.btn-primary {
|
|
display: inline-block;
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: var(--border-radius);
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Responsive design */
|
|
@media (max-width: 768px) {
|
|
.chat-container {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 100%;
|
|
height: auto;
|
|
max-height: 30%;
|
|
border-right: none;
|
|
border-bottom: 1px solid rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.message {
|
|
max-width: 90%;
|
|
}
|
|
} |