.tool-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.tool-output-container {
  margin-bottom: 20px;
  margin-top: 20px;
  position: relative;
}
.tool-status {
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: none;
}
.tool-valid {
  background-color: rgba(40, 200, 64, 0.1);
  border: 1px solid rgba(40, 200, 64, 0.3);
  color: #1a8d3b;
}
.tool-invalid {
  background-color: rgba(255, 95, 87, 0.1);
  border: 1px solid rgba(255, 95, 87, 0.3);
  color: #d73a31;
}

.image-upload-area {
  border: 1px solid var(--main-200);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  background-color: var(--main-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
	
.image-upload-area:hover {
    background-color: var(--main-100);
}	
	
.image-upload-area.drag-over {
  background-color: var(--main-200);
  border-color: var(--main-400);
}
.upload-icon {
  font-size: 36px;
  color: var(--main-600);
  margin-bottom: 15px;
}
#file-input {
  display: none;
}

.image-preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  margin: 20px 0;
}
.image-preview-item {
  position: relative;
  border: 1px solid var(--main-200);
  border-radius: 10px;
  overflow: hidden;
  padding: 8px;
  background-color: white;
}
.image-preview-item:hover {
  border: 1px solid var(--main-400);
}
.preview-img-wrapper {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-radius: 6px;
  overflow: hidden;
}
.image-preview-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.image-name {
  font-size: 0.8rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 8px;
  text-align: center;
}
.image-dimensions {
  font-size: 0.7rem;
  color: #999;
  text-align: center;
  margin-top: 4px;
}
.remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: rgba(255, 95, 87, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 5;
}
.remove-image:hover {
  background-color: rgba(255, 95, 87, 1);
  transform: scale(1.1);
}
.sprite-output-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sprite-image-container {
  width: 100%;
  background-color: white;
  border: 1px solid var(--main-200);
  border-radius: 10px;
  padding: 20px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
#sprite-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #eee 25%, transparent 25%),
    linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%),
    linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  border-radius: 8px;
  padding: 10px;
  overflow: auto;
  max-height: 400px;
}
#sprite-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.settings-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}
.setting-group {
  padding: 15px;
  border-radius: 10px;
  background-color: var(--main-50);
  border: 1px solid var(--main-200)
}
.setting-label {
  font-weight: 600;
  color: var(--main-600);
  font-size: 0.8rem;
  margin-bottom: 6px;
  display: block;
}

.tool-tabs {
  display: flex;
}
.tool-tab {
  padding: 8px 20px;
  cursor: pointer;
  background-color: var(--main-50);
  border: none;
  color: var(--gray-500);
  position: relative;
  margin-right: 5px;
  border-radius: 10px 10px 0 0;
}
.tool-tab.active {
  color: #ffffff;
  background-color: var(--main-600);
}
.tool-tab:hover {
  color: #ffffff;
  background-color: var(--main-600);
}
.tab-content {
  display: none;
  border: 1px solid var(--main-200);
}
.tab-content.active {
  display: block;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  background-color: var(--main-50);
  padding: 10px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 0.8rem;
}
.stat-item {
  text-align: center;
}
.stat-value {
  font-weight: bold;
  color: var(--main-600);
}
.stat-label {
  color: #666;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.custom-range {
	width: 100%;
}
	
.custom-range::-webkit-slider-runnable-track {
  height: 6px;
  background: #555;
  border-radius: 3px;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 50%;
  margin-top: -5px;
  cursor: pointer;
}

.custom-range::-moz-range-track {
  height: 6px;
  background: #555;
  border-radius: 3px;
}

.custom-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 50%;
  cursor: pointer;
}