body {
    font-family: Arial, sans-serif;
    background-color: #1b1e1e;
    color: #f8f6f6;
    margin: 10px;
}


a {
    color: #0078d7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
.success {
    color: #28a745;
    font-weight: bold;
}

.error {
    color: #f1041c;
    font-weight: bold;
}

.warning {
    color: #f1b204;
    font-weight: bold;
}
button {
    background-color: gray;
    color: white;
    border: none;
    border-radius: 10px;
    height: 30px;
    cursor: pointer;
    min-width: 100px;
}

button:hover {
    background-color: darkgray;
}
.terminal {
    background-color: black;
    color: #f9fdf9;
    font-family: "Courier New", Courier, monospace;
    padding: 10px;
    margin-top: 20px;
    border-radius: 5px;
    height: 400px;
    width: 600px;
    overflow-y: auto;
    font-size: 10px;
}

.terminal::-webkit-scrollbar {
    width: 5px;
}

.terminal::-webkit-scrollbar-thumb {
    background-color: gray;
    border-radius: 5px;
}

.terminal::-webkit-scrollbar-track {
    background: black;
}

h1 {
    color: #ff6200;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

h2 {
    color: white;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    color: #333;
}

th {
    background-color: #f2f2f2;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:nth-child(odd) {
    background-color: #ffffff;
}
td, th {
    color: #333 !important;
}

.menu-bar {
    background-color: #333;
    padding: 10px 0;
    margin-bottom: 20px;
    width: 100%;
}

.menu-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-bar li {
    margin: 0 15px;
}

.menu-bar a {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s;
}

.menu-bar a:hover {
    background-color: #555;
    color: white;
}

.menu-bar a:active {
    background-color: #777;
}

.wrap-table {
    margin: 0 10%;
}
.topic{
    text-align: center;
}
.menu-bar a.current {
    background-color: #007bff;
}
#logTable {
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    display: block;
}
#toggleButton {
    display: block;
    margin: 10px auto;
}

.status-legend {
    color: #bfbfbf;
    font-size: 12px;
    margin: 6px 0;
}

.page-switch {
    margin: 0 0 12px;
}

a.page-switch-link {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid #3d5a77;
    background: #1f3448;
    color: #e7f2ff;
    font-size: 13px;
    text-decoration: none;
}

a.page-switch-link:hover {
    background: #27445f;
    text-decoration: none;
}

.status-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 12px 0 24px;
}

.status-grid.two,
.status-grid.three {
    justify-content: space-between;
}

.status-card {
    background-color: #222;
    border: 1px solid #444;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 14px;
    min-width: 220px;
    flex: 1 1 220px;
}

.status-grid.two .status-card {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

.status-grid.one .status-card {
    flex: 1 1 100%;
    max-width: 100%;
}

.status-grid.three .status-card {
    flex: 1 1 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}

.status-card h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.status-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    line-height: 1.6;
}

.status-label {
    color: #a7a7a7;
}

.status-value {
    color: #ffffff;
    text-align: right;
}

.status-sep {
    border: 0;
    border-top: 1px solid #3a3a3a;
    margin: 18px 0 12px;
}

.chart {
    width: 100%;
    height: 280px;
}

.chart svg {
    width: 100%;
    height: 100%;
    display: block;
}

.simple-chart-hover-tooltip {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.1px;
    backdrop-filter: blur(1px);
}

.simple-chart-hover-tooltip .sch-row {
    display: grid;
    grid-template-columns: 10px minmax(78px, auto) auto;
    align-items: center;
    gap: 6px;
    line-height: 1.35;
}

.simple-chart-hover-tooltip .sch-row + .sch-row {
    margin-top: 2px;
}

.simple-chart-hover-tooltip .sch-swatch {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(19, 34, 53, 0.25);
}

.simple-chart-hover-tooltip .sch-swatch-empty {
    background: transparent;
    border-color: transparent;
}

.simple-chart-hover-tooltip .sch-label {
    font-weight: 600;
    white-space: nowrap;
}

.simple-chart-hover-tooltip .sch-value {
    color: #1a2d42;
    text-align: right;
    white-space: nowrap;
}

