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

body {
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  background: #1a1a1a;
  color: #e0e0e0;
  padding: 20px;
  min-height: 100vh;
}

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

.header {
  text-align: center;
  margin-bottom: 30px;
}

.header h1 {
  color: #00ff88;
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-group label {
  color: #00ff88;
  font-weight: bold;
}

.control-group input,
.control-group select {
  background: #2a2a2a;
  border: 2px solid #444;
  color: #e0e0e0;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: inherit;
}

.control-group input:focus,
.control-group select:focus {
  outline: none;
  border-color: #00ff88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.eeprom-info {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  background: #2a2a2a;
  border-radius: 8px;
  border: 2px solid #444;
}

.download-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  margin: 20px auto;
  display: block;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.download-btn:active {
  transform: translateY(0);
}

.file-info {
  font-size: 11px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
  line-height: 1.2;
}

.bank-info {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 8px;
  color: #888;
  background: rgba(0, 0, 0, 0.7);
  padding: 1px 3px;
  border-radius: 2px;
}

.drop-zone {
  border: 3px dashed #666;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  margin-bottom: 20px;
  background: #2a2a2a;
  transition: all 0.3s ease;
}

.drop-zone.dragover {
  border-color: #00ff88;
  background: #1a3a2a;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.file-list {
  margin: 20px 0;
  background: #2a2a2a;
  border-radius: 8px;
  padding: 20px;
  border: 2px solid #444;
}

.file-list h3 {
  color: #00ff88;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.drag-handle {
  color: #888;
  cursor: move;
  font-size: 16px;
}

.file-info-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-item {
  margin: 10px 0;
  padding: 10px;
  background: #333;
  border-radius: 4px;
  border: 1px solid #555;
  cursor: move;
  transition: all 0.3s ease;
  user-select: none;
}

.file-item div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.file-note {
  margin: 5px;
  padding: 5px;
  background: hsla(65, 100%, 50%, 0.243);
  border: 1px solid #ff9f43;
  border-radius: 4px;
}

.file-item:hover {
  background: #3a3a3a;
  transform: translateX(5px);
}

.file-item.dragging {
  opacity: 0.5;
}

.file-item.drag-over {
  border-color: #00ff88;
  background: #1a3a2a;
}

.file-item.placed {
  background: #1a3a2a;
  border-color: #00ff88;
}

.file-name {
  font-weight: bold;
  color: #00ff88;
}

.file-size {
  color: #888;
  font-size: 0.9em;
}

.file-small {
  background: hsla(30, 100%, 50%, 0.243) !important;
  border-color: #ff9f43 !important;
}

.file-large {
  background: hsla(0, 100%, 50%, 0.243) !important;
  border-color: #ff6b6b !important;
}

.file-offset {
  color: #ff9f43;
  font-size: 0.9em;
}

.tool-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #333;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid #555;
  transition: all 0.3s ease;
  user-select: none;
}

.empty-btn {
  background: #4caf50;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.empty-btn:hover {
  background: #00ff88;
}

.dupe-btn {
  background: #4caf50;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.dupe-btn:hover {
  background: #00ff88;
}

.remove-btn {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.remove-btn:hover {
  background: #ff5252;
}

.stats {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  text-align: center;
}

.stat-item {
  background: #333;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #555;
  flex: 1;
  margin: 0 5px;
}

.stat-value {
  font-size: 1.5em;
  font-weight: bold;
  color: #00ff88;
}

.stat-label {
  color: #888;
  font-size: 0.9em;
}

.address-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.8em;
  color: #888;
}

.hidden {
  display: none;
}

.form-group {
  margin-bottom: 20px;
}
label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #00ff88;
}
select,
input {
  padding: 10px;
  color: #fff;
  background-color: #333;
  border: 2px solid #555;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}
#customInput input {
  width: 100%;
}
select:focus,
input:focus {
  outline: none;
  border-color: #4caf50;
}
.custom-input {
  display: none;
  margin-top: 10px;
}
.info-display {
  margin-top: 20px 0;
  padding: 15px;
  background-color: #333;
  border-left: 4px solid #00ff88;
  border-radius: 4px;
}
.info-display h3 {
  margin: 0 0 10px 0;
  color: #fff;
}
.info-display p {
  margin: 5px 0;
  color: #fff;
}
.bytes-display {
  font-weight: bold;
  color: #00ff88;
}


#footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background-color: #1a1a1a;
  color: #888;
  font-size: 0.9em;
}

#footer a {
  color: #00ff88;
  text-decoration: none;
} 