gateway/frontend/styles.css
2025-03-14 00:29:45 +01:00

555 lines
No EOL
8.9 KiB
CSS

/* Grundlegende Resets und Fonts */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f0f2f5;
color: #333;
line-height: 1.6;
}
ul {
list-style: none;
}
a {
text-decoration: none;
color: inherit;
}
button {
cursor: pointer;
border: none;
background: none;
font-family: inherit;
}
/* Navbar */
.navbar {
background-color: #2563eb;
color: white;
padding: 1rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.navbar-container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1800px;
margin: 0 auto;
}
.navbar-logo {
font-size: 1.5rem;
font-weight: 600;
}
.navbar-user {
display: flex;
align-items: center;
gap: 0.75rem;
}
.icon-button {
display: flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
border-radius: 50%;
color: white;
transition: background-color 0.2s;
}
.icon-button:hover {
background-color: rgba(255, 255, 255, 0.2);
}
/* App Container Layout */
.app-container {
display: flex;
max-width: 1800px;
margin: 0 auto;
min-height: calc(100vh - 4rem);
}
/* Sidebar */
.sidebar {
width: 250px;
background-color: white;
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
padding: 1.5rem 1rem;
flex-shrink: 0;
}
.workspace-section h2 {
font-size: 1.2rem;
margin-bottom: 0.5rem;
font-weight: 600;
}
.workspace-list {
margin-bottom: 1.5rem;
}
.workspace-item {
padding: 0.5rem 0.75rem;
border-radius: 0.375rem;
margin-bottom: 0.25rem;
display: flex;
align-items: center;
cursor: pointer;
}
.workspace-item i {
margin-right: 0.5rem;
color: #4b5563;
}
.workspace-item:hover {
background-color: #f3f4f6;
}
.workspace-item.active {
background-color: #e0f2fe;
color: #1d4ed8;
}
.sidebar-nav {
margin-top: 1rem;
}
.sidebar-item {
padding: 0.75rem;
border-radius: 0.375rem;
margin-bottom: 0.25rem;
}
.sidebar-item a {
display: flex;
align-items: center;
}
.sidebar-item i {
margin-right: 0.75rem;
width: 1.25rem;
text-align: center;
}
.sidebar-item:hover {
background-color: #f3f4f6;
}
.sidebar-item.active {
background-color: #e0f2fe;
color: #1d4ed8;
}
/* Main Content */
.main-content {
flex: 1;
padding: 1.5rem;
overflow-y: auto;
}
.workflow-container {
display: flex;
gap: 1.5rem;
}
.config-panel, .results-panel {
flex: 1;
}
/* Cards */
.card {
background-color: white;
border-radius: 0.5rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
padding: 1.25rem;
margin-bottom: 1.25rem;
}
h2 {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 1rem;
}
h3 {
font-size: 1.125rem;
font-weight: 600;
margin-bottom: 1rem;
color: #4b5563;
}
h4 {
font-size: 0.875rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: #6b7280;
}
/* File Selection */
.files-container {
display: flex;
flex-direction: column;
gap: 1rem;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
font-weight: 500;
}
.upload-btn {
background-color: #fff;
border: 1px solid #d1d5db;
border-radius: 0.375rem;
padding: 0.375rem 0.75rem;
font-size: 0.875rem;
color: #4b5563;
display: flex;
align-items: center;
gap: 0.375rem;
transition: all 0.2s;
}
.upload-btn:hover {
background-color: #f9fafb;
border-color: #9ca3af;
}
.file-list {
max-height: 200px;
overflow-y: auto;
border: 1px solid #e5e7eb;
border-radius: 0.375rem;
background-color: #f9fafb;
}
.file-item {
padding: 0.625rem;
border-bottom: 1px solid #e5e7eb;
display: flex;
align-items: center;
justify-content: space-between;
background-color: white;
}
.file-item:last-child {
border-bottom: none;
}
.file-item-name {
display: flex;
align-items: center;
gap: 0.5rem;
flex: 1;
}
.file-item-info {
font-size: 0.75rem;
color: #6b7280;
}
.selected-files-container {
border: 1px dashed #d1d5db;
border-radius: 0.375rem;
min-height: 100px;
background-color: #f9fafb;
}
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100px;
color: #9ca3af;
gap: 0.5rem;
}
.empty-state i {
font-size: 1.5rem;
}
.selected-file-list {
padding: 0.5rem;
}
.selected-file-item {
background-color: white;
border: 1px solid #e5e7eb;
border-radius: 0.375rem;
padding: 0.5rem 0.75rem;
margin-bottom: 0.5rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.selected-file-item:last-child {
margin-bottom: 0;
}
.remove-file-btn {
color: #ef4444;
width: 1.5rem;
height: 1.5rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: background-color 0.2s;
}
.remove-file-btn:hover {
background-color: #fee2e2;
}
/* Prompt input */
#prompt-input {
width: 100%;
min-height: 150px;
border: 1px solid #d1d5db;
border-radius: 0.375rem;
padding: 0.75rem;
font-family: inherit;
resize: vertical;
font-size: 0.875rem;
}
#prompt-input:focus {
outline: none;
border-color: #2563eb;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
/* Agent list */
.agent-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.agent-item {
background-color: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 0.375rem;
padding: 0.75rem;
}
.agent-header {
display: flex;
align-items: center;
}
.agent-checkbox {
margin-right: 0.75rem;
}
.agent-name {
font-weight: 500;
}
.agent-description {
margin-top: 0.25rem;
font-size: 0.875rem;
color: #6b7280;
margin-left: 2rem;
}
/* Action buttons */
.action-buttons {
display: flex;
justify-content: space-between;
gap: 0.75rem;
}
.reset-btn {
background-color: #f3f4f6;
color: #4b5563;
border-radius: 0.375rem;
padding: 0.625rem 1.25rem;
font-weight: 500;
transition: background-color 0.2s;
}
.reset-btn:hover {
background-color: #e5e7eb;
}
.start-btn {
background-color: #10b981;
color: white;
border-radius: 0.375rem;
padding: 0.625rem 1.25rem;
font-weight: 500;
transition: background-color 0.2s;
}
.start-btn:hover {
background-color: #059669;
}
.start-btn.running {
background-color: #9ca3af;
cursor: not-allowed;
}
/* Log Container */
.log-container {
background-color: #111827;
color: #34d399;
border-radius: 0.375rem;
padding: 0.75rem;
font-family: 'Consolas', 'Monaco', monospace;
font-size: 0.875rem;
height: 300px;
overflow-y: auto;
}
.log-empty-state {
color: #6b7280;
font-style: italic;
}
.log-entry {
margin-bottom: 0.25rem;
}
.log-time {
color: #9ca3af;
}
.log-message {
margin-left: 0.5rem;
}
.log-info {
color: #ffffff;
}
.log-success {
color: #34d399;
}
.log-error {
color: #f87171;
}
.log-start {
color: #60a5fa;
}
.log-complete {
color: #c084fc;
}
/* Results Container */
.results-container {
min-height: 200px;
}
.results-empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 0.375rem;
padding: 2.5rem 1rem;
color: #6b7280;
text-align: center;
}
.sub-text {
font-size: 0.875rem;
color: #9ca3af;
margin-top: 0.25rem;
}
.results-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.result-item {
background-color: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 0.375rem;
padding: 1rem;
}
.result-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 0.75rem;
}
.result-title {
font-weight: 600;
font-size: 1.125rem;
}
.result-agent {
font-size: 0.75rem;
color: #6b7280;
}
.save-btn {
display: flex;
align-items: center;
gap: 0.25rem;
color: #2563eb;
font-size: 0.875rem;
font-weight: 500;
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
transition: background-color 0.2s;
}
.save-btn:hover {
background-color: #e0f2fe;
}
.result-content {
background-color: white;
border: 1px solid #e5e7eb;
border-radius: 0.375rem;
padding: 0.75rem;
font-size: 0.875rem;
white-space: pre-line;
}
.chart-container {
background-color: white;
border: 1px solid #e5e7eb;
border-radius: 0.375rem;
padding: 0.75rem;
text-align: center;
height: 200px;
display: flex;
align-items: center;
justify-content: center;
color: #6b7280;
}
.chart-title {
border-bottom: 1px solid #e5e7eb;
padding-bottom: 0.5rem;
margin-bottom: 0.75rem;
font-weight: 500;
}