body {
  font-family: "Fira Code", monospace;
  background-color: #121212;
  color: #e0e0e0;
  margin: 0;
  padding: 20px;
}

.site-header {
  border-bottom: 2px solid #333;
  padding: 10px;
  margin-bottom: 20px;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.logo h1 {
  margin: 0;
  font-size: 24px;
  color: #e0e0e0;
}

.home-link {
  text-decoration: none;
  color: inherit;
}

.home-link:hover {
  text-decoration: none;
}

.tagline {
  margin: 0;
  color: #888;
  font-size: 14px;
}

.main-layout {
  max-width: 1200px;
  margin: 0 auto;
}

.container {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 4px;
  border: 2px solid #333;
  margin-bottom: 20px;
}

.search-container {
  display: flex;
  gap: 10px;
  width: 100%;
}

.search-input {
  flex: 1;
  padding: 12px;
  background: #252525;
  border: 1px solid #444;
  border-radius: 4px;
  color: #e0e0e0;
  font-family: "Fira Code", monospace;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #666;
  box-shadow: 0 0 0 2px rgba(128, 128, 128, 0.3);
}

/* Selection color styling */
::selection {
  background-color: #444;
  color: #e0e0e0;
}

::-moz-selection {
  background-color: #444;
  color: #e0e0e0;
}

input::selection {
  background-color: #444;
  color: #e0e0e0;
}

input::-moz-selection {
  background-color: #444;
  color: #e0e0e0;
}

/* Autofill styling for inputs */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #e0e0e0;
  -webkit-box-shadow: 0 0 0px 1000px #252525 inset;
  transition: background-color 5000s ease-in-out 0s;
  border-color: #666;
}

.btn-primary {
  padding: 10px 20px;
  background: #333;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Fira Code", monospace;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: #444;
  border-color: #555;
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(128, 128, 128, 0.3);
  border-color: #666;
}

.repo-header {
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.repo-info-wrapper {
  flex: 1;
}

.repo-title {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: bold;
  color: #e0e0e0;
}

.repo-full-name {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #e0e0e0;
  background: #252525;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
  font-family: "Fira Code", monospace;
  border: 1px solid #333;
}

.repo-description {
  margin: 0;
  font-size: 14px;
  color: #888;
}

.repo-info {
  margin-bottom: 30px;
}

.repo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.stat-box {
  background: #252525;
  padding: 20px;
  border-radius: 4px;
  border: 1px solid #333;
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #e0e0e0;
}

.stat-label {
  font-size: 14px;
  color: #888;
  letter-spacing: 0.5px;
}

/* Improved Table Styling */
.releases-table-container {
  background: #1e1e1e;
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #333;
}

.releases-table-container h3 {
  margin: 0;
  padding: 15px 20px;
  background: #252525;
  color: #e0e0e0;
  font-size: 16px;
  font-weight: normal;
  border-bottom: 1px solid #333;
  letter-spacing: 0.5px;
}

.table-responsive {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #444 #1e1e1e;
}

.releases-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  font-family: "Fira Code", monospace;
}

.releases-table th,
.releases-table td {
  padding: 12px 15px;
  text-align: left;
  border: none;
  border-bottom: 1px solid #333;
}

.releases-table th {
  background-color: #252525;
  color: #888;
  font-weight: normal;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.releases-table th:first-child {
  padding-left: 20px;
}

.releases-table th:last-child {
  padding-right: 20px;
}

.releases-table td:first-child {
  padding-left: 20px;
  font-weight: bold;
  color: #e0e0e0;
}

.releases-table td:last-child {
  padding-right: 20px;
}

.releases-table tbody tr {
  transition: background-color 0.2s ease;
}

.releases-table tbody tr:hover {
  background-color: #252525;
}

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

/* Empty state styling */
.releases-table tbody tr td[colspan="5"] {
  padding: 30px;
  text-align: center;
  color: #666;
}

.status {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  display: none;
  font-family: "Fira Code", monospace;
}

.status.success {
  background: #1b5e20;
  border: 1px solid #2e7d32;
  display: block;
}

.status.error {
  background: #c62828;
  border: 1px solid #d32f2f;
  display: block;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #1e1e1e;
  border-radius: 4px;
  border: 2px solid #333;
  margin-bottom: 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #333;
  border-top: 3px solid #666;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-container p {
  margin: 0;
  color: #888;
  font-family: "Fira Code", monospace;
}

.error-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #2d1313;
  border: 1px solid #662020;
  border-radius: 4px;
  margin-bottom: 20px;
  color: #e88;
  font-family: "Fira Code", monospace;
}

.error-icon {
  color: #e55;
  margin-right: 15px;
  flex-shrink: 0;
}

.error-container p {
  margin: 0;
}

