2025-04-10 13:59:03 +01:00

190 lines
3.6 KiB
CSS

/**
* Styles for the ClientEventsTable component
* Contains styling for:
* - Table structure and layout
* - Status indicators
* - Modal dialog and tab interface
*/
/* Main table styles */
.client-events-table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
font-size: 14px;
}
.client-events-table th,
.client-events-table td {
padding: 8px 12px;
text-align: left;
border-bottom: 1px solid var(--border-color);
}
.client-events-table th {
background-color: var(--bg-secondary);
font-weight: bold;
}
.client-events-table tbody tr:hover {
background-color: var(--bg-hover);
cursor: pointer;
}
.client-events-table .table-empty-state {
text-align: center;
color: var(--text-muted);
font-style: italic;
}
/* Status indicators */
.status-sent {
color: var(--color-info);
font-weight: bold;
}
.status-responded {
color: var(--color-success);
font-weight: bold;
}
.status-pending {
color: var(--color-warning);
font-weight: bold;
}
.status-failed {
color: var(--color-error);
font-weight: bold;
}
/* Row updated highlight effect */
.client-events-table tr.updated {
animation: row-highlight 2s;
}
@keyframes row-highlight {
0% { background-color: rgba(var(--color-info-rgb), 0.2); }
100% { background-color: transparent; }
}
/* Modal dialog styles */
.client-events-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.client-events-modal .modal-content {
background-color: var(--bg-primary);
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
width: 80%;
max-width: 900px;
max-height: 80%;
overflow: hidden;
display: flex;
flex-direction: column;
}
.client-events-modal .modal-close-button {
position: absolute;
top: 10px;
right: 10px;
font-size: 24px;
background: none;
border: none;
color: white;
cursor: pointer;
}
/* Tab navigation */
.client-events-modal .modal-tabs {
display: flex;
background-color: var(--bg-secondary);
border-bottom: 1px solid var(--border-color);
}
.client-events-modal .modal-tab {
padding: 10px 15px;
background: none;
border: none;
border-bottom: 2px solid transparent;
cursor: pointer;
color: var(--text-primary);
font-weight: normal;
}
.client-events-modal .modal-tab.active {
border-bottom: 2px solid var(--color-accent);
font-weight: bold;
}
.client-events-modal .modal-tab:hover {
background-color: var(--bg-hover);
}
/* Tab content */
.client-events-modal .modal-tab-contents {
padding: 15px;
overflow-y: auto;
max-height: calc(80vh - 50px);
}
.client-events-modal .modal-tab-content {
display: none;
}
/* JSON content formatting */
.client-events-modal pre.json-content {
background-color: var(--bg-code);
padding: 10px;
border-radius: 4px;
overflow-x: auto;
max-height: 350px;
font-family: monospace;
white-space: pre-wrap;
}
/* HTTP content formatting */
.client-events-modal .http-content {
background-color: var(--bg-code);
padding: 10px;
border-radius: 4px;
font-family: monospace;
white-space: pre-wrap;
overflow-x: auto;
}
.client-events-modal .no-response {
padding: 15px;
text-align: center;
color: var(--text-muted);
font-style: italic;
}
/* Update notification */
.client-events-modal .modal-update-notification {
position: absolute;
top: 50px;
right: 20px;
background-color: var(--color-success);
color: white;
padding: 10px 15px;
border-radius: 4px;
animation: fade-in-out 2s;
}
@keyframes fade-in-out {
0% { opacity: 0; }
10% { opacity: 1; }
90% { opacity: 1; }
100% { opacity: 0; }
}