.simple-chart-hover-tooltip .sch-text {
    grid-column: 1 / -1;
}

/* Monitor page (DEM Benchmark inspired) */
body.monitor-page {
    background: radial-gradient(circle at top right, #dce8f3, #f2f5f8 36%);
    color: #132235;
}

body.monitor-page h2 {
    color: #132235;
}

body.monitor-page .menu-bar {
    background-color: #173550;
}

body.monitor-page a.page-switch-link {
    border-color: #2c547a;
    background: #2a5f8e;
    color: #ffffff;
}

body.monitor-page a.page-switch-link:hover {
    background: #23547f;
}

.monitor-wrap {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.monitor-panel {
    background: #ffffff;
    border: 1px solid #d3deea;
    border-radius: 10px;
    padding: 14px;
    color: #132235;
}

.monitor-panel h2 {
    margin: 0 0 12px 0;
    font-size: 18px;
    letter-spacing: 0.2px;
    color: #132235;
}

.monitor-title-meta {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #5f7083;
}

.monitor-status-line {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #5f7083;
}

.monitor-kv code {
    background: #f0f6ff;
    border: 1px solid #dce9f8;
    border-radius: 4px;
    padding: 1px 4px;
    color: #1f4b80;
}

.monitor-ok {
    color: #1c8f57;
    font-weight: 700;
}

.monitor-warn {
    color: #b87800;
    font-weight: 700;
}

.monitor-bad {
    color: #b63131;
}

.monitor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.monitor-table th,
.monitor-table td {
    border-bottom: 1px solid #d3deea;
    text-align: left;
    padding: 8px 6px;
    color: #223547;
}

.monitor-table th {
    font-size: 12px;
    color: #5f7083;
    font-weight: 600;
}

.monitor-table code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: #1f4b80;
    background: #f0f6ff;
    border: 1px solid #dce9f8;
    border-radius: 4px;
    padding: 1px 4px;
}

.monitor-row-muted {
    opacity: 0.55;
}

.monitor-note {
    color: #5f7083;
    font-size: 12px;
}

.monitor-note code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: #1f4b80;
    background: #f0f6ff;
    border: 1px solid #dce9f8;
    border-radius: 4px;
    padding: 1px 4px;
}

.monitor-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.monitor-service-card {
    border: 1px solid #d3deea;
    border-radius: 10px;
    padding: 10px;
    background: #fbfdff;
}

.monitor-service-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #132235;
}

.monitor-service-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid #9eb0c3;
}

.monitor-service-dot.is-up {
    background: #1c8f57;
    border-color: #187548;
    box-shadow: 0 0 0 2px rgba(28, 143, 87, 0.18);
}

.monitor-service-dot.is-down {
    background: #b63131;
    border-color: #8f2525;
    box-shadow: 0 0 0 2px rgba(182, 49, 49, 0.18);
}

.monitor-service-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 3px 0;
    font-size: 12px;
    color: #223547;
    overflow-wrap: anywhere;
}

.monitor-service-line b {
    color: #5f7083;
    min-width: 82px;
}

.monitor-service-line code {
    white-space: normal;
}

.monitor-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.monitor-chart-card {
    border: 1px solid #d3deea;
    border-radius: 8px;
    padding: 10px;
    background: #fbfdff;
}

.monitor-chart-card h3 {
    margin: 0 0 8px;
    font-size: 13px;
    color: #223547;
}

.monitor-chart-card-wide {
    grid-column: 1 / -1;
}

.monitor-actions-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.monitor-inline {
    color: #5f7083;
    font-size: 12px;
}

#trace-limit {
    width: 100px;
    border: 1px solid #d3deea;
    border-radius: 7px;
    padding: 6px 8px;
}

.monitor-log {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 340px;
    overflow: auto;
    padding: 10px;
    border: 1px solid #d3deea;
    border-radius: 8px;
    background: #f9fbfe;
    color: #27384a;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 700px) {
    .monitor-service-grid {
        grid-template-columns: 1fr;
    }

    .monitor-chart-grid {
        grid-template-columns: 1fr;
    }

    .monitor-actions-toolbar {
        flex-wrap: wrap;
    }
}
