.img-converter-wrapper {
  max-width: 700px;
  margin: 30px auto;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

.converter-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease;
}

.converter-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: white;
  padding: 35px 25px;
  text-align: center;
}

.converter-header h2 {
  margin: 0 0 10px 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.converter-header p {
  margin: 0;
  font-size: 15px;
  opacity: 0.9;
}

.drop-zone {
  border: 3px dashed #cbd5e1;
  border-radius: 16px;
  margin: 30px;
  padding: 40px 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: #667eea;
  background: #f0f4ff;
}

.upload-icon {
  color: #667eea;
  margin-bottom: 15px;
}

.drop-zone p {
  margin: 5px 0;
  color: #475569;
  font-size: 15px;
}

.browse-link {
  color: #667eea;
  text-decoration: underline;
  font-weight: 600;
}

.file-hint {
  font-size: 12px !important;
  color: #94a3b8 !important;
  margin-top: 8px !important;
}

.converter-controls {
  padding: 0 30px 30px 30px;
}

.file-preview-box {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.file-preview-box img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 15px;
}

.file-meta {
  display: flex;
  flex-direction: column;
}

#fileName {
  font-weight: 600;
  color: #1e293b;
  font-size: 14px;
}

#fileSize {
  color: #64748b;
  font-size: 12px;
  margin-top: 3px;
}

.options-group {
  margin-bottom: 20px;
}

.options-group label {
  display: block;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  font-size: 14px;
}

.format-select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  background-color: #fff;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
}

.format-select:focus {
  border-color: #667eea;
}

.action-btn, .download-btn, .reset-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.action-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.action-btn:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.result-section {
  padding: 0 30px 30px 30px;
  text-align: center;
}

.success-banner {
  background: #dcfce7;
  color: #166534;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 14px;
}

.download-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.download-btn:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.reset-btn {
  background: #e2e8f0;
  color: #475569;
}

.reset-btn:hover {
  background: #cbd5e1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .img-converter-wrapper {
    margin: 15px;
  }
  .converter-header {
    padding: 25px 15px;
  }
  .converter-header h2 {
    font-size: 22px;
  }
  .drop-zone {
    margin: 20px;
    padding: 25px 15px;
  }
  .converter-controls, .result-section {
    padding: 0 20px 20px 20px;
  }
}