/* Event Log Component - Kompakt */
event-log {
  display: block;
}

.event-log {
  height: 100%;
  max-height: var(--event-log-height);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-card);
}

.log-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.log-actions {
  display: flex;
  gap: var(--spacing-xs);
}

.log-filter {
  padding: 2px var(--spacing-xs);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
}

/* Log Container - Kompakt */
.log-container {
  flex: 1;
  overflow-y: auto;
  background: #263238;
  border-radius: var(--radius-md);
  padding: var(--spacing-xs);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.6875rem;
}

/* Log Entry - Kompakt */
.log-entry {
  display: grid;
  grid-template-columns: 55px 60px 1fr;
  gap: var(--spacing-xs);
  padding: 2px var(--spacing-xs);
  border-radius: var(--radius-sm);
  margin-bottom: 1px;
}

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

.log-timestamp {
  color: #78909c;
  flex-shrink: 0;
  font-size: 0.625rem;
}

.log-category {
  flex-shrink: 0;
  padding: 0 var(--spacing-xs);
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.5625rem;
  text-transform: uppercase;
  min-width: 55px;
  text-align: center;
}

.log-message {
  color: #eceff1;
  flex: 1;
  font-size: 0.6875rem;
}

/* Category Colors */
.log-category.sensor {
  background: #4caf50;
  color: white;
}

.log-category.barrier {
  background: #2196f3;
  color: white;
}

.log-category.zsilip {
  background: #9c27b0;
  color: white;
}

.log-category.payment {
  background: #ff9800;
  color: white;
}

.log-category.ticket {
  background: #00bcd4;
  color: white;
}

.log-category.printer {
  background: #795548;
  color: white;
}

.log-category.voucher {
  background: #e91e63;
  color: white;
}

.log-category.validation {
  background: #8bc34a;
  color: white;
}

.log-category.system {
  background: #607d8b;
  color: white;
}

.log-category.error {
  background: #f44336;
  color: white;
}

/* Empty State */
.log-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #78909c;
  font-style: italic;
}

/* Auto scroll indicator */
.log-container.auto-scroll::after {
  content: '';
  display: block;
  height: 1px;
}

/* Scrollbar styling */
.log-container::-webkit-scrollbar {
  width: 8px;
}

.log-container::-webkit-scrollbar-track {
  background: #37474f;
  border-radius: 4px;
}

.log-container::-webkit-scrollbar-thumb {
  background: #546e7a;
  border-radius: 4px;
}

.log-container::-webkit-scrollbar-thumb:hover {
  background: #78909c;
}