.github-button {
  padding: 8px 12px;
  background: #333;
  color: #e0e0e0;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #444;
  transition: background 0.2s ease, border-color 0.2s ease;
  font-family: "Fira Code", monospace;
}

.github-button:hover {
  background: #444;
  border-color: #555;
}

.github-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(128, 128, 128, 0.3);
  border-color: #666;
}

/* Pre-release tags styling */
.pre-release-tag,
.stable-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: bold;
  font-family: "Fira Code", monospace;
}

.pre-release-tag {
  background: #2d2d13;
  color: #cccc00;
  border: 1px solid #4d4d23;
}

.stable-tag {
  background: #132d1e;
  color: #00cc66;
  border: 1px solid #234d34;
}

.footer {
  text-align: center;
  padding: 20px;
  font-family: "Fira Code", monospace;
  color: #888;
  margin-top: 40px;
}

.heart {
  color: #e55;
  display: inline-block;
  margin: 0 3px;
}

.hidden {
  display: none !important;
}

/* Release row hover and active states */
.releases-table tbody tr.release-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.releases-table tbody tr.release-row:hover {
  background-color: #252525;
}

.releases-table tbody tr.active-release-row {
  background-color: #2d2d2d;
  border-bottom: 1px solid #444;
}

/* Asset details styling */
.asset-details-row {
  background-color: #1e1e1e;
  animation: fadeIn 0.3s ease-in-out;
}

.asset-details-cell {
  padding: 0 !important;
}

.asset-details-container {
  margin: 0;
  padding: 0;
  border-top: 1px solid #333;
}

.no-assets-message {
  color: #888;
  text-align: center;
  padding: 15px 0;
}

/* Assets table styling */
.assets-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  font-family: "Fira Code", monospace;
}

.assets-table th,
.assets-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #333;
  color: #e0e0e0;
  font-weight: normal;
}

.assets-table th {
  background-color: #252525;
  color: #888;
  font-weight: normal;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.assets-table th:first-child {
  padding-left: 20px;
  width: 40px;
  text-align: left;
}

.assets-table th:last-child {
  padding-right: 20px;
}

.assets-table td:first-child {
  padding-left: 20px;
}

.assets-table td:last-child {
  padding-right: 20px;
}

.assets-table tbody tr {
  transition: background-color 0.2s ease;
}

.assets-table tbody tr:hover {
  background-color: #252525;
}

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

/* Asset number column */
.assets-table td.asset-number {
  color: #aaa;
  text-align: left;
  width: 40px;
  font-weight: normal;
}

.assets-table td {
  font-weight: normal;
  font-family: "Fira Code", monospace;
}

.assets-table td.created-at {
  color: #e0e0e0;
  font-weight: normal;
}

/* Download link styling */
.assets-table td a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  position: relative;
  font-weight: normal;
}

.assets-table td a:hover {
  color: #ffffff;
}

.assets-table td a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.2s ease-out;
}

.assets-table td a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.share-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #333;
  color: #e0e0e0;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #444;
  transition: background 0.2s ease, border-color 0.2s ease;
  font-family: "Fira Code", monospace;
  cursor: pointer;
  margin-left: 15px;
  white-space: nowrap;
}

.share-button:hover {
  background: #444;
  border-color: #555;
}

.share-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(128, 128, 128, 0.3);
  border-color: #666;
}

.share-icon {
  display: inline-block;
}

/* Toast notification for share action */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #e0e0e0;
  padding: 12px 24px;
  border-radius: 4px;
  border: 1px solid #444;
  font-family: "Fira Code", monospace;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toast.show {
  opacity: 1;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .repo-header {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .repo-info-wrapper {
    flex: 1 0 100%;
    margin-bottom: 10px;
  }

  .share-button {
    margin-left: auto;
  }

  .search-container {
    flex-direction: column;
  }

  .header-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .logo {
    align-items: center;
  }

  .releases-table th,
  .releases-table td {
    padding: 10px;
  }

  .releases-table th:first-child,
  .releases-table td:first-child {
    padding-left: 15px;
  }

  .releases-table th:last-child,
  .releases-table td:last-child {
    padding-right: 15px;
  }

  .assets-table th,
  .assets-table td {
    padding: 10px;
  }

  .assets-table th:first-child,
  .assets-table td:first-child {
    padding-left: 15px;
  }

  .assets-table th:last-child,
  .assets-table td:last-child {
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .repo-stats {
    grid-template-columns: 1fr;
  }

  .table-responsive {
    margin: 0;
  }

  .pre-release-tag,
  .stable-tag {
    padding: 2px 6px;
    font-size: 10px;
  }

  .assets-table {
    display: block;
    overflow-x: auto;
  }

  .asset-details-container {
    padding: 0;
  }

  .no-assets-message {
    padding: 10px 0;
  }
}
