/* styles.css */

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

body {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
  background-color: #1a1a1a;
  color: #d4d4d4;
  padding: 2.5rem 3rem;
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.button-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

#run,
.btn-repo {
  appearance: none;
  background-color: #2a2a2a;
  color: #e0e0e0;
  border: 1px solid #444;
  padding: 0.6rem 1.6rem;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  line-height: 1.6;
}

#run:hover,
.btn-repo:hover {
  background-color: #363636;
  border-color: #666;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

#run:active,
.btn-repo:active {
  background-color: #404040;
  transform: translateY(1px);
}

#status {
  margin: 1.2rem 0;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  color: #999;
  border-left: 3px solid #444;
  min-height: 1.6em;
  text-align: center;
  align-self: center;
}

#results {
  border-collapse: collapse;
  margin-top: 1rem;
  width: auto;
  font-size: 0.85rem;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
}

#results thead {
  background-color: #242424;
}

#results thead th {
  border: none;
  border-bottom: 2px solid #444;
  padding: 0.7rem 1.2rem;
  text-align: right;
  font-weight: 600;
  color: #b0b0b0;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

#results thead th:first-child {
  text-align: left;
}

#results tbody tr {
  transition: background-color 0.15s ease;
}

#results tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

#results tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

#results td {
  border: none;
  border-bottom: 1px solid #2a2a2a;
  padding: 0.6rem 1.2rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #c8c8c8;
  white-space: nowrap;
}

#results td:first-child {
  text-align: left;
  color: #e0e0e0;
  font-weight: 600;
}

#results tbody tr:last-child td {
  border-bottom: none;
}

::selection {
  background-color: #555;
  color: #fff;
}

@media (max-width: 700px) {
  body {
    padding: 1.2rem 1rem;
  }

  #results {
    display: block;
    overflow-x: auto;
  }

  #results td,
  #results th {
    padding: 0.5rem 0.8rem;
  }
}
