/* Custom Styles for Image Converter */

/* Logo Style */
.logo-heart {
  color: #ef4444;
}

/* Dropzone Styles */
.dropzone {
  transition: all 0.3s ease;
}

.dropzone:hover {
  border-color: #3b82f6;
  background-color: #f0f9ff;
}

.dropzone.drag-active {
  border-color: #3b82f6;
  background-color: #dbeafe;
  transform: scale(1.01);
}

/* File Preview Card */
.file-card {
  transition: all 0.2s ease;
}

.file-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-card .remove-btn {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.file-card:hover .remove-btn {
  opacity: 1;
}

/* Progress Bar Animation */
.progress-bar {
  transition: width 0.3s ease;
}

/* Result Card Animation */
.result-card {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

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

/* Navigation Active State */
.nav-link.active {
  color: #3b82f6;
  border-bottom: 2px solid #3b82f6;
}

/* Slider Custom Styles */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #3b82f6;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #2563eb;
  transform: scale(1.1);
}

/* Checkbox Custom Styles */
.checkbox-custom {
  accent-color: #3b82f6;
}

/* Feature Card Hover */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Compression Ratio Badge */
.compression-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Loading Spinner */
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* Toast Notification */
.toast {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
