frontend_nyla/src/components/Dashboard/DashboardChat/DashboardChat.module.css
2025-05-28 09:48:06 +02:00

304 lines
5.1 KiB
CSS

.dashboard_chat {
display: flex;
padding: 20px;
flex-direction: column;
align-self: stretch;
border-radius: 30px;
border: 1px solid var(--f-1-f-1-f-1, #F1F1F1);
background: var(--Grayscale-True-White, #FFF);
position: relative;
box-shadow: 0px 2px 6px 0px rgba(194, 194, 194, 0.10);
height: 100%;
min-height: 0;
overflow: hidden;
}
.dashboard_chat.expanded {
width: 100%;
}
.chat_header {
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-shrink: 0;
}
.chat_button_div {
display: flex;
gap: 20px;
align-items: flex-start;
}
.buttonWrapper {
display: flex;
flex-direction: column;
position: relative;
}
.chat_button {
text-align: center;
font-size: 14px;
font-style: normal;
font-weight: 500;
line-height: normal;
border: none;
background: none;
outline: none;
cursor: pointer;
padding: 0;
transition: all 0.2s ease;
}
.chat_button_active {
color: var(--Grayscale-Black, #24262B);
}
.chat_button_inactive {
color: #A0A0A0;
}
.chat_button_collapsed {
opacity: 50%;
color: #A0A0A0;
}
.iconContainer {
display: flex;
gap: 10px;
align-items: center;
}
.expandIcon, .collapseIcon {
cursor: pointer;
display: flex;
align-items: center;
color: var(--Brand-Green-Green, #3A8088);
}
.expandIcon:hover, .collapseIcon:hover {
color: #333;
}
.horizontalLine {
width: 100%;
background-color: black;
height: 2px;
margin-top: 19px;
}
.horizontalLineLight {
width: calc(100%);
background-color: #F1F1F1;
height: 2px;
margin-top: 39px;
margin-left: -20px;
position: absolute;
flex-shrink: 0;
}
.chat_content {
display: flex;
flex-direction: column;
flex: 1;
margin-top: 20px;
min-height: 0;
overflow: hidden;
}
.chat_messages {
flex: 1;
padding: 15px;
border-radius: 15px;
margin-bottom: 15px;
min-height: 200px;
overflow-y: auto;
overflow-x: hidden;
scroll-behavior: smooth;
}
.chat_input {
display: flex;
gap: 10px;
align-items: center;
flex-shrink: 0;
}
.message_input {
flex: 1;
padding: 12px 16px;
border: 1px solid #E0E0E0;
border-radius: 12px;
outline: none;
font-size: 14px;
}
.message_input:focus {
border-color: #666;
}
.send_button {
padding: 12px 12px;
background-color: var(--Brand-Green-Green, #3A8088);
color: white;
border: none;
border-radius: 12px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
display: flex;
align-items: center;
justify-content: center;
}
.send_button_icon {
height: 100%;
width: 100%;
margin: none;
padding: none;
}
.send_button:disabled {
background-color: #ccc;
cursor: not-allowed;
opacity: 0.6;
}
.message_input:disabled {
background-color: #f5f5f5;
cursor: not-allowed;
opacity: 0.6;
}
.loading_message {
padding: 10px;
background-color: #e3f2fd;
border-left: 4px solid #2196f3;
border-radius: 4px;
margin-bottom: 10px;
}
.loading_message p {
margin: 0;
color: #1976d2;
font-size: 14px;
}
.error_message {
padding: 10px;
background-color: #ffebee;
border-left: 4px solid #f44336;
border-radius: 4px;
margin-bottom: 10px;
}
.error_message p {
margin: 0;
color: #c62828;
font-size: 14px;
}
.message {
margin-bottom: 15px;
padding: 12px;
border-radius: 12px;
max-width: 80%;
}
.message_user {
background-color: var(--Brand-Green-Green, #3A8088);
color: white;
margin-left: auto;
margin-right: 0;
}
.message_assistant {
background-color: #f5f5f5;
color: #333;
margin-left: 0;
margin-right: auto;
}
.message_system {
background-color: #fff3cd;
color: #856404;
margin-left: auto;
margin-right: auto;
text-align: center;
}
.message_role {
font-size: 12px;
font-weight: 600;
margin-bottom: 4px;
opacity: 0.8;
}
.message_content {
font-size: 14px;
line-height: 1.4;
white-space: pre-wrap;
word-wrap: break-word;
}
.message_timestamp {
font-size: 11px;
margin-top: 4px;
opacity: 0.6;
}
.placeholder_text {
text-align: center;
color: #999;
font-style: italic;
margin: 20px 0;
}
.workflow_status {
padding: 8px 12px;
background-color: #e8f5e8;
border-left: 4px solid #4caf50;
border-radius: 4px;
margin-bottom: 10px;
}
.workflow_status p {
margin: 0;
color: #2e7d32;
font-size: 13px;
font-style: italic;
}
.completion_message {
padding: 10px 12px;
background-color: #e8f5e8;
border-left: 4px solid #4caf50;
border-radius: 4px;
margin-bottom: 10px;
text-align: center;
}
.completion_message p {
margin: 0 0 10px 0;
color: #2e7d32;
font-size: 14px;
font-weight: 600;
}
.new_workflow_button {
background-color: var(--Brand-Green-Green, #3A8088);
color: white;
border: none;
border-radius: 8px;
padding: 8px 16px;
font-size: 12px;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s ease;
}
.new_workflow_button:hover {
background-color: #2d6b73;
}