/* General Styles */
.image-converter-container {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 600px;
  margin: 40px auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-converter-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.image-converter-container h1 {
  text-align: center;
  color: #4CAF50;
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.convert-options {
  display: flex;
  align-items: center;
  gap: 15px;
}

.toolbar select {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.toolbar select:hover {
  border-color: #4CAF50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

.drop-zone {
  border: 2px dashed #4CAF50;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  color: #4CAF50;
  cursor: pointer;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  background-color: rgba(76, 175, 80, 0.1);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.drop-zone.dragover {
  background-color: rgba(76, 175, 80, 0.2);
  border-color: #45a049;
}

.file-input-label {
  background-color: #4CAF50;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.file-input-label:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

#fileInput {
  display: none; /* Hide the default file input */
}

.preview {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
}

.preview img {
  max-width: 100px;
  max-height: 100px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.action-area {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.quality-control {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quality-control label {
  font-weight: bold;
  color: #333;
}

/* Styled Quality Range Input */
.quality-control input[type="range"] {
  -webkit-appearance: none; /* Remove default styling */
  appearance: none;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, #ff7e5f, #feb47b, #ffcc70, #4CAF50); /* Gradient background */
  border-radius: 10px;
  outline: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.quality-control input[type="range"]:hover {
  opacity: 1;
}

/* Thumb (Slider Handle) */
.quality-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: #4CAF50; /* Green thumb */
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quality-control input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.quality-control input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: #4CAF50; /* Green thumb */
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quality-control input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.buttons {
  display: flex;
  gap: 15px;
}

.buttons button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.buttons button:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

.converted-files {
  margin-top: 25px;
}

.converted-file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-bottom: 15px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.converted-file:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.converted-file span {
  flex: 1;
  color: #333;
  font-size: 1rem;
}

.converted-file button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.converted-file button:hover {
  background-color: #45a049;
  transform: scale(1.05);
}