/* PDF to JPG Converter - Tool Specific Styles */

/* Upload Area */
.upload-area {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafafa;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: #2563eb;
  background: #eff6ff;
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.upload-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.upload-hint {
  color: #666;
  margin-bottom: 16px;
}

.upload-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.upload-btn:hover {
  background: #1d4ed8;
}

.upload-limit {
  font-size: 14px;
  color: #999;
  margin-top: 12px;
}

/* URL Input Section */
.url-input-section {
  margin-top: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
}

.url-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  display: block;
}

.url-input-wrapper {
  display: flex;
  gap: 10px;
}

.url-input-wrapper input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.url-btn {
  background: #f59e0b;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.url-btn:hover {
  background: #d97706;
}

/* File List */
.file-list {
  margin-top: 16px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 8px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon {
  font-size: 24px;
}

.file-name {
  font-weight: 500;
  color: #333;
}

.file-size {
  font-size: 14px;
  color: #666;
}

.file-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 16px;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.file-remove:hover {
  background: #fee2e2;
}

/* Select Input */
.select-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

/* Progress Container */
.progress-container {
  margin: 20px 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
}

.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 0.3s ease;
}

.progress-container span {
  font-size: 14px;
  color: #666;
}

/* Results Container */
.results-container {
  margin-top: 20px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
}

.results-container h3 {
  margin-bottom: 16px;
  color: #1a1a2e;
}

.results-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.result-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.result-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.result-info {
  padding: 12px;
}

.result-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-download {
  width: 100%;
  background: #2563eb;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.result-download:hover {
  background: #1d4ed8;
}

.results-summary {
  padding: 12px;
  background: white;
  border-radius: 8px;
  margin-bottom: 16px;
}

.results-summary p {
  margin: 0;
  font-size: 14px;
  color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .url-input-wrapper {
    flex-direction: column;
  }
  
  .results-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .result-image {
    height: 120px;
  }
}