/**
 * LibZen Footer — compact bottom bar (menu-height).
 * Same layout as Header; border on top. Load menu.css for ⋯ styling.
 * Default theme matches LibZen Panel / TripZen dark tokens.
 */

:root {
  --libzen-ft-bg: var(--panel, #1a2332);
  --libzen-ft-text: var(--text, #e2e8f0);
  --libzen-ft-muted: var(--text-muted, #94a3b8);
  --libzen-ft-border: var(--border, #2d3a4f);
  --libzen-ft-hover: rgba(255, 255, 255, 0.06);
  --libzen-ft-accent: var(--accent, #3b82f6);
  --libzen-ft-accent-text: #ffffff;
  --libzen-ft-danger: #f87171;
  --libzen-ft-chip-bg: rgba(255, 255, 255, 0.08);
  --libzen-ft-height: 40px;
  --libzen-ft-font: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

[data-libzen-footer-theme='light'] {
  --libzen-ft-bg: #ffffff;
  --libzen-ft-text: #37352f;
  --libzen-ft-muted: #9b9a97;
  --libzen-ft-border: rgba(55, 53, 47, 0.09);
  --libzen-ft-hover: rgba(55, 53, 47, 0.06);
  --libzen-ft-accent: #2383e2;
  --libzen-ft-danger: #eb5757;
  --libzen-ft-chip-bg: rgba(55, 53, 47, 0.06);
}

.libzen-ft-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--libzen-ft-height);
  height: var(--libzen-ft-height);
  padding: 0 12px;
  box-sizing: border-box;
  background: var(--libzen-ft-bg);
  color: var(--libzen-ft-text);
  border-top: 1px solid var(--libzen-ft-border);
  font-family: var(--libzen-ft-font);
  font-size: 13px;
  line-height: 1.2;
  flex-shrink: 0;
}

.libzen-ft-start {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.libzen-ft-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.libzen-ft-subtitle {
  font-size: 13px;
  color: var(--libzen-ft-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.libzen-ft-subtitle::before {
  content: '·';
  margin: 0 6px;
  opacity: 0.5;
}

.libzen-ft-labels {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.libzen-ft-label {
  font-size: 12px;
  color: var(--libzen-ft-muted);
  white-space: nowrap;
}

.libzen-ft-label-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--libzen-ft-chip-bg);
  color: var(--libzen-ft-text);
  font-size: 12px;
  line-height: 1.35;
}

.libzen-ft-label-muted {
  opacity: 0.85;
}

.libzen-ft-spacer {
  flex: 1;
  min-width: 8px;
}

.libzen-ft-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.libzen-ft-menu-anchor {
  display: flex;
  align-items: center;
}

.libzen-ft-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--libzen-ft-muted);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: background 0.12s, color 0.12s;
}

.libzen-ft-glyph:hover:not(:disabled) {
  background: var(--libzen-ft-hover);
  color: var(--libzen-ft-text);
}

.libzen-ft-glyph:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.libzen-ft-glyph-primary {
  color: var(--libzen-ft-accent);
}

.libzen-ft-glyph-primary:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.15);
  color: var(--libzen-ft-accent);
}

.libzen-ft-glyph-danger:hover:not(:disabled) {
  color: var(--libzen-ft-danger);
  background: rgba(248, 113, 113, 0.12);
}

.libzen-ft-glyph-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.libzen-ft-glyph-icon svg {
  width: 16px;
  height: 16px;
}

.libzen-ft-bar .libzen-mn-trigger {
  width: 28px;
  height: 28px;
}
