body {
  margin: 0;
  padding: 0;
  background: transparent;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  user-select: none;
}

.monitor-box {
  position: fixed;
  top: 60px;
  left: 60px;
  background: rgba(30, 35, 40, 0.85);
  border: 1px solid rgba(150, 150, 150, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: white;
  padding: 12px;
  border-radius: 8px;
  z-index: 9999;
  width: 420px;
}

.monitor-header {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  color: #e0e0e0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

.mining-table th,
.mining-table td {
  border: 1px solid rgba(150, 150, 150, 0.2);
  padding: 8px 10px;
  text-align: center;
}

.mining-table th {
  background: linear-gradient(135deg, rgba(80, 90, 100, 0.3), rgba(60, 70, 80, 0.3));
  color: #e0e0e0;
  font-weight: 600;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mining-table tbody td {
  background: rgba(255, 255, 255, 0.03);
}

.mining-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease;
}

.inventory-cell {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(200, 200, 200, 0.04)) !important;
  vertical-align: middle;
  border-left: 2px solid rgba(150, 150, 150, 0.3) !important;
}

.inventory-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.inventory-percent {
  font-size: 16px;
  font-weight: 600;
  color: #e0e0e0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.inventory-details {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.inventory-usage {
  background: linear-gradient(135deg, rgba(150, 150, 150, 0.08), rgba(120, 120, 120, 0.06)) !important;
  text-align: center;
  font-weight: 500;
  color: #e0e0e0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.copper-row td:first-child {
  color: #e0e0e0;
  font-weight: 500;
}

.iron-row td:first-child {
  color: #e0e0e0;
  font-weight: 500;
}
.inventory-row .metric-value {
  color: #2196f3;
}

.copper-row .metric-value {
  color: #ff9800;
}

.iron-row .metric-value {
  color: #9e9e9e;
}

/* Red styling for zero ore amounts - entire cell background */
.ore-zero {
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.2), rgba(200, 50, 50, 0.15)) !important;
  color: #ff6666 !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255, 68, 68, 0.4) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

pre#log {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #aaa;
  font-size: 11px;
  height: 80px;
  overflow-y: auto;
  margin-top: 10px;
  padding: 8px;
  border-radius: 6px;
  white-space: pre-wrap;
  word-wrap: break-word;
  user-select: text;
  cursor: text;
  font-family: 'Consolas', 'Monaco', monospace;
  line-height: 1.3;
}

pre#log::-webkit-scrollbar {
  width: 6px;
}

pre#log::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

pre#log::-webkit-scrollbar-thumb {
  background: rgba(150, 150, 150, 0.4);
  border-radius: 3px;
}

pre#log::-webkit-scrollbar-thumb:hover {
  background: rgba(150, 150, 150, 0.6);
}
