* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f5f5f5;
}

.header {
  color: white;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.header h1 {
  margin-bottom: 0.5rem;
}

.header p {
  opacity: 0.9;
  font-size: 1.1rem;
}

.breadcrumb {
  margin-bottom: 1rem;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.navigation {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.repo-description {
  margin-bottom: 1rem;
  color: #555;
}

.btn,
.nav-btn,
.page-btn,
.view-details-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: #5a67d8;
}

.btn:hover,
.nav-btn:hover,
.page-btn:hover,
.view-details-btn:hover {
  background: #5a67d8;
}

.btn-secondary,
.nav-btn.secondary {
  background: #6c757d;
}

.btn-secondary:hover,
.nav-btn.secondary:hover {
  background: #5a6268;
}

.readme-content {
  background: white;
  padding: 2rem 4rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.readme-content h1,
.readme-content h2,
.readme-content h3 {
  color: #2d3748;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.readme-content p {
  margin-bottom: 1rem;
}

.readme-content ul,
.readme-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.readme-content li {
  margin-bottom: 0.5rem;
}

.readme-content blockquote {
  border-left: 4px solid #4299e1;
  padding-left: 1rem;
  margin-left: 0;
  color: #4a5568;
  font-style: italic;
}

.readme-content table {
  padding: 0;
  border-collapse: collapse;
  border-spacing: 0;
}

.readme-content table tr {
  background-color: #fff;
}

.readme-content table tr:nth-child(even) {
  background-color: #f8f8f8;
}

.readme-content table th,
.readme-content table td {
  border: 1px solid #ccc;
  text-align: left;
  margin: 0;
  padding: 6px 13px;
}

.readme-content table th {
  font-weight: bold;
}

.meta-item {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 0.95rem;
  row-gap: 0.2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.meta-item > * {
  justify-self: start;
}

.meta-item strong {
  white-space: nowrap;
}

code{padding:2px 4px;font-size:1rem;color:#000;background-color:#d9edef;border-radius:4px}
kbd{padding:2px 4px;font-size:90%;color:#000;background-color:#eee;border-radius:3px;box-shadow:inset 0 -1px 0 rgba(0, 0, 0, 0.25)}
kbd kbd{padding:0;font-size:100%;font-weight:700;box-shadow:none}
pre{display:block;padding:9.5px;margin-top:20px;margin-bottom:3rem;font-size:1rem;line-height:1.42857143;white-space:pre-wrap;overflow-wrap:normal;background-color:#f9f9f9;border:1px solid #ccc;border-radius:4px}
pre code{padding:0;font-size:inherit;color:#000;white-space:inherit;background-color:transparent;border-radius:0}

.directory {
  color: #2d3748;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  font-size: 1.1rem;
}

.file-list {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.file-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.file-item:hover {
  background: #f7fafc;
}

.file-item:last-child {
  border-bottom: none;
}

.file-info {
  flex: 1;
}

.file-path {
  font-family: monospace;
  font-size: 15px;
  margin-bottom: 0.1rem;
}

.file-icon {
  margin-right: 2px;
  color: #48bb78;
}

.commit-list {
  margin-bottom: 2rem;
}

.commit-item {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.commit-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 0.75rem;
  row-gap: 0.2rem;
  align-items: start;
}

.commit-meta .label {
  white-space: nowrap;
  font-weight: 600;
}

.commit-meta .value {
  justify-self: start;
}

.commit-info {
  text-align:left;
}

.commit-info th {
  min-width: 110px;
}

.commit-info td.right {
  text-align:right;
}

.commit-meta .commit-message-box {
  grid-column: 1 / -1;
}

.commit-message-box {
  background: #f0f9ff;
  border-left: 4px solid #4299e1;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
}

.commit-message-box h3 {
  color: #2c5282;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.commit-message-box p {
  font-family: monospace;
}

.file-changes {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.file-changes h3 {
  color: #2d3748;
  margin-bottom: 1.5rem;
}

.diff-view {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.diff-view h3 {
  color: #2d3748;
  margin-bottom: 1.5rem;
}

.diff-content {
  font-family: monospace;
  font-size: 0.9rem;
  max-height: 600px;
  overflow-y: auto;
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 8px;
}

.diffstat-list {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 2rem;
  row-gap: 0.25rem;
}

.diffstat-row {
  display: contents;
}

.diffstat-file {
  font-family: monospace;
  font-size: 15px;
  white-space: nowrap;
}

.diffstat-count {
  font-family: monospace;
  color: #38a169;
  text-align: right;
  white-space: nowrap;
}

.diffstat-summary {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  font-family: monospace;
  color: #4a5568;
}

.nav-btn.active,
.page-btn.active {
  background: #2c5282;
}

.footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #dee2e6;
  color: #6c757d;
  font-size: 0.9rem;
}

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.branch-badge {
  display: inline-block;
  background-color: #c0ff9b;
  color: #111;
  font-family: monospace;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #69ff12;
  vertical-align: middle;
}

.tag-badge {
  display: inline-block;
  background-color: #ff9bc0;
  color: #111;
  font-family: monospace;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #ff609b;
  justify-self: start;
}

.repo-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.repo-table thead {
  background-color: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
}

.repo-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #495057;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.repo-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.repo-table tbody tr:hover {
  background-color: #f8f9fa;
}

.repo-table tbody tr:last-child {
  border-bottom: none;
}

.repo-table td {
  padding: 1rem;
  vertical-align: top;
}

.repo-list {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.repo-name {
  font-weight: 600;
  color: #2d3748;
  min-width: 200px;
}

.repo-link {
  color: #4299e1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.repo-link:hover {
  color: #3182ce;
  text-decoration: underline;
}

.repo-description {
  color: #4a5568;
  font-size: 0.9rem;
  max-width: 1000px;
}

.repo-description em {
  color: #a0aec0;
  font-style: italic;
}

.repo-owner,
.repo-last-commit {
  color: #4a5568;
  font-size: 0.9rem;
  min-width: 100px;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .navigation {
    flex-direction: column;
  }

  .nav-btn,
  .btn {
    text-align: center;
  }

  .file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

