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

body {
  background: #1b1b1b;
  color: #eee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #fff;
}

.tagline {
  color: #aaa;
  margin-bottom: 24px;
  font-size: 14px;
}

.sidebar {
  background: #252525;
  border: 1px solid #333;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 14px;
}

.sidebar a {
  color: #6cb6ff;
  text-decoration: none;
}

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

.table-wrapper {
  overflow-x: auto;
  margin-bottom: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #2a2a2a;
}

th {
  background: #252525;
  color: #ccc;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

tr:hover {
  background: #252525;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.value {
  font-weight: bold;
  color: #fff;
}

.best {
  color: #4ade80;
  font-weight: bold;
}

.link a {
  color: #6cb6ff;
  text-decoration: none;
}

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

.source {
  color: #aaa;
}

/* Disk-specific: Interface colors */
.interface {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.interface-sata {
  color: #aaa;
}

.interface-sas {
  color: #7dd3fc;
}

.interface-nvme {
  color: #c4b5fd;
}

/* Condition indicators */
.condition {
  font-size: 12px;
}

.cond-new {
  color: #22c55e;
}

.cond-used {
  color: #aaa;
}

/* Form factor styling */
.form {
  font-size: 13px;
}

.form-m2 {
  color: #a78bfa;
}

.form-35 {
  color: #60a5fa;
}

.form-25 {
  color: #aaa;
}

/* Source styling */
.source-amazon {
  color: #fb923c;
}

.source-ebay {
  color: #60a5fa;
}

.source-newegg {
  color: #aaa;
}

footer {
  border-top: 1px solid #333;
  padding-top: 16px;
  color: #888;
  font-size: 13px;
}

.loading {
  color: #888;
  padding: 40px 0;
}

.error {
  color: #f87171;
  padding: 40px 0;
}

@media (max-width: 600px) {
  body {
    padding: 12px;
    font-size: 13px;
  }

  th, td {
    padding: 8px 6px;
  }

  h1 {
    font-size: 20px;
  }
}
