body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: #000; /* true black background */
	color: #e0e0e0; /* light text for readability */
}

h1 {
	color: #00e5ff; /* bright cyan accent for the title */
	text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

#controls {
	margin: 10px 0;
}

label {
	margin-right: 5px;
	color: #ccc;
}

#slider-container, #slider-container2 {
	width: calc(100% - 20px);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 10px;
	box-sizing: border-box;
}

#position-slider,
#position-slider2 {
	flex: 1;
}

#vertical-contents {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}

#position-value,
#position-value2 {
	max-width: 60px;
	text-align: center;
	padding: 4px;
	background-color: #111;
	color: #0ff;
	border: 1px solid #333;
	border-radius: 4px;
}

#x-zoom-slider-container {
	position: absolute;
	top: 10px;
	right: 80px;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 5px;
	/* background-color: rgba(20, 20, 20, 0.85); */
	border-radius: 5px;
}

#y-zoom-slider-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	height: 250px;
	padding-left: 10px;
}

#y-zoom-slider {
	width: 8px;
	height: 100%;
	writing-mode: vertical-lr;
	direction: rtl;
	-webkit-appearance: slider-vertical;
}

#hex-header-container {
	display: inline-block;
	width: 100%;
	height: 30px;
	overflow: auto;
	border: 1px solid #333;
	background-color: #111;
	color: #0ff; /* cyan hex header */
	white-space: pre;
	font-family: monospace;
	font-size: 16px;
}

#hex-viewer {
	display: inline-block;
	width: 100%;
	height: 300px;
	overflow: auto;
	border: 1px solid #333;
	background-color: #111;
	color: #f5f5f5;
	white-space: pre;
	font-family: monospace;
	font-size: 16px;
}

.highlight {
	background-color: #ff0;
	color: #000;
}

#canvas-container {
	width: 100%;
	height: 300px;
	overflow: auto;
	border: 1px solid #333;
	position: relative;
	margin-bottom: 10px;
	display: flex;
	background-color: #111;
}

canvas {
	width: 100%;
	flex: 1;
}

.rounded-box-info {
	position: relative;
	border-radius: 15px;
	background-color: #1a1a1a;
	padding: 20px 20px 20px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
	margin: 20px 15px 20px;
}

.rounded-box {
	position: relative;
	border-radius: 15px;
	background-color: #1a1a1a;
	padding: 48px 20px 20px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
	margin: 0 15px 20px;
}

.rounded-box-row2,
.rounded-box-row,
.rounded-box-col {
	background-color: #1a1a1a;
	color: #e0e0e0;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
	border-radius: 15px;
	padding: 20px;
	margin: 0 auto 15px;
}

.rounded-box-title {
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 16px;
	font-weight: bold;
	color: #00e5ff;
	background-color: #111;
	padding: 5px 10px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

label,
select {
	font-size: 16px;
	color: #ccc;
}

select {
	padding: 5px;
	border-radius: 5px;
	border: 1px solid #444;
	background-color: #111;
	color: #0ff;
}

.hex-line { padding: 2px 6px; }
.hex-byte { display: inline-block; }
.jump-highlight { outline: 2px solid orange; outline-offset: -2px; }
.hex-header { font-weight: bold; background: #111; }
[class^="range-highlight-"] { background-color: yellow; }

/* CTA styles */
.cta {
	margin-top: 15px;
	padding: 12px;
	text-align: center;
	background: linear-gradient(90deg, #0077ff, #00e5ff);
	color: #fff;
	border-radius: 8px;
	font-weight: bold;
	box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
	cursor: pointer;
	transition: background 0.3s ease;
}
.cta:hover {
	background: linear-gradient(90deg, #00e5ff, #0077ff);
}
.grouped-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* File inputs stacked vertically */
.file-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Settings stacked on small screens */
.settings-inputs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.setting-row {
  display: flex;
  align-items: center;
}

.setting-row label {
  width: 150px; /* fixed width for all labels to align */
  margin-right: 8px;
  text-align: right;
}

.setting-row select {
  flex: 1; /* input stretches to fill remaining space */
	max-width: 150px;
}

/* On larger screens, place them side by side */
@media (min-width: 768px) {
  .grouped-inputs {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .file-inputs,
  .settings-inputs {
    flex: 1;
  }
}

.tool-button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, transform 0.1s;
  color: #fff;
}

.tool-button:hover {
  opacity: 0.9;
}

.tool-button:active {
  transform: scale(0.96);
}

/* Variants */
.tool-refresh {
  background-color: #007BFF; /* Blue */
}
.tool-refresh:hover {
  background-color: #0056b3;
}

.tool-import {
  background-color: #28a745; /* Green */
}
.tool-import:hover {
  background-color: #1e7e34;
}

.tool-export {
  background-color: #ffc107; /* Yellow/Amber */
  /* color: #000; */
}
.tool-export:hover {
  background-color: #e0a800;
}

.tool-delete {
  background-color: #dc3545; /* Red */
}
.tool-delete:hover {
  background-color: #b21f2d;
}

/* Toolbar container */
.tool-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
	margin-left: 15px;
}

/* General input/button styling */
.hex-controls input[type="text"] {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  width: 120px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hex-controls input[type="text"]:focus {
  border-color: #007BFF;
  outline: none;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}

.hex-controls button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: #007BFF;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  margin-left: 8px;
  transition: background 0.2s;
}
.hex-controls button:hover {
  background: #0056b3;
}

/* Layout helpers */
.form-group {
  margin-bottom: 15px;
}

.input-action,
.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.input-row input {
  flex: 1;
  min-width: 100px;
	max-width: 150px;
}

#checkbox-row {
    display: flex;
    justify-content: space-evenly; /* evenly spaced */
    align-items: center;          /* vertically aligned */
    margin-top: 10px;
    text-align: center;
}

#checkbox-row div {
    display: flex;
    align-items: center;
    gap: 5px; /* spacing between checkbox and label */
}