.upload-card {
  background: #fff;
  border: 2px dashed var(--gray-300);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.upload-card:hover {
  border-color: var(--primary);
}

.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-icon {
  color: var(--primary);
  margin-bottom: 20px;
  opacity: 0.8;
}

.upload-text {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--gray-600);
}

.upload-hint {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-clear {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-clear:hover {
  background: #fecaca;
}

.file-list {
  margin-top: 20px;
  text-align: left;
}

.file-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--gray-700);
}

.file-items {
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--gray-50);
  border-radius: 8px;
  margin-bottom: 8px;
}

.file-item-info {
  flex: 1;
  min-width: 0;
}

.file-item-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--gray-700);
}

.file-item-size {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.file-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 1.2rem;
  border-radius: 4px;
}

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

.options-panel {
  margin-top: 24px;
  text-align: left;
  background: var(--gray-50);
  padding: 16px;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
}

.options-panel h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--gray-700);
  font-weight: 600;
}

.option-group {
  margin-bottom: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

.select-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.select-label select {
  padding: 6px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-size: 0.95rem;
}

.subset-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  margin-top: 8px;
  font-size: 0.85rem;
}

.action-buttons {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-convert {
  background: var(--secondary);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-convert:hover {
  background: var(--secondary-hover);
  box-shadow: var(--shadow-lg);
}

.btn-cancel {
  background: #ef4444;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-cancel:hover {
  background: #dc2626;
}

.progress-container {
  margin-top: 20px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--primary);
  transition: width 0.4s ease;
}

.progress-text {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.progress-detail {
  color: var(--gray-400);
  font-size: 0.8rem;
  margin-top: 4px;
}

.result-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 24px;
  margin-top: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.result-status {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.result-status.success {
  color: var(--secondary);
  font-weight: 600;
}

.result-status.error {
  color: #dc2626;
}

.font-preview {
  background: var(--gray-50);
  padding: 16px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  text-align: left;
  border: 1px solid var(--gray-200);
}

.font-preview h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--gray-700);
  font-weight: 600;
}

.preview-controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.preview-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-controls input[type="range"] {
  width: 100px;
  accent-color: var(--primary);
}

.preview-controls input[type="checkbox"] {
  accent-color: var(--primary);
}

.preview-text {
  padding: 16px;
  background: white;
  border-radius: 8px;
  line-height: 1.6;
  min-height: 80px;
  border: 1px solid var(--gray-200);
}

.font-info {
  background: var(--gray-50);
  padding: 16px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  text-align: left;
  border: 1px solid var(--gray-200);
}

.font-info h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--gray-700);
  font-weight: 600;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.info-item {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
}

.info-label {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.info-value {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.download-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.download-btn {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.download-btn:hover {
  background: var(--gray-200);
}

@media (max-width: 600px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .preview-controls {
    flex-direction: column;
  }

  .action-buttons {
    flex-direction: column;
  }

  .download-buttons {
    flex-direction: column;
  }
}
