/* src/styles/windows/system-log-window.css */

.system-log-window {
  z-index: var(--z-window-log);
  background: rgba(30, 30, 30, 0.95);
}

.system-log-window .window-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: calc(100% - 32px);
  overflow: hidden;
  background: rgba(20, 20, 20, 0.9);
}

.log-content {
  flex: 1;
  padding: 6px 10px 4px 10px;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 11.5px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Ubuntu Mono", "Monaco", "Consolas", monospace;
  min-height: 0;
}

.log-entry {
  margin-bottom: 2px;
  padding: 2px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: opacity 0.2s ease;
}

.log-entry.info,
.log-entry.debug,
.log-entry.notice {
  color: #cccccc;
}

.log-entry.warn {
  color: #ffd56b;
}

.log-entry.error,
.log-entry.critical,
.log-entry.alert {
  color: #ff6b6b;
}

.log-entry.emerg {
  color: #e60012;
}

.log-content::-webkit-scrollbar {
  width: 6px;
}

.log-content::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 3px;
}

.log-content::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 3px;
}

.log-content::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.log-content {
  scrollbar-width: thin;
  scrollbar-color: #555 #2a2a2a;
}

.log-entry {
  animation: logEntryFadeIn 0.3s ease-out;
}

@keyframes logEntryFadeIn {
  from {
    opacity: 0;
    transform: translateX(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.log-entry.critical,
.log-entry.emerg,
.log-entry.alert {
  font-weight: 600;
}

.log-entry.emerg {
  text-shadow: 0 0 3px rgba(230, 0, 18, 0.3);
}

.log-entry:hover {
  background: rgba(255, 255, 255, 0.03);
}

.log-entry::selection {
  background: rgba(47, 210, 164, 0.3);
  color: #ffffff;
}

.log-entry::-moz-selection {
  background: rgba(47, 210, 164, 0.3);
  color: #ffffff;
}
