/* General Styles */ html, body { height: 100%; margin: 0; padding: 0; font-family: Arial, sans-serif; } body { display: flex; flex-direction: row; background-color: #f5f5f5; position: relative; /* Added to position the toggle switch */ } /* Dark Mode Styles */ body.dark-mode { background-color: #1e1e1e; } /* Sidebar Styles */ #sidebar { width: 220px; background-color: #ffffff; border-right: 1px solid #ccc; overflow-y: auto; flex-shrink: 0; } body.dark-mode #sidebar { background-color: #252526; border-right: 1px solid #3c3c3c; } #sidebar h1 { padding: 8px; margin: 0; background-color: #586066; color: white; font-size: 18px; } body.dark-mode #sidebar h1 { background-color: #333333; color: #d4d4d4; } /* Hashes List Styles */ #hashes { list-style: none; padding: 0; margin: 0; } #hashes li { padding: 3px 10px; border-bottom: 1px solid #eee; cursor: pointer; display: flex; align-items: center; transition: all 0.3s ease; min-height: 30px; } body.dark-mode #hashes li { border-bottom: 1px solid #3c3c3c; } #hashes li:hover { background-color: #f0f0f0; } body.dark-mode #hashes li:hover { background-color: #2d2d30; } #hashes li.selected { background-color: #e0e0e0; font-weight: bold; } body.dark-mode #hashes li.selected { background-color: #3e3e42; } #hashes li .hash-badge { flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; border: 1px solid rgba(0, 0, 0, 0.2); transition: all 0.3s ease; } body.dark-mode #hashes li .hash-badge { border: 1px solid rgba(255, 255, 255, 0.2); } #hashes li.selected .hash-badge { width: 14px; height: 14px; } #hashes li .hash-text { margin-left: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-grow: 1; min-width: 0; font-size: 12px; color: #333; } body.dark-mode #hashes li .hash-text { color: #d4d4d4; } /* Main Content Styles */ #main { flex-grow: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; } body.dark-mode #main { background-color: #1e1e1e; color: #d4d4d4; } /* Log Levels Container */ #main>div:first-of-type { margin-bottom: 10px; display: flex; align-items: center; flex-wrap: wrap; } #main>div:first-of-type h2 { margin: 0 10px 0 0; font-size: 18px; } body.dark-mode #main>div:first-of-type h2 { color: #d4d4d4; } /* Logs to fetch input field */ #logCountInput { width: 60px; margin-left: 10px; padding: 5px; border: 1px solid #ccc; border-radius: 4px; background-color: #ffffff; color: #333; } /* Dark mode styles */ body.dark-mode #logCountInput { background-color: #3c3c3c; color: #d4d4d4; border-color: #555; } /* Separator Line */ .separator { display: inline-block; border-left: 1px solid #ccc; height: 20px; margin: 0 10px; vertical-align: middle; } body.dark-mode .separator { border-left: 1px solid #3c3c3c; } /* Log Level Badges Container */ #levels { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; } /* Log Level Badges */ .badge { display: inline-block; padding: 3px 8px; margin: 0; background-color: #007BFF; color: #333; cursor: pointer; border-radius: 4px; font-size: 12px; user-select: none; } .badge.selected { filter: none; } .badge:not(.selected) { filter: grayscale(70%) brightness(80%); } .badge.INFO { background-color: #77dd77; } .badge.WARN { background-color: #ffb347; } .badge.ERROR { background-color: #ff6961; } .badge.DEBUG { background-color: #aec6cf; } body.dark-mode .badge { color: #ffffff; border: 1px solid #3c3c3c; } body.dark-mode .badge:not(.selected) { filter: grayscale(70%) brightness(60%); } body.dark-mode .badge.INFO { background-color: #264f78; } body.dark-mode .badge.WARN { background-color: #b89500; } body.dark-mode .badge.ERROR { background-color: #be1100; } body.dark-mode .badge.DEBUG { background-color: #6a9955; } /* Logs Table Styles */ table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 15px; background-color: #ffffff; } body.dark-mode table { background-color: #1e1e1e; } th, td { padding: 5px 10px; border-bottom: 1px solid #ccc; text-align: left; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333; } body.dark-mode th, body.dark-mode td { border-bottom: 1px solid #3c3c3c; color: #d4d4d4; } th { background-color: #f0f0f0; } body.dark-mode th { background-color: #333333; } tr:hover { background-color: #f9f9f9; } body.dark-mode tr:hover { background-color: #2d2d30; } /* Adjust Column Sizes */ th.hash-column, td.hash-column { width: 15%; } th.timestamp-column, td.timestamp-column { width: 15%; } th.level-column, td.level-column { width: 10%; } th:last-child, td:last-child { width: 60%; white-space: normal; word-wrap: break-word; } .ui-slider .ui-slider-handle { width: 10px; /* Set the desired width to make it slimmer */ height: 20px; /* Adjust the height as needed */ margin-top: 0px; /* Center the handle vertically on the slider bar */ background-color: #4c6075; /* Optional: Change handle color */ border-radius: 2px; /* Optional: Adjust border radius */ border: none; /* Optional: Remove border if desired */ } #slider-range .ui-slider-range { background-color: #355f3c; /* Match the handle color or choose a different one */ } /* Dark mode adjustments */ body.dark-mode #slider-range .ui-slider-handle { background-color: #91c8ec !important; } body.dark-mode #slider-range .ui-slider-range { background-color: #24b36b; } /* Log Level Colors */ .level-label { display: inline-block; padding: 3px 5px; border-radius: 3px; color: #333; font-weight: bold; } .level-label.level-INFO { background-color: #77dd77; } .level-label.level-WARN { background-color: #ffb347; } .level-label.level-ERROR { background-color: #ff6961; } .level-label.level-DEBUG { background-color: #aec6cf; } /* Dark Mode Styles */ body.dark-mode .level-label { color: #ffffff; } body.dark-mode .level-label.level-INFO { background-color: #264f78; } body.dark-mode .level-label.level-WARN { background-color: #b89500; } body.dark-mode .level-label.level-ERROR { background-color: #be1100; } body.dark-mode .level-label.level-DEBUG { background-color: #6a9955; } .level-label.level-ERROR::after, .level-label.level-DEBUG::after { content: none; /* or content: normal; */ } /* Search Bar Styles */ #searchContainer { display: flex; align-items: center; margin-top: 20px; } #searchInput { flex-grow: 1; padding: 5px 10px; font-size: 14px; border: 1px solid #ccc; border-radius: 4px; margin-left: 10px; background-color: #ffffff; color: #333; } body.dark-mode #searchInput { background-color: #3c3c3c; color: #d4d4d4; border: 1px solid #555555; } /* Hash Badge Styles */ .hash-badge-table { display: inline-block; padding: 2px 6px; border-radius: 3px; color: #333; font-weight: bold; font-size: 11px; border: 1px solid rgba(0, 0, 0, 0.1); max-width: 100%; overflow: hidden; text-overflow: ellipsis; background-color: #f0f0f0; } body.dark-mode .hash-badge-table { background-color: #3c3c3c; color: #d4d4d4; border: 1px solid #555555; } /* Dump Logs Button */ #dumpButton, #copyButton { padding: 5px 10px; font-size: 14px; background-color: #f0f0f0; color: #333; border: 1px solid #ccc; border-radius: 2px; /* Adjusted to make buttons more squared off */ cursor: pointer; margin-right: 10px; transition: background-color 0.3s ease; } #dumpButton:hover, #copyButton:hover { background-color: #e0e0e0; } body.dark-mode #dumpButton, body.dark-mode #copyButton { background-color: #3c3c3c; color: #d4d4d4; border: 1px solid #555555; } body.dark-mode #dumpButton:hover, body.dark-mode #copyButton:hover { background-color: #505050; } /* Responsive Design */ @media (max-width: 768px) { body { flex-direction: column; } #sidebar { width: 100%; border-right: none; border-bottom: 1px solid #ccc; } body.dark-mode #sidebar { border-bottom: 1px solid #3c3c3c; } #main { padding: 10px; } th, td { padding: 5px 8px; font-size: 11px; } .badge { padding: 4px 8px; font-size: 12px; } #searchInput { margin-left: 5px; } #main>div:first-of-type { flex-direction: column; align-items: flex-start; } #main>div:first-of-type h2 { margin-bottom: 5px; } .separator { display: none; } #levels { margin-top: 5px; } } /* Dark Mode Toggle Switch Styles */ #darkModeToggle { position: absolute; top: 10px; right: 20px; } .dark-mode-label { display: flex; align-items: center; cursor: pointer; } .dark-mode-label input { display: none; } .slider { position: relative; width: 40px; height: 20px; background-color: #ccc; transition: background-color 0.3s; border-radius: 4px; /* Adjusted to make it more squared off */ margin-right: 10px; } .slider::before { content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; background-color: #fff; transition: transform 0.3s; border-radius: 2px; /* Adjusted to make it more squared off */ } .dark-mode-label input:checked+.slider { background-color: #7cb9eb; } .dark-mode-label input:checked+.slider::before { transform: translateX(20px); } .label-text { font-size: 14px; color: #333; } body.dark-mode .label-text { color: #d4d4d4; } body.dark-mode .slider { background-color: #555; } body.dark-mode .dark-mode-label input:checked+.slider { background-color: #0e639c; } #utilityContainer { margin-top: 5px; padding: 10px; background-color: #f0f0f0; border-radius: 2px; } body.dark-mode #utilityContainer { background-color: #2d2d30; } #utilityContainer h3 { margin-top: 0; margin-bottom: 5px; } #slider-range { margin-bottom: 15px; } #timeInputs { display: flex; justify-content: space-between; align-items: center; } #timeInputs label { margin-right: 5px; } #timeInputs input { padding: 5px; border: 1px solid #ccc; border-radius: 3px; } body.dark-mode #timeInputs input { background-color: #3c3c3c; color: #d4d4d4; border-color: #555; } body.dark-mode .ui-widget-header { background: #0e639c; } body.dark-mode .ui-widget-content { background: #3c3c3c; border-color: #555; } body.dark-mode .ui-state-default, body.dark-mode .ui-widget-content .ui-state-default { background: #1e1e1e; border-color: #0e639c; }