/* css/layout.css */
body { font-family: var(--sans); background: var(--bg-page); color: var(--text); }

/* ── Topbar ── */
.topbar {
  position: fixed; top: 0; left: var(--sidebar-w); right: 0;
  height: var(--topbar-h); z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; padding: 0 24px;
}
.topbar-title { font-size: 15px; font-weight: 600; color: var(--text); flex: 1; }
.topbar-kind {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-dim); border: 1px solid #bfdbfe;
  border-radius: 99px; padding: 3px 12px;
}

/* ── Main two-column grid ── */
.main {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

/* ── Toast ── */
.copy-feedback {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: #1e2535; color: #86efac;
  border: 1px solid var(--dark-border); border-radius: var(--radius);
  padding: 10px 20px; font-size: 13px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.copy-feedback.show { opacity: 1; }

/* =========================
   Footer
========================= */

.app-footer {
  margin-left: var(--sidebar-w);
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 24px;

  background: #0b1220;
  border-top: 1px solid #1e293b;

  font-size: 12px;
  color: #94a3b8;
}

.app-footer strong {
  color: #ffffff;
}

@media (max-width: 768px) {
  .app-footer {
    margin-left: 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    height: auto;
    padding: 12px;
    text-align: center;
  }
}
