/* ------------------------------------------------- 1. Global settings & color palette ------------------------------------------------- */ :root { /* Dark theme – body & card backgrounds */ --bg-body: #2c3e50; /* main page background */ --bg-card: #34495e; /* card / panel background */ --bg-sidebar: #3d566e; /* sidebar background (slightly lighter) */ /* Accent / link colour */ --clr-accent: #3498db; /* blue accent for links */ /* Text colour */ --clr-text: #ecf0f1; /* light whiteish text */ /* Borders / accents */ --clr-border: #1f2b38; /* dark border colour */ } * { box-sizing: border-box; } /* Body */ body { margin: 0; padding: 0; background: var(--bg-body); color: var(--clr-text); font-family: Arial, Helvetica, sans-serif; } /* Links */ a { color: var(--clr-accent); text-decoration: none; } a:hover { text-decoration: underline; } /* ------------------------------------------------- 2. Layout – wrapper, sidebar, main ------------------------------------------------- */ .wrapper { display: flex; min-height: 100vh; } .sidebar { width: 200px; background: var(--bg-sidebar); padding: 1rem; } .sidebar h3 { margin: 0 0 .4rem 0; font-size: 1.1rem; } .sidebar ul { list-style: none; padding: 0; margin: 0; } .sidebar ol { list-style: none; padding: 0; margin: 0; } .sidebar li { margin-bottom: .4rem; } .sidebar a { color: var(--clr-accent); } .sidebar a.active { font-weight: bold; } .main { flex: 1; padding: 1rem; } /* ------------------------------------------------- 3. Card component ------------------------------------------------- */ .card { max-width: 950px; margin: 20px auto 1rem auto; padding: 20px; background: var(--bg-card); border: 1px solid var(--clr-border); border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,.3); } /* ------------------------------------------------- 4. Tables ------------------------------------------------- */ table, th, td { border: 2px solid var(--clr-border); border-collapse: collapse; } th, td { padding: 10px; } /* Alternate row colour for metrics table */ #host_metrics_table tbody tr td:nth-of-type(even) { background: #3e5c78; /* slight contrast */ } /* ------------------------------------------------- 5. Lists & headings ------------------------------------------------- */ h1, h2, h3, h4 { color: var(--clr-text); margin: 0 0 .4rem 0; } ul { list-style: none; padding: 0; } ol { list-style: none; padding: 0; } li { margin-bottom: 10px; color: var(--clr-text); } /* System & component lists */ .system-list, .info-list { list-style: none; padding: 0; margin: 0; } .system-list li, .info-list li { margin-bottom: 5px; color: var(--clr-text); } /* ------------------------------------------------- 6. Components grid ------------------------------------------------- */ .components { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; } .component { padding: 10px; border: 1px solid var(--clr-border); border-radius: 4px; } .component h3 { margin: 0 0 5px; } /* ------------------------------------------------- 7. Help toggle / modal ------------------------------------------------- */ .help-link { cursor: pointer; user-select: none; color: var(--clr-accent); text-align: right; } .help-link:hover { text-decoration: underline; } #helpText { display: none; } /* ------------------------------------------------- 8. Misc helpers ------------------------------------------------- */ /* Hide numeric markers in metric columns (if any) */ #host_metrics_column td { list-style: none; padding-left: 0; margin-left: 0; }