:root {
  --bg: #0f1115;
  --panel: #161a22;
  --border: #22283a;
  --text: #e6e9ef;
  --muted: #9aa4bf;
  --accent: #6aa7ff;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

/* ───── Top bar ───── */

.top-bar {
  height: 48px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.top-bar .logo {
  font-weight: 700;
  color: var(--accent);
  margin-right: 12px;
}

.top-bar .left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar input[type="file"] {
  color: var(--muted);
}

/* ───── Reader ───── */

.reader {
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  padding: 16px;
}

#page-container {
  max-width: 900px;
  width: 100%;
}

#page-container img {
  width: 100%;
  height: auto;
  image-rendering: auto;
  border-radius: 6px;
}

/* ───── Bottom bar ───── */

.bottom-bar {
  height: 48px;
  background: var(--panel);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.bottom-bar button {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.bottom-bar button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

#page-indicator {
  color: var(--muted);
}


