/* Logs page */

.logs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  gap: var(--space-3);
  flex-wrap: wrap;
}

.logs-filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.logs-auto-scroll {
  display: flex;
  align-items: center;
}

.log-level-counts {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.log-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.log-level-badge:hover { opacity: 0.75; }

/* Console card - premium terminal look */
.console-card {
  background: #0B0D10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.06);
}

.console-titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.console-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.console-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.console-dot-red    { background: #ff5f57; }
.console-dot-yellow { background: #febc2e; }
.console-dot-green  { background: #28c840; }

.console-title {
  flex: 1;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-family: 'Courier New', monospace;
  text-align: center;
}

.console-count {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-family: 'Courier New', monospace;
}

.console-body {
  min-height: 400px;
  max-height: 600px;
  overflow-y: auto;
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
}

.console-body::-webkit-scrollbar { width: 4px; }
.console-body::-webkit-scrollbar-track { background: transparent; }
.console-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.console-empty {
  display: flex;
  gap: var(--space-3);
  color: rgba(255,255,255,0.25);
  padding: var(--space-6) 0;
  font-family: 'Courier New', monospace;
}

.console-prompt {
  color: #4F46E5;
  font-weight: bold;
  flex-shrink: 0;
}

/* Log entries inside console */
.log-entry {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: 3px 0;
  border-radius: 3px;
  transition: background 0.1s;
  animation: log-entry-in 0.2s ease;
}

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

.log-entry.log-entry-new {
  background: rgba(79, 70, 229, 0.08);
}

@keyframes log-entry-in {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

.log-time {
  color: rgba(255,255,255,0.25);
  font-size: 0.72rem;
  flex-shrink: 0;
  min-width: 80px;
}

.log-level {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  flex-shrink: 0;
  letter-spacing: 0.05em;
  min-width: 56px;
  text-align: center;
}

.log-level.info    { background: rgba(59,130,246,0.15); color: #60a5fa; }
.log-level.success { background: rgba(16,185,129,0.15); color: #34d399; }
.log-level.warn    { background: rgba(245,158,11,0.15); color: #fbbf24; }
.log-level.error   { background: rgba(239,68,68,0.15);  color: #f87171; }

.log-category {
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  flex-shrink: 0;
  min-width: 70px;
}

.log-message {
  color: rgba(255,255,255,0.8);
  flex: 1;
  word-break: break-word;
}

.log-details {
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  margin-top: 2px;
  padding: var(--space-2) var(--space-3);
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  border-left: 2px solid rgba(79,70,229,0.4);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 120px;
  overflow-y: auto;
  display: block;
  width: 100%;
}
