/* Style for Quilt Designer */
#quiltsc {
	align-items: center; 
	justify-content: center; 
	margin: 5px;			
}


.controls {
	display: flex;
	gap: 15px;
	align-items: center;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	display: inline-block;  /* Shrinks the container to fit the canvas + padding */
}

.color-picker-wrapper {
	display: flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}

button {
	background-color: #007bff;
	color: white;
	border: none;
	padding: 4px 8px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 10px;
}

.clear_all_but {
	background-color: #ff3333;
	color: white;
}

#canvas-container {
	background: white;
	padding: 4px !important; /* Forces 10px spacing around the canvas */
	margin-left: 4px;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.15);
	/* Strongest display modes to shrink-wrap a child element */
	display: inline-flex; 
	box-sizing: border-box;  /* Ensures padding is added outside the canvas width */
}

canvas {
	cursor: crosshair;
	display: block;
	margin: 0; 
}

/* PALLETE */
.palette-wrapper {
	display: flex;       /* Turns on Flexbox */
	flex-wrap: wrap;     /* Enables elements to drop to the next line */
	align-items: center;
	gap: 15px;
	margin-bottom: 10px;
}

.palette-container {
	display: flex;       /* Turns on Flexbox */
	flex-wrap: wrap;     /* Enables elements to drop to the next line */
	gap: 8px;
	padding: 8px;
	background-color: #f5f5f5;
	border-radius: 6px;
	border: 1px solid #ddd;
}

.color-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid #fff;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
	transition: transform 0.1s ease;
}

.color-btn:hover {
	transform: scale(1.1);
}

.color-btn.active {
	border: 2px solid #000;
	outline: 2px solid #fff;
	transform: scale(1.1);
}

.color-btn-erase {
	width: 32px;
	height: 32px;
	border-radius: 4%;
	border: 2px solid #fff;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
	transition: transform 0.1s ease;
}

.color-picker-wrapper {
	display: flex;       /* Turns on Flexbox */
	flex-wrap: wrap;     /* Enables elements to drop to the next line */
	align-items: center;
	gap: 5px;
	font-family: sans-serif;
	font-size: 14px;
}

/* get colors from an PNG/JPG image */
#palette-container {
	display: flex;       /* Turns on Flexbox */
	flex-wrap: wrap;     /* Enables elements to drop to the next line */
	gap: 10px;
	margin-top: 20px;
}
.swatch {
	width: 32px;
	height: 32px;
	border-radius: 2px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	transition: transform 0.1s ease;
}
.swatch:hover {
	transform: scale(1.1);
}
#preview-image {
	max-width: 300px;
	margin-top: 20px;
	display: none; /* Hidden until an image is loaded */
	border-radius: 4px;
}
.hidden-offscreen {
	position: absolute;
	left: -9999px;
	top: -9999px;
}
.visible-onscreen {
	position: absolute;
	left: 10px;
	top: 110px;
}

/* show hide button-container for image */
.button-container {
	display: flex;       /* Turns on Flexbox */
	flex-wrap: wrap;     /* Enables elements to drop to the next line */
	gap: 10px;           /* Puts a clean 10px space between the buttons */
	justify-content: center; /* Optional: centers the pair on the screen */
	margin: 10px;
}
#image-loader {
	justify-content: center; /* Optional: centers the pair on the screen */
	margin: 10px;
}

/* Hide the default browser input completely */
.custom-file-upload input[type="file"] {
	display: none;
}

/* Style the label to look like a sleek button */
.custom-file-upload {
	display: inline-block;
	padding: 2px 6px;
	margin-left: 10px;
	background-color: #007bff; /* Clean blue color */
	color: white;
	font-size: 10px;
	border-radius: 4px;
	cursor: pointer;
	border: none;
}

.file-input-wrapper {
	margin-bottom: 1.5rem;
}

.checked {
	background-color: #d4edda;
	color: #155724;
}
.unchecked {
	background-color: #f8d7da;
	color: #721c24;
}


