:root {
  color-scheme: dark;
}
html,
body {
  height: 100vh;
  margin: 0;
  background-color: #1e2228;
  color: #e0e0e0;
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
}
.body {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.sidePanel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 250px;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 12px 16px;
  background-color: #191c21;
  border-right: 1px solid #2c323b;
  overflow-y: auto;
}
.filters {
  border: #202020 solid 1px;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
}
.topPanel {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  margin-bottom: 0;
  height: 330px;
  overflow: hidden;
}
.logPanel {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.mainLogViewer {
  font-size: 18px;
  font: bold;
  border: 1px solid #444;
  border-radius: 6px;
  font-family: Consolas, "Courier New", monospace;
  overflow-y: hidden;
  height: 100%;
  flex: 1;
  min-width: 0;
}
.mainLogViewer:hover {
  overflow-y: auto;
}
.miniViewer {
  width: 60px;
  display: block;
}

.miniViewerContainer {
  width: 60px;
  height: 100%;
  overflow: hidden;
  border: #202020 solid 1px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.filterHidden {
  opacity: 0.5;
  text-decoration: line-through;
}
.highlightedLogEntry {
  background-color: yellow !important;
  transition: background-color 1.5s ease-out;
}
.mainLogViewer .eventRow {
    background-color: #252a32;
    color: #d4dae3;
    border: 1px solid #414956;
    border-left: 4px solid var(--event-color, #87909e);
    border-radius: 6px;
    padding: 10px 12px;
    margin: 0 6px 10px;
    font-size: 14px;
}

.eventRow.auditFAILURE { --event-color: #ff626d; }
.eventRow.auditSUCCESS { --event-color: #5dc98b; }
.eventRow.auditNONE { --event-color: #87909e; }

.eventHeader {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    color: #eef2f8;
    font-size: 16px;
    font-weight: 600;
}

.eventBadge {
    color: var(--event-color, #87909e);
    font-size: 12px;
    flex-shrink: 0;
}

.eventMetadata {
    color: #a0adbf;
    font-size: 12px;
    margin-top: 4px;
}

.eventBody {
    color: #bec7d4;
    margin-top: 8px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.mainLogViewer .eventRow.highlightedLogEntry {
    background-color: #41402b !important;
}

.eventRow[hidden] {
  display: none;
}

.searchPanel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px;
  width: 230px;
  overflow-y: auto;
  flex-shrink: 0;
  border-right: #202020 solid 1px;
}

.securityFilters {
  flex: 1;
  min-width: 0;
  padding: 8px;
  overflow-y: auto;
}

.panelTitle {
  color: #a0adbf;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 4px 0 6px;
}

.chipPanel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.filterChip {
  background-color: #252a32;
  color: #e0e0e0;
  border: 1px solid #414956;
  border-left: 4px solid var(--chip-color, #87909e);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
}
.filterChip:hover {
  background-color: #2e3440;
}

.failedLogonPanel {
  width: 340px;
  flex-shrink: 0;
  padding: 8px;
  overflow-y: auto;
  border-left: #202020 solid 1px;
}

.panelEmpty {
  color: #87909e;
  font-size: 13px;
}

.failedLogonRow {
  display: block;
  width: 100%;
  text-align: left;
  background-color: #252a32;
  color: #e0e0e0;
  border: 1px solid #414956;
  border-left: 4px solid #e5b44b;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 6px;
  cursor: pointer;
  font: inherit;
}
.failedLogonRow:hover {
  background-color: #2e3440;
}

.failedLogonRow.suspicious {
  border-left-color: #ff626d;
}
.failedLogonRow.suspicious .failedLogonHead span:last-child {
  color: #ff626d;
}

.failedLogonRow.selected {
  background-color: #3a3f2b;
  border-color: #e5b44b;
}

.failedLogonHead {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
}

.failedLogonDetails {
  color: #a0adbf;
  font-size: 12px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.eventSummary {
  color: #eef2f8;
  font-size: 15px;
  margin-top: 6px;
  line-height: 1.4;
}

.eventDetails,
.eventRaw {
  margin-top: 6px;
}
.eventDetails > summary,
.eventRaw > summary {
  cursor: pointer;
  color: #8fb4ff;
  font-size: 12px;
  user-select: none;
}

.fieldTable {
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 12px;
  width: 100%;
}
.fieldTable td {
  border-top: 1px solid #353c47;
  padding: 3px 8px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.fieldTable td:first-child {
  color: #a0adbf;
  width: 22%;
}
.fieldTable td:nth-child(2) {
  color: #d4dae3;
  width: 33%;
}
.fieldTable td:nth-child(3) {
  color: #9fd8b5;
  font-family: system-ui, sans-serif;
}

.fieldTable tr.riskyRow td:nth-child(3) {
  color: #ff8f97;
}

.detailsSubtitle {
  color: #a0adbf;
  font-size: 12px;
  margin-top: 10px;
}

.windowsMessage,
.rawXml {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background-color: #1b1f25;
  border: 1px solid #353c47;
  border-radius: 4px;
  padding: 8px;
  margin: 6px 0 0;
  font-size: 12px;
  color: #c9d1dc;
  max-height: 400px;
  overflow-y: auto;
}

.brandTitle {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #eef2f8;
}
.brandSubtitle {
  font-size: 12px;
  color: #87909e;
  margin-top: 2px;
}

.visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.dropZone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border: 1px dashed #4a5361;
  border-radius: 8px;
  background-color: #20252c;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.dropZone:hover,
.dropZone.dragOver {
  border-color: #619aff;
  background-color: #232b37;
}
.dropZone.hasFile {
  border-style: solid;
  border-color: #3f8f62;
}
.dropZone:focus-within {
  outline: 2px solid #619aff;
  outline-offset: 2px;
}
.dropZoneTitle {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
}
.dropZoneHint {
  font-size: 12px;
  color: #87909e;
  overflow-wrap: anywhere;
}
.dropZone.hasFile .dropZoneHint {
  color: #9fd8b5;
}

.analyzeButton {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background-color: #3567c4;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}
.analyzeButton:hover {
  background-color: #4277d8;
}
.analyzeButton:disabled {
  background-color: #2c3a52;
  color: #87909e;
  cursor: progress;
}

.privacyNote {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #87909e;
}

.donateCard {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #3d3527;
  border-radius: 8px;
  background-color: #241f17;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.donateCard:hover,
.donateCard:focus-visible {
  border-color: #c8862a;
  background-color: #2d261b;
}
.donateIcon {
  font-size: 20px;
}
.donateText {
  display: flex;
  flex-direction: column;
}
.donateTitle {
  font-size: 11px;
  color: #a0adbf;
}
.donateAction {
  font-size: 13px;
  font-weight: 600;
  color: #e5b44b;
}

.textInput {
  box-sizing: border-box;
  width: 100%;
  padding: 5px 8px;
  border: 1px solid #414956;
  border-radius: 6px;
  background-color: #1b1f25;
  color: #e0e0e0;
  font: inherit;
  font-size: 13px;
}
.textInput:focus {
  outline: none;
  border-color: #619aff;
}

.timeLabel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: #87909e;
}

.logCounter {
  margin-top: auto;
  font-size: 13px;
  color: #a0adbf;
}

.groupHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.groupActions {
  display: flex;
  gap: 4px;
}

.groupAction {
  padding: 2px 8px;
  border: 1px solid #353c47;
  border-radius: 4px;
  background: transparent;
  color: #8fb4ff;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.groupAction:hover {
  background-color: #252a32;
}

.suspicionLabel {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #ff626d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feedbackLink {
  font-size: 12px;
  color: #8fb4ff;
  text-decoration: none;
}
.feedbackLink:hover {
  text-decoration: underline;
}

.sideLinks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
