:root {
--primary-color: #0d6efd;
--secondary-color: #6c757d;
--info-color: #0dcaf0;
--success-color: #198754; /* New: for consistent status */
--danger-color: #dc3545; /* New: for conflict status */
--warning-color: #ffc107; /* New: for error status */
--border-color: #dee2e6;
--bg-color-light: #f8f9fa;
--text-color: #212529;
/* Light Theme Code Colors */
--code-bg: #f8f8f8; /* Very light gray, like a parchment or fresh terminal */
--code-text: #333333; /* Darker text for readability */
--code-border: #e0e0e0;
}
/* Layout */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: var(--bg-color-light);
color: var(--text-color);
}
.container {
max-width: 1200px;
margin: 0 auto;
background: #fff;
border: 1px solid var(--border-color);
padding: 30px;
border-radius: 8px;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
position: relative;
}
/* ------------------------------------------------------------- */
/* NEW: Action Buttons (Enable/Disable/Toggle in table) */
/* ------------------------------------------------------------- */
.action-button {
font-size: 0.85rem;
padding: 5px 10px;
border-radius: 4px;
cursor: pointer;
border: 1px solid transparent;
transition: all 0.2s ease;
margin: 0;
}
.action-button.disable {
background-color: var(--secondary-color);
color: white;
}
.action-button.disable:hover {
background-color: #5c636a;
}
.action-button.enable {
background-color: var(--success-color);
color: white;
}
.action-button.enable:hover {
background-color: #157347;
}
.action-button.remove {
background-color: var(--danger-color);
color: white;
}
.action-button.remove:hover {
background-color: #bb2d3b;
}
/* ------------------------------------------------------------- */
/* NEW: Consistency Status Indicator */
/* ------------------------------------------------------------- */
#consistency-status-container {
position: absolute;
top: 30px;
right: 30px;
z-index: 5;
}
#consistency-button {
font-size: 0.9rem;
padding: 8px 15px;
border-radius: 5px;
font-weight: 600;
cursor: default;
pointer-events: none;
transition: background-color 0.2s ease, transform 0.1s ease;
border: none;
}
#consistency-button.consistent {
background-color: var(--success-color);
color: white;
}
#consistency-button.inconsistent {
background-color: var(--danger-color);
color: white;
cursor: pointer;
pointer-events: auto;
}
#consistency-button.inconsistent:hover {
background-color: #bb2d3b;
transform: scale(1.02);
}
#consistency-button.error {
background-color: var(--warning-color);
color: var(--text-color);
}
#consistency-button:disabled {
opacity: 0.8;
}
/* Toolbar */
.toolbar {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-bottom: 15px;
margin-top: 15px;
}
.toolbar button {
background-color: var(--primary-color);
color: white;
border: none;
border-radius: 5px;
padding: 6px 12px;
font-size: 0.9rem;
cursor: pointer;
transition: background-color 0.2s ease;
}
.toolbar button:hover {
background-color: #0b5ed7;
}
/* Table */
.config-table {
width: 100%;
border-collapse: collapse;
margin-top: 15px;
}
.config-table th,
.config-table td {
padding: 10px 12px;
text-align: left;
border-bottom: 1px solid var(--border-color);
vertical-align: top;
}
.config-table th {
background-color: #f1f3f5;
font-weight: 600;
color: #495057;
position: sticky;
top: 0;
z-index: 2;
}
/* Prevent whole row hover highlight */
.config-table tr:hover {
background-color: transparent;
}
/* Row-specific hover highlight */
.config-table tr:hover:not(.disabled-row) {
background-color: #f8fbff;
}
.listener-name {
font-weight: 600;
color: var(--primary-color);
cursor: pointer;
}
/* Clickable link style */
.listener-name,
.domain-name-link {
font-weight: 600;
color: var(--primary-color);
cursor: pointer;
text-decoration: none;
transition: color 0.15s ease;
}
/* Highlight only when hovering over the link itself */
.listener-name:hover,
.domain-name-link:hover {
text-decoration: underline;
color: #0a58ca;
}
/* Keep non-clickable text normal */
.config-table td {
cursor: default;
}
.disabled-row {
opacity: 0.6;
background-color: #f1f1f1;
}
.disabled-row .listener-name {
text-decoration: line-through;
}
/* Badges */
.tls-badge {
display: inline-block;
background-color: var(--info-color);
color: white;
padding: 4px 8px;
border-radius: 12px;
font-size: 0.75rem;
margin-left: 6px;
}
.filter-badge {
display: inline-block;
background-color: #6f42c1;
color: white;
padding: 3px 6px;
border-radius: 4px;
font-size: 0.7rem;
margin-left: 6px;
}
/* Domain Config */
.domain-config-list {
display: flex;
flex-direction: column;
gap: 8px;
margin-top: 6px;
}
.domain-config-item {
background-color: #fcfcfc;
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 6px 10px;
transition: background-color 0.2s ease;
}
.domain-config-item:hover {
background-color: #eef5ff;
}
.domain-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.domain-name-link {
color: var(--primary-color);
font-weight: 500;
cursor: pointer;
}
.domain-name-link:hover {
text-decoration: underline;
}
.route-type-display {
font-size: 0.75rem;
color: var(--secondary-color);
margin-top: 3px;
}
/* ============================================================= */
/* MODAL FIXES AND TAB STYLING */
/* ============================================================= */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
padding-top: 50px;
background-color: rgba(0, 0, 0, 0.5);
overflow: auto;
}
.modal-content {
background-color: #fff;
margin: 0 auto;
padding: 25px;
border-radius: 8px;
max-width: 900px;
width: 80%;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
position: relative;
max-height: 90vh;
overflow-y: auto;
}
/* Close Button Styling and Positioning Fix */
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
line-height: 1;
cursor: pointer;
position: absolute;
top: 10px;
right: 20px;
z-index: 10;
}
.close:hover,
.close:focus {
color: #000;
text-decoration: none;
}
.modal-content h2 {
padding-right: 40px;
}
/* Tab Controls Styling */
/* Tab Controls Styling - UPDATED */
.tab-controls {
display: flex; /* Enable flexbox */
align-items: flex-end; /* Align tabs to the bottom of the container */
margin: 15px 0 0;
border-bottom: 2px solid var(--border-color);
}
.tab-button {
background: transparent;
border: none;
border-bottom: 2px solid transparent;
padding: 10px 15px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
color: var(--secondary-color);
transition: all 0.2s ease;
margin-bottom: -2px;
/* Removed margin-right: auto; from here */
}
.tab-button.active {
color: var(--primary-color);
border-bottom-color: var(--primary-color);
}
/* NEW: Download Button Styling */
.download-button {
/* Push this button to the far right by consuming all available space to its left */
margin-left: auto;
/* Make the download button look like a primary action button, not a tab */
background-color: var(--primary-color);
color: white;
border-radius: 4px;
/* Override tab-button border */
border-bottom: none !important;
/* Adjust padding to be more like a traditional button */
padding: 8px 15px;
font-size: 0.9rem;
font-weight: 500;
}
.download-button:hover {
background-color: #0b5ed7; /* Darker primary color on hover */
}
/* NEW: Light Theme Code Block Styling (applies to both JSON and YAML) */
.code-block {
background: var(--code-bg); /* Very light gray */
color: var(--code-text); /* Dark text */
font-family: monospace;
font-size: 0.9rem;
padding: 15px;
border-radius: 4px;
border: 1px solid var(--code-border); /* Light border */
max-height: 500px;
overflow: auto;
white-space: pre;
word-wrap: normal;
}
/* ------------------------------------------------------------- */
/* NEW: Consistency Modal Specific Styles (using light code theme) */
/* ------------------------------------------------------------- */
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 15px;
padding-top: 15px;
border-top: 1px solid var(--border-color);
margin-top: 20px;
}
.modal-actions button {
font-size: 1rem;
padding: 10px 20px;
line-height: 1.2;
text-align: center;
}
.modal-actions small {
font-weight: 400;
display: block;
font-size: 0.75rem;
opacity: 0.9;
}
#inconsistency-details-content pre {
/* Ensure consistency modal PRE elements also use the light code-block styles for scrolling */
background: var(--code-bg);
color: var(--code-text);
padding: 10px;
border-radius: 4px;
border: 1px solid var(--code-border);
font-size: 0.9rem;
max-height: 300px;
overflow: auto;
white-space: pre;
word-wrap: normal;
}
/* UI Improvement: Conflict List styling (for JS-rendered content) */
.conflict-list {
list-style: none;
padding: 0;
margin: 10px 0 20px 0;
}
.conflict-list li {
padding: 8px 10px;
border-bottom: 1px solid #eee;
font-size: 0.95rem;
display: flex;
gap: 10px;
align-items: center;
}
.conflict-list li:nth-child(even) {
background-color: #fcfcfc;
}
.conflict-list .no-conflicts {
color: var(--success-color);
font-weight: 500;
background-color: var(--bg-color-light);
border-radius: 4px;
padding: 10px;
margin: 5px 0;
border: 1px solid rgba(25, 135, 84, 0.2);
}
.conflict-type {
font-weight: 600;
color: var(--primary-color);
background-color: #e9f2ff;
padding: 2px 6px;
border-radius: 4px;
}
.conflict-name {
font-family: monospace;
font-weight: 500;
color: #343a40;
}
/* ------------------------------------------------------------- */
/* Responsive */
@media (max-width: 768px) {
.config-table th, .config-table td {
font-size: 0.85rem;
padding: 8px;
}
.container {
padding: 15px;
}
.modal-content {
width: 95%;
margin: 10px auto;
}
.modal {
padding-top: 20px;
}
#consistency-status-container {
top: 15px;
right: 15px;
}
}