/* ============================================================
   Admin Logs (LG-27)
   ============================================================ */

.log-list { display: flex; flex-direction: column; }
.log-item { border-bottom: 1px solid var(--line); }
.log-item:last-child { border-bottom: none; }

.log-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.12s ease;
}
.log-row:hover { background: var(--surface-hover); }

.log-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}
.log-error { background: rgba(196,70,56,0.14); color: #e88a7d; border: 1px solid rgba(196,70,56,0.3); }
.log-warn  { background: rgba(184,134,11,0.14); color: var(--gold-light); border: 1px solid rgba(184,134,11,0.32); }

.log-msg {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.log-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
}
.log-method { color: var(--gold-light); }
.log-path   { color: var(--text-2); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-code   { color: var(--mute); }
.log-when   { color: var(--mute); font-size: 11px; flex-shrink: 0; font-family: var(--font-mono); }

.log-detail {
  padding: 4px 16px 16px;
  background: var(--bg-3);
}
.log-detail-line { font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.log-stack {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  max-height: 320px;
}

@media (max-width: 768px) {
  .log-row { flex-wrap: wrap; }
  .log-meta, .log-when { font-size: 10px; }
  .log-path { max-width: 120px; }
}
