/* JLog Empty States — empty-states.css
   Shows friendly messages when tables/lists have no data. */

.jlog-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.jlog-empty-state[style*="display: none"],
.jlog-empty-state[hidden] {
  display: none !important;
}

.jlog-empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
  color: #cbd5e1;
  user-select: none;
  max-height: 140px;
  max-width: 200px;
  overflow: hidden;
}

.jlog-empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  margin: 0 0 4px 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.jlog-empty-state-description {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 20px 0;
  max-width: 360px;
  line-height: 1.5;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.jlog-empty-state-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: #1c5636;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transition: background 0.15s;
}

.jlog-empty-state-action:hover {
  background: #153d28;
}

/* Constrain empty state SVGs/images */
.jlog-empty-state-icon svg,
.jlog-empty-state-icon img {
  max-height: 140px;
  width: auto;
}

/* Dark mode */
html:not(.jn-light) .jlog-empty-state-title {
  color: #e2e8f0;
}

html:not(.jn-light) .jlog-empty-state-description {
  color: #94a3b8;
}

html:not(.jn-light) .jlog-empty-state-icon {
  color: #475569;
}

html:not(.jn-light) .jlog-empty-state-action {
  background: #2ee89e;
  color: #0f172a;
}

html:not(.jn-light) .jlog-empty-state-action:hover {
  background: #26c987;
}
