input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a0a0f;
  color: #e0e0e0;
  padding: 20px;
}

h1 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #a78bfa;
}

h2 {
  font-size: 14px;
  margin-bottom: 10px;
  color: #888;
}

.stats {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stat {
  background: #16161e;
  border: 1px solid #2a2a3a;
  border-radius: 8px;
  padding: 10px 16px;
}

.stat-label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
  color: #a78bfa;
}

.stat-value.positive {
  color: #4ade80;
}

.stat-value.negative {
  color: #f87171;
}

.panel {
  background: #16161e;
  border: 1px solid #2a2a3a;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.form-row input,
.form-row select {
  background: #0a0a0f;
  border: 1px solid #2a2a3a;
  color: #e0e0e0;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}

.form-row input:focus,
.form-row select:focus {
  border-color: #7540ef;
}

.form-row input[type="number"] {
  width: 100px;
}

.form-row input[type="text"] {
  width: 120px;
}

.form-row button {
  background: #7540ef;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.form-row button:hover {
  background: #5e33bf;
}

.form-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-row .status {
  font-size: 12px;
  color: #888;
}

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

th {
  background: #16161e;
  color: #888;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #2a2a3a;
  position: sticky;
  top: 0;
}

td {
  padding: 8px 10px;
  border-bottom: 1px solid #1a1a2a;
}

tr:hover td {
  background: #16161e;
}

.type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.type-Minebox {
  background: #1e3a2e;
  color: #4ade80;
}

.type-Whale {
  background: #1e2e3a;
  color: #60a5fa;
}

.type-East {
  background: #3a2e1e;
  color: #fbbf24;
}

.type-South {
  background: #3a1e2e;
  color: #f472b6;
}

.type-West {
  background: #2e1e3a;
  color: #c084fc;
}

.type-Khabib {
  background: #3a1e1e;
  color: #f87171;
}

.type-North {
  background: #1e2e3a;
  color: #38bdf8;
}

.type-Trust {
  background: #2e3a1e;
  color: #a3e635;
}

.type-Gift {
  background: #3a2e3a;
  color: #e879f9;
}

.delete-btn {
  background: transparent;
  border: 1px solid #f87171;
  color: #f87171;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.delete-btn:hover {
  background: #f87171;
  color: #0a0a0f;
}

.gmt-th {
  color: #888;
  font-size: 12px;
}

.apy {
  color: #4ade80;
  font-weight: 600;
}

.apy-zero {
  color: #666;
}

th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

th.sortable:hover {
  color: #a78bfa;
}

th.sortable span {
  font-size: 10px;
  margin-left: 2px;
}

a {
  color: #a78bfa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.history-table td:nth-child(2),
.history-table td:nth-child(3),
.history-table td:nth-child(4),
.history-table td:nth-child(5),
.history-table td:nth-child(6),
.history-table td:nth-child(7),
.history-table td:nth-child(8) {
  font-family: monospace;
}

.history-table td.editable {
  cursor: pointer;
}

.history-table td.editable:hover {
  background: #1e1e2e;
  outline: 1px dashed #a78bfa;
}

#loading {
  color: #888;
  padding: 20px;
  text-align: center;
}
