gateway/static/71_styles_workflow.css
2025-04-30 00:39:37 +02:00

374 lines
No EOL
6 KiB
CSS

/*
* PowerOn | Multi-Agent Service - Core Workflow Styles
* Core container layout and basic structure styles
*/
/* Main container layout */
.workflow-container {
display: flex;
flex-direction: column;
height: 100vh;
width: 100%;
overflow: hidden;
}
/* HEADER SECTION */
.workflow-header {
flex: 0 0 auto;
position: sticky;
top: 0;
z-index: 100;
background-color: white;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
border-bottom: 1px solid #e5e7eb;
transition: all 0.3s ease;
height: 200px; /* Set default height for header section */
}
.workflow-header.collapsed {
height: 50px;
overflow: hidden;
}
.header-columns {
display: flex;
width: 100%;
height: 100%;
}
.header-left {
width: 70%;
border-right: 1px solid #e5e7eb;
height: 100%;
transition: all 0.3s ease;
display: flex;
}
.header-right {
width: 30%;
padding: 1rem;
display: flex;
align-items: flex-start;
justify-content: flex-end;
}
.header-content-wrapper {
display: flex;
width: 100%;
height: 100%;
}
.section-toggle {
width: 40px;
background-color: #f8f9fa;
display: flex;
justify-content: center;
padding-top: 10px;
border-right: 1px solid #e5e7eb;
}
/* CHAT SECTION */
.chat-section {
flex: 1;
min-height: 0; /* Important for flex child scrolling */
overflow: hidden;
}
.chat-columns {
display: flex;
height: 100%;
}
.chat-left {
width: 70%;
display: flex;
flex-direction: column;
border-right: 1px solid #e5e7eb;
height: 100%;
overflow: hidden;
}
.chat-right {
width: 30%;
height: 100%;
overflow: hidden;
}
.empty-state {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
color: #9ca3af;
padding: 2rem;
}
.empty-state-content {
text-align: center;
}
/* FOOTER SECTION */
.workflow-footer {
flex: 0 0 auto;
position: sticky;
bottom: 0;
z-index: 100;
background-color: white;
box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
border-top: 1px solid #e5e7eb;
max-height: 25vh;
transition: all 0.3s ease;
}
.footer-columns {
display: flex;
width: 100%;
}
.footer-left {
width: 70%;
border-right: 1px solid #e5e7eb;
}
.footer-right {
width: 30%;
padding: 1rem;
overflow-y: auto;
}
/* Button styles */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.375rem;
padding: 0.5rem 0.75rem;
border-radius: 0.25rem;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-sm {
padding: 0.25rem 0.5rem;
font-size: 0.75rem;
}
.btn-outline-secondary {
background-color: transparent;
border: 1px solid #d1d5db;
color: #4b5563;
}
.btn-outline-secondary:hover {
background-color: #f3f4f6;
}
.btn-outline-primary {
background-color: transparent;
border: 1px solid #3b82f6;
color: #3b82f6;
}
.btn-outline-primary:hover {
background-color: #eff6ff;
}
.btn-primary {
background-color: #3b82f6;
border: 1px solid #3b82f6;
color: white;
}
.btn-primary:hover {
background-color: #2563eb;
border-color: #2563eb;
}
.btn-danger {
background-color: #ef4444;
border: 1px solid #ef4444;
color: white;
}
.btn-danger:hover {
background-color: #dc2626;
border-color: #dc2626;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Toast notification styling */
#toast-container {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
display: flex;
flex-direction: column;
gap: 10px;
}
.toast {
min-width: 250px;
max-width: 350px;
background-color: white;
color: #333;
border-radius: 4px;
padding: 12px 15px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
opacity: 1;
transition: all 0.3s ease;
border-left: 4px solid #4CAF50;
}
.toast.error {
border-left-color: #F44336;
}
.toast.warning {
border-left-color: #FF9800;
}
.toast.info {
border-left-color: #2196F3;
}
.toast.hide {
opacity: 0;
transform: translateX(30px);
}
.toast-content {
display: flex;
align-items: center;
}
.toast-content i {
margin-right: 10px;
font-size: 18px;
}
.toast.success i {
color: #4CAF50;
}
.toast.error i {
color: #F44336;
}
.toast.warning i {
color: #FF9800;
}
.toast.info i {
color: #2196F3;
}
/* Error message */
.workflow-error-message {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
max-width: 500px;
width: 90%;
z-index: 1000;
}
.error-content {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.error-content i {
font-size: 48px;
color: #ef4444;
margin-bottom: 16px;
}
.error-content h3 {
margin: 0 0 12px 0;
color: #111827;
}
.error-content p {
margin: 0;
color: #4b5563;
}
/* Animation keyframes */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeOut {
from { opacity: 1; transform: translateY(0); }
to { opacity: 0; transform: translateY(-10px); }
}
/* Responsive adjustments */
@media (max-width: 992px) {
.header-columns, .chat-columns, .footer-columns {
flex-direction: column;
}
.header-left, .header-right, .chat-left, .chat-right, .footer-left, .footer-right {
width: 100%;
border-right: none;
}
.header-left, .chat-left, .footer-left {
border-bottom: 1px solid #e5e7eb;
}
.workflow-footer {
max-height: 50vh;
}
.header-content-wrapper {
flex-direction: column;
}
.section-toggle {
width: 100%;
height: 40px;
padding-top: 0;
padding-left: 10px;
justify-content: flex-start;
align-items: center;
border-right: none;
border-bottom: 1px solid #e5e7eb;
}
}
/* Common scrollbar styling */
.workflow-container ::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.workflow-container ::-webkit-scrollbar-track {
background: transparent;
}
.workflow-container ::-webkit-scrollbar-thumb {
background-color: #d1d5db;
border-radius: 3px;
}
.workflow-container {
scrollbar-width: thin;
scrollbar-color: #d1d5db transparent;
}