* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #24292e;
}

/* ===== Topbar ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid #d0d7de;
}

.author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d0d7de;
}

.author-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.author-text span {
  font-size: 11px;
  color: #57606a;
}

.repo-info {
  text-align: right;
}

.repo-type {
  display: block;
  font-size: 12px;
  color: #57606a;
}

/* ===== Layout ===== */
.container {
  display: flex;
  height: calc(100vh - 60px);
}

/* ===== Sidebar ===== */
.sidebar {
  width: 280px;
  border-right: 1px solid #d0d7de;
  padding: 10px;
  overflow-y: auto;
}

.sidebar ul {
  list-style: none;
  padding-left: 15px;
}

.sidebar li {
  font-size: 13px;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 4px;
}

.sidebar li:hover {
  background: #f6f8fa;
}

.folder {
  font-weight: 600;
}

.folder::before {
  content: "📁 ";
}

.file::before {
  content: "📄 ";
}

/* ===== Viewer ===== */
.viewer {
  flex: 1;
  overflow: auto;
}

.file-header {
  padding: 10px 15px;
  border-bottom: 1px solid #d0d7de;
  background: #f6f8fa;
  font-size: 13px;
}

/* ===== Code Viewer ===== */
.code-view {
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  padding: 10px;
}

.code-line {
  display: flex;
}

.line-number {
  width: 50px;
  text-align: right;
  padding-right: 10px;
  color: #8c959f;
  user-select: none;
}

.line-code {
  white-space: pre;
  flex: 1;
}
