rwadurian/backend/mpc-system/services/service-party-app/src/components/DebugConsole.module.css

193 lines
2.8 KiB
CSS

.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
}
.console {
width: 90%;
max-width: 1200px;
height: 80%;
background: #1e1e1e;
border-radius: 8px;
display: flex;
flex-direction: column;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background: #2d2d2d;
border-radius: 8px 8px 0 0;
border-bottom: 1px solid #3d3d3d;
}
.header h3 {
margin: 0;
color: #e0e0e0;
font-size: 14px;
font-weight: 500;
}
.controls {
display: flex;
gap: 8px;
align-items: center;
}
.filter {
background: #3d3d3d;
border: 1px solid #4d4d4d;
color: #e0e0e0;
padding: 4px 8px;
border-radius: 4px;
font-size: 12px;
cursor: pointer;
}
.filter:hover {
border-color: #5d5d5d;
}
.btn {
background: #3d3d3d;
border: 1px solid #4d4d4d;
color: #e0e0e0;
padding: 4px 8px;
border-radius: 4px;
font-size: 12px;
cursor: pointer;
transition: all 0.2s;
}
.btn:hover {
background: #4d4d4d;
}
.btn.active {
background: #4a6da7;
border-color: #5a7db7;
}
.btn.paused {
background: #7a4a4a;
border-color: #8a5a5a;
}
.closeBtn {
background: transparent;
border: none;
color: #888;
font-size: 16px;
cursor: pointer;
padding: 4px 8px;
margin-left: 8px;
}
.closeBtn:hover {
color: #e0e0e0;
}
.logs {
flex: 1;
overflow-y: auto;
padding: 8px 0;
font-size: 12px;
line-height: 1.6;
}
.logs::-webkit-scrollbar {
width: 8px;
}
.logs::-webkit-scrollbar-track {
background: #2d2d2d;
}
.logs::-webkit-scrollbar-thumb {
background: #4d4d4d;
border-radius: 4px;
}
.logs::-webkit-scrollbar-thumb:hover {
background: #5d5d5d;
}
.empty {
color: #666;
text-align: center;
padding: 40px;
font-style: italic;
}
.logEntry {
display: flex;
padding: 2px 16px;
gap: 8px;
border-left: 3px solid transparent;
}
.logEntry:hover {
background: #2a2a2a;
}
.logEntry.info {
border-left-color: #4caf50;
}
.logEntry.warn {
border-left-color: #ff9800;
background: rgba(255, 152, 0, 0.1);
}
.logEntry.error {
border-left-color: #f44336;
background: rgba(244, 67, 54, 0.1);
}
.logEntry.debug {
border-left-color: #9e9e9e;
color: #888;
}
.timestamp {
color: #666;
flex-shrink: 0;
font-size: 11px;
}
.source {
flex-shrink: 0;
font-weight: 500;
font-size: 11px;
min-width: 70px;
}
.message {
color: #d4d4d4;
word-break: break-all;
white-space: pre-wrap;
}
.footer {
display: flex;
justify-content: space-between;
padding: 8px 16px;
background: #2d2d2d;
border-radius: 0 0 8px 8px;
border-top: 1px solid #3d3d3d;
color: #666;
font-size: 11px;
}