/* Image Converter Specific Styles */
.image-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 20px;
}

.option-group {
  display: flex;
  flex-direction: column;
}

.option-label {
  font-size: 14px;
  font-weight: 600;
  color: #0f0f0f;
  margin-bottom: 0.5rem;
}

.select-input,
.number-input {
  padding: 0.75rem 1rem;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
}

.select-input:focus,
.number-input:focus {
  outline: none;
  border-color: #0f0f0f;
  box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.1);
}

.file-drop-zone {
  border: 3px dashed #e5e5e5;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  background: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 2rem;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
  border-color: #0f0f0f;
  background: #f5f5f5;
  transform: translateY(-2px);
}

.file-drop-zone.has-file {
  border-color: #059669;
  background: #f0fdf4;
}

.drop-zone-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #a3a3a3;
}

.drop-zone-text {
  font-size: 16px;
  color: #525252;
  margin-bottom: 0.5rem;
}

.drop-zone-subtext {
  font-size: 14px;
  color: #a3a3a3;
}

.file-input {
  display: none;
}

.conversion-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.image-preview {
  background: #ffffff;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.preview-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f0f0f;
  margin-bottom: 1rem;
}

.preview-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.image-info {
  font-size: 14px;
  color: #525252;
  line-height: 1.5;
}

.image-info p {
  margin-bottom: 0.25rem;
}

.download-section {
  text-align: center;
  margin-top: 1.5rem;
}

.download-btn {
  background-color: #146ef5;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 128, 0.3);
}

.download-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.conversion-hidden {
  display: none;
}

.processing-message {
  text-align: center;
  padding: 3rem 2rem;
  color: #525252;
  font-size: 16px;
}

.processing-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #e5e5e5;
  border-radius: 50%;
  border-top-color: #ff0080;
  animation: spin 1s ease-in-out infinite;
  margin-right: 0.5rem;
}

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

.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
}

.success-message {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #059669;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .image-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .conversion-result {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .file-drop-zone {
    padding: 2rem 1rem;
  }

  .drop-zone-icon {
    font-size: 2rem;
  }
}
