jay-code
Version:
Streamlined AI CLI orchestration engine with mathematical rigor and enterprise-grade reliability
602 lines (510 loc) • 9.28 kB
CSS
/* DAA Tools CSS Styles */
.daa-panel {
background: #1a1a1a;
border: 1px solid #333;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
color: #e0e0e0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.daa-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 2px solid #333;
}
.daa-header h3 {
margin: 0;
color: #4caf50;
font-size: 1.5em;
font-weight: 600;
}
.daa-metrics {
display: flex;
gap: 20px;
}
.metric {
display: flex;
flex-direction: column;
align-items: center;
min-width: 60px;
}
.metric-label {
font-size: 0.8em;
color: #aaa;
margin-bottom: 5px;
}
.metric-value {
font-size: 1.2em;
font-weight: bold;
color: #4caf50;
}
.daa-tabs {
display: flex;
gap: 2px;
margin-bottom: 20px;
border-bottom: 1px solid #333;
}
.daa-tab {
background: #2a2a2a;
border: none;
padding: 12px 20px;
color: #ccc;
cursor: pointer;
border-radius: 8px 8px 0 0;
transition: all 0.3s ease;
font-size: 0.9em;
}
.daa-tab:hover {
background: #3a3a3a;
color: #fff;
}
.daa-tab.active {
background: #4caf50;
color: #fff;
}
.daa-content {
min-height: 400px;
}
.daa-tab-content {
display: none;
}
.daa-tab-content.active {
display: block;
}
.daa-section {
margin-bottom: 30px;
padding: 20px;
background: #2a2a2a;
border-radius: 8px;
border: 1px solid #333;
}
.daa-section h4 {
margin: 0 0 15px 0;
color: #4caf50;
font-size: 1.2em;
font-weight: 500;
}
.daa-form {
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
margin-bottom: 20px;
}
.daa-form input,
.daa-form select,
.daa-form textarea {
background: #1a1a1a;
border: 1px solid #444;
color: #e0e0e0;
padding: 8px 12px;
border-radius: 4px;
min-width: 150px;
}
.daa-form input:focus,
.daa-form select:focus,
.daa-form textarea:focus {
outline: none;
border-color: #4caf50;
box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}
.daa-form textarea {
min-width: 300px;
min-height: 80px;
resize: vertical;
}
.daa-form button {
background: #4caf50;
color: #fff;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
transition: background 0.3s ease;
}
.daa-form button:hover {
background: #45a049;
}
.daa-visualization {
background: #1a1a1a;
border: 1px solid #333;
border-radius: 8px;
padding: 20px;
margin: 15px 0;
min-height: 200px;
}
.daa-agents-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 15px;
margin-top: 15px;
}
.daa-agent-card {
background: #1a1a1a;
border: 1px solid #444;
border-radius: 8px;
padding: 15px;
transition: all 0.3s ease;
}
.daa-agent-card:hover {
border-color: #4caf50;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.agent-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.agent-id {
font-weight: bold;
color: #4caf50;
font-size: 0.9em;
}
.agent-status {
padding: 4px 8px;
border-radius: 12px;
font-size: 0.8em;
font-weight: 500;
text-transform: uppercase;
}
.status-active {
background: #4caf50;
color: #fff;
}
.status-paused {
background: #ff9800;
color: #fff;
}
.status-stopped {
background: #f44336;
color: #fff;
}
.status-initializing {
background: #2196f3;
color: #fff;
}
.agent-details {
margin-bottom: 15px;
}
.agent-type {
font-weight: 500;
color: #ccc;
margin-bottom: 5px;
}
.agent-capabilities {
font-size: 0.9em;
color: #aaa;
font-style: italic;
}
.agent-actions {
display: flex;
gap: 5px;
}
.agent-actions button {
background: #666;
color: #fff;
border: none;
padding: 6px 12px;
border-radius: 4px;
cursor: pointer;
font-size: 0.8em;
transition: background 0.3s ease;
}
.agent-actions button:hover {
background: #777;
}
.daa-status-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 15px;
margin-top: 15px;
}
.daa-dashboard {
background: #1a1a1a;
border-radius: 8px;
padding: 20px;
}
.daa-dashboard-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
.daa-dashboard-item {
background: #2a2a2a;
border: 1px solid #333;
border-radius: 8px;
padding: 15px;
}
.daa-dashboard-item h5 {
margin: 0 0 15px 0;
color: #4caf50;
font-size: 1.1em;
}
.daa-health-grid,
.daa-fault-grid,
.daa-optimization-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.daa-health-grid .fault-item,
.daa-fault-grid .fault-item,
.daa-optimization-grid .optimization-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px;
background: #1a1a1a;
border-radius: 4px;
}
.fault-label,
.opt-label {
color: #ccc;
font-size: 0.9em;
}
.fault-value,
.opt-value {
color: #4caf50;
font-weight: bold;
}
.lifecycle-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px;
background: #1a1a1a;
border-radius: 4px;
margin-bottom: 10px;
}
.status-badge {
padding: 4px 8px;
border-radius: 12px;
font-size: 0.8em;
font-weight: 500;
text-transform: uppercase;
min-width: 80px;
text-align: center;
}
.status-count {
font-weight: bold;
color: #4caf50;
}
.daa-consensus-grid {
margin-top: 15px;
}
.consensus-item {
background: #1a1a1a;
border: 1px solid #333;
border-radius: 8px;
padding: 15px;
margin-bottom: 10px;
}
.consensus-proposal {
font-weight: 500;
color: #e0e0e0;
margin-bottom: 10px;
}
.consensus-status {
color: #4caf50;
font-size: 0.9em;
margin-bottom: 10px;
}
.consensus-progress {
background: #333;
border-radius: 4px;
height: 6px;
overflow: hidden;
}
.progress-bar {
height: 100%;
background: #4caf50;
transition: width 0.3s ease;
}
/* SVG Communication Flow Styles */
#daa-comm-diagram {
background: #1a1a1a;
border-radius: 8px;
}
/* Canvas Styles */
canvas {
background: #1a1a1a;
border-radius: 8px;
border: 1px solid #333;
}
/* Responsive Design */
@media (max-width: 768px) {
.daa-metrics {
flex-wrap: wrap;
gap: 15px;
}
.daa-form {
flex-direction: column;
align-items: stretch;
}
.daa-form input,
.daa-form select,
.daa-form textarea {
min-width: unset;
width: 100%;
}
.daa-agents-grid {
grid-template-columns: 1fr;
}
.daa-dashboard-grid {
grid-template-columns: 1fr;
}
}
/* Animation Classes */
.daa-fade-in {
animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.daa-pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
/* Scrollbar Styles */
.daa-panel::-webkit-scrollbar {
width: 8px;
}
.daa-panel::-webkit-scrollbar-track {
background: #1a1a1a;
}
.daa-panel::-webkit-scrollbar-thumb {
background: #4caf50;
border-radius: 4px;
}
.daa-panel::-webkit-scrollbar-thumb:hover {
background: #45a049;
}
/* Tooltip Styles */
.daa-tooltip {
position: relative;
display: inline-block;
}
.daa-tooltip .tooltiptext {
visibility: hidden;
width: 200px;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 8px;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -100px;
opacity: 0;
transition: opacity 0.3s;
font-size: 0.9em;
}
.daa-tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}
/* Loading Animation */
.daa-loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid #333;
border-radius: 50%;
border-top-color: #4caf50;
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Status Indicators */
.daa-status-indicator {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 50%;
margin-right: 8px;
}
.daa-status-indicator.online {
background: #4caf50;
box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}
.daa-status-indicator.offline {
background: #f44336;
box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.3);
}
.daa-status-indicator.warning {
background: #ff9800;
box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.3);
}
/* Chart Container */
.daa-chart-container {
position: relative;
height: 300px;
margin: 15px 0;
}
/* Performance optimizations */
.daa-panel * {
box-sizing: border-box;
}
.daa-panel .daa-visualization {
will-change: transform;
}
.daa-panel .daa-agent-card {
will-change: transform;
}
/* Dark theme overrides */
.dark-theme .daa-panel {
background: #0a0a0a;
border-color: #222;
}
.dark-theme .daa-section {
background: #1a1a1a;
border-color: #222;
}
.dark-theme .daa-form input,
.dark-theme .daa-form select,
.dark-theme .daa-form textarea {
background: #0a0a0a;
border-color: #333;
}
/* Print styles */
@media print {
.daa-panel {
background: white;
color: black;
border: 1px solid #ccc;
}
.daa-section {
background: #f9f9f9;
border: 1px solid #ddd;
}
.daa-form button {
display: none;
}
}