/* Custom styles for Elegance RabbitMQ Mock UI */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: 600;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    font-weight: 600;
}

/* Job Status Styles */
.job-status {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.job-status.pending {
    background-color: #e7f1ff;
    border-left: 4px solid #0d6efd;
}

.job-status.running {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.job-status.completed {
    background-color: #d1e7dd;
    border-left: 4px solid #198754;
}

.job-status.failed {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.job-status.timeout {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

/* Queue Stats Table */
.queue-stats-table {
    width: 100%;
}

.queue-stats-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

.queue-stats-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.queue-stats-table tr:hover {
    background-color: #f8f9fa;
}

/* Message Table */
.message-table {
    width: 100%;
    font-size: 0.9rem;
}

.message-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

.message-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.message-table tr:hover {
    background-color: #f8f9fa;
}

.message-id {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary-color);
}

.message-type {
    font-weight: 500;
}

.message-sequence {
    font-family: 'Courier New', monospace;
    color: #6c757d;
}

/* JSON Display */
.json-display {
    max-height: 500px;
    overflow-y: auto;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Loading Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Pagination */
.pagination {
    margin-top: 1rem;
}

/* Status Badge Colors */
.status-badge.pending {
    background-color: #0d6efd;
}

.status-badge.running {
    background-color: #ffc107;
    color: #000;
}

.status-badge.completed {
    background-color: #198754;
}

.status-badge.failed {
    background-color: #dc3545;
}

.status-badge.timeout {
    background-color: #dc3545;
}

/* Queue Chart Styles */
#queueChart {
    max-height: 400px;
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .message-table {
        font-size: 0.8rem;
    }
    
    .message-table th,
    .message-table td {
        padding: 0.5rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    #queueChart {
        max-height: 300px;
    }
}

