besper-frontend-site-dev-main
Version:
Professional B-esper Frontend Site - Site-wide integration toolkit for full website bot deployment
543 lines (468 loc) • 9.3 kB
CSS
/* Live Logs Tab Enhanced Styling */
.live-logs-container {
display: flex;
flex-direction: column;
height: 100%;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Welcome Screen */
.live-logs-welcome {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 40px;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
color: #495057;
text-align: center;
border-bottom: 1px solid #dee2e6;
}
.live-logs-welcome-content h3 {
font-size: 28px;
font-weight: 700;
margin: 0 0 16px 0;
color: #212529;
}
.live-logs-welcome-content p {
font-size: 16px;
margin: 0 0 32px 0;
color: #6c757d;
max-width: 500px;
line-height: 1.6;
}
.live-logs-welcome-actions {
display: flex;
gap: 16px;
}
/* Enhanced Button Styles */
.btn-listen {
background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
border: none;
color: white;
padding: 16px 32px;
font-size: 16px;
font-weight: 600;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}
.btn-listen:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}
.btn-icon {
font-size: 18px;
}
/* Controls Section */
.live-logs-controls {
background: white;
border-bottom: 2px solid #e9ecef;
padding: 24px;
}
.controls-header {
margin-bottom: 24px;
}
.controls-header h4 {
font-size: 20px;
font-weight: 600;
margin: 0 0 8px 0;
color: #495057;
}
.controls-header p {
font-size: 14px;
color: #6c757d;
margin: 0;
}
.controls-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-bottom: 24px;
}
.control-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.control-group label {
font-size: 14px;
font-weight: 600;
color: #495057;
display: flex;
align-items: center;
gap: 8px;
}
.control-group select,
.control-group input {
padding: 12px 16px;
border: 2px solid #e9ecef;
border-radius: 8px;
font-size: 14px;
background-color: #fff;
transition: all 0.3s ease;
}
.control-group select:focus,
.control-group input:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.control-actions {
display: flex;
gap: 12px;
flex-wrap: wrap;
}
.btn-success {
background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
border: none;
color: white;
padding: 12px 24px;
font-size: 14px;
font-weight: 600;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
}
.btn-success:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}
.btn-secondary {
background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
border: none;
color: white;
padding: 12px 24px;
font-size: 14px;
font-weight: 600;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
}
.btn-secondary:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}
.btn-outline {
background: transparent;
border: 2px solid #6c757d;
color: #6c757d;
padding: 10px 22px;
font-size: 14px;
font-weight: 600;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
}
.btn-outline:hover {
background: #6c757d;
color: white;
transform: translateY(-1px);
}
/* Status Section */
.logs-status {
padding: 16px 24px;
margin: 0;
font-weight: 500;
border-radius: 8px;
margin: 12px 24px;
display: none;
}
.logs-status-loading {
background: #fff3cd;
border: 1px solid #ffeaa7;
color: #856404;
}
.logs-status-success {
background: #d4edda;
border: 1px solid #c3e6cb;
color: #155724;
}
.logs-status-error {
background: #f8d7da;
border: 1px solid #f5c6cb;
color: #721c24;
}
.logs-status-info {
background: #d1ecf1;
border: 1px solid #bee5eb;
color: #0c5460;
}
/* Logs Display */
.logs-display {
flex: 1;
display: flex;
flex-direction: column;
background: white;
margin: 0 24px 24px 24px;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.logs-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 24px;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
border-bottom: 2px solid #e9ecef;
}
.logs-header h4 {
font-size: 18px;
font-weight: 600;
margin: 0;
color: #495057;
}
.logs-stats {
display: flex;
align-items: center;
gap: 20px;
font-size: 14px;
}
.logs-count {
font-weight: 600;
color: #495057;
}
.connection-status {
font-weight: 600;
padding: 6px 12px;
border-radius: 20px;
background: #f8f9fa;
display: flex;
align-items: center;
gap: 6px;
}
.status-dot {
font-size: 12px;
font-weight: bold;
}
/* Logs Container */
.logs-container {
flex: 1;
overflow-y: auto;
max-height: 400px;
padding: 0;
}
.no-logs {
display: flex;
align-items: center;
justify-content: center;
height: 200px;
color: #6c757d;
font-size: 16px;
text-align: center;
font-style: italic;
}
/* Log Entries */
.log-entry {
padding: 16px 24px;
border-bottom: 1px solid #f1f3f4;
border-left: 4px solid #6c757d;
background: #fff;
transition: background-color 0.2s ease;
}
.log-entry:hover {
background-color: #f8f9fa;
}
.log-entry:last-child {
border-bottom: none;
}
.log-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 8px;
flex-wrap: wrap;
}
.log-timestamp {
font-size: 12px;
color: #6c757d;
font-family: 'Courier New', monospace;
font-weight: 600;
background: #f8f9fa;
padding: 2px 6px;
border-radius: 4px;
}
.log-severity {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
padding: 4px 8px;
border-radius: 12px;
color: white;
min-width: 60px;
text-align: center;
}
.log-success {
font-size: 16px;
}
.log-function {
font-size: 13px;
font-weight: 600;
color: #495057;
background-color: #e3f2fd;
padding: 4px 8px;
border-radius: 12px;
}
.log-operation {
font-size: 12px;
color: #6c757d;
background-color: #f8f9fa;
padding: 3px 6px;
border-radius: 8px;
}
.log-execution-time {
font-size: 11px;
color: #28a745;
font-weight: 600;
font-family: 'Courier New', monospace;
background: #e8f5e8;
padding: 2px 6px;
border-radius: 4px;
}
.log-message {
font-size: 14px;
color: #212529;
margin-bottom: 8px;
line-height: 1.5;
font-weight: 500;
}
.log-details {
font-size: 12px;
color: #6c757d;
background-color: #f8f9fa;
padding: 12px 16px;
border-radius: 8px;
border-left: 3px solid #dee2e6;
}
.performance-metrics,
.operation-metrics {
margin-bottom: 6px;
}
.performance-metrics:last-child,
.operation-metrics:last-child {
margin-bottom: 0;
}
.error-details {
color: #dc3545;
font-weight: 600;
}
/* Scrollbar Styling */
.logs-container::-webkit-scrollbar {
width: 8px;
}
.logs-container::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
.logs-container::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, #c1c1c1 0%, #a8a8a8 100%);
border-radius: 4px;
}
.logs-container::-webkit-scrollbar-thumb:hover {
background: linear-gradient(135deg, #a8a8a8 0%, #999 100%);
}
/* Responsive Design */
@media (max-width: 768px) {
.live-logs-welcome {
padding: 40px 20px;
}
.live-logs-welcome-content h3 {
font-size: 24px;
}
.controls-grid {
grid-template-columns: 1fr;
gap: 16px;
}
.control-actions {
flex-direction: column;
}
.logs-header {
flex-direction: column;
gap: 12px;
align-items: flex-start;
}
.logs-stats {
width: 100%;
justify-content: space-between;
}
.log-header {
flex-direction: column;
align-items: flex-start;
gap: 6px;
}
}
/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
.live-logs-container {
background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}
.live-logs-controls,
.logs-display,
.log-entry {
background: #2d3748;
color: #e2e8f0;
}
.control-group select,
.control-group input {
background-color: #4a5568;
border-color: #4a5568;
color: #e2e8f0;
}
.logs-header {
background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}
.log-entry {
border-bottom-color: #4a5568;
}
.log-entry:hover {
background-color: #4a5568;
}
.log-details {
background-color: #4a5568;
border-left-color: #718096;
}
}
/* Animation Classes */
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
.connection-status:has-text('Live Streaming') {
animation: pulse 2s ease-in-out infinite;
}
/* Loading Animation */
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.loading-spinner {
display: inline-block;
width: 16px;
height: 16px;
border: 2px solid #e9ecef;
border-top-color: #007bff;
border-radius: 50%;
animation: spin 1s linear infinite;
